Gujarat Technological UniversityWinter 2025 Examination

GTU 3130702 Data Structures (DS) Winter 2025 Paper Solution & PDF

B.E. · Computer Engineering · Semester 3 · Subject Code: 3130702
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours10:30 AM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)
What is data structure? Differentiate between data types and data structures
3 Marks
(b)
Define static, dynamic, linear and non-linear data structures.
4 Marks
(c)

Explain the concept of recursion and write a recursive C program to calculate factorial of a number.

7 Marks

Question 2

14 MarksMedium
(a)
Compare and contrast queue, priority queue and dequeue.
3 Marks
(b)
Evaluate the following expression using stack, show each step.

10 2 + 8 4 / * 6 3 -/

4 Marks
(c)
Write an algorithm to convert an infix expression to postfix.
7 Marks
OR OPTION
(c)
Write a C functions for insertion and deletion operation in simple queue.
7 Marks

Question 3

14 MarksMedium
(a)
Differentiate Array and Linked lists
3 Marks
(b)

Convert the following expression to postfix using stack. Show each step clearly ((A-B)+D/((E+F)*G))

4 Marks
(c)
Write an algorithm to insert an element in an ordered link list
7 Marks
OR OPTION
(a)
Define :
1Directed Graph
2Acyclic and cyclic graph
3Weighted and unweighted graph
3 Marks
(b)
Compare and Contrast DFS and BFS
4 Marks
(c)
What is minimum cost spanning tree? Discuss Prim’s algorithm with an example
7 Marks

Question 4

14 MarksMedium
(a)

Explain the properties of binary tree and differentiate between complete binary tree, full binary tree and balanced binary tree

3 Marks
(b)

Insert the following nodes into an empty BST in this order: 50, 30, 70, 20, 40, 60,

80Draw the resulting BST after each insertion
4 Marks
(c)

What is a binary search tree? write an algorithm to search an element in BST and show it’s time complexity

7 Marks
OR OPTION
(a)
Define following with respect to Tree: i) M-ary tree ii) Out Degree iii) Leaf
3 Marks
(b)

If the depth of the binary tree is k, the maximum number of nodes in the binary tree is 2k -1. Justify. Also mention atleast how many nodes a tree should have given it’s depth as k.

4 Marks
(c)
For a given tree show the Inorder, Preorder and Postorder traversals
7 Marks

Question 5

14 MarksMedium
(a)
Sort following elements using quick sort. 22 15 26 06 40 31, 92, 45, 78
3 Marks
(b)

Compare the below different hashing methods and discuss about each method in a detailed Manner.

iStatic Hashing. Ii. Dynamic Hashing
4 Marks
(c)

Insert the following keys into a hash table of size 10 using linear probing: 12, 26, 31, 92, 45, 78 Show the steps and the final hash table

7 Marks
OR OPTION
(a)
Explain AVL tree with suitable example.
3 Marks
(b)
Construct the 2-3 tree for the following sequence 10, 20, 30, 40, 50, 60, 70, 80, 90.
4 Marks
(c)
Write an algorithm to sort an array using selection sort method.
7 Marks
College Exam Groups

Studying for Data Structures?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Data Structures (DS) (Winter 2025, B.E. · Computer Engineering, Sem 3). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

Download PDF