Gujarat Technological UniversitySummer 2025 examination

GTU 3130702 Data Structures (DS) Summer 2025 Solved Paper & Solutions

B.E. · Computer Engineering · Semester 3 · Subject code 3130702
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 2:30 PM – 5:00 PM
Questions
5 with internal choice
25 step by step solutions on this page

10 of 25 questions on this paper were also asked in other years. 4 more are types of question GTU sets again with new data. Each is marked below with the years it appeared.See all 37 repeated 3130702 questions, most asked first

Q.1

14 Marks
(a)
3 marks

What is the best-case, average-case, and worst-case time complexity analysis?

(b)
4 marksAsked in 2 of 7 papers

Explain row-major order and column-major order representation of 2-D array.ss

Also asked in Winter 2024 Q1c

(c)
7 marks
Construct a Binary Search Tree for the following data.

21, 51, 12, 45, 17, 71, 19, 47, 78. Write Pre-order, In-order, and Post-order traversal of constructed BST.

Q.2

14 Marks
(a)
3 marks
Define following terms:
1Full Binary Tree 2. Complete Binary Tree 3. Skewed Binary Tree
(b)
4 marks

Write the importance of asymptotic analysis. Is O(n log2n2) faster than O(n²)? Justify your answer with an example.

(c)
7 marksSame type asked in 4 of 7 papers
Convert the following infix expression into a postfix expression using stack.

(a+b)^((c*d)/(e-f))

Also asked in Winter 2025 Q3b, Winter 2024 Q2b, Winter 2023 Q1c

(c)
7 marksAsked in 3 of 7 papers
Write an algorithm to convert infix expression into postfix expression.

Also asked in Summer 2026 Q2c, Winter 2025 Q2c

Q.3

14 Marks
(a)
3 marks
Illustrate how stack is used in the recursion.
(b)
4 marks
Describe Threaded Binary Tree with example.
(c)
7 marksAsked in 3 of 7 papers
Write a C program for the following operations on a circular queue.
1Insert 2. Delete 3. Display

Also asked in Winter 2024 Q2c, Summer 2023 Q3c

(a)
3 marksAsked in 4 of 7 papers
Write a recursive solution for Tower of Hanoi problem.

Also asked in Summer 2026 Q3b, Summer 2024 Q2a, Summer 2023 Q1b

(b)
4 marks
Explain the DFS traversal of the graph with an example.
(c)
7 marks

Write an algorithm to sort existing singly linked list in acceding order according to the information field.

Q.4

14 Marks
(a)
3 marks
Define the following terms:
1Field 2. Record 3. File
(b)
4 marksSame type asked in 2 of 7 papers

Sort the following data using merge sort. 50, 20, 70, 05, 30, 80, 55, 25

Also asked in Summer 2026 Q5b

(c)
7 marksSame type asked in 2 of 7 papers

Find the minimum spanning tree of the following graph using Kruskal’s algorithm.

GTU Data Structures (3130702) Summer 2025 Question 4(c) Diagram

Also asked in Summer 2024 Q3c OR

(a)
3 marksAsked in 2 of 7 papers
What is hashing? Write the properties of a good hash function.

Also asked in Summer 2026 Q5a

(b)
4 marksSame type asked in 4 of 7 papers

Sort the following data using quick sort. 50, 30,80,40, 35,70, 60, 20,75

Also asked in Winter 2025 Q5a, Winter 2024 Q3b OR, Winter 2023 Q5c OR

(c)
7 marks
Find the shortest path from A to F using Dijkstra’s Algorithm.
GTU Data Structures (3130702) Summer 2025 Question 4 OR (c) Diagram

Q.5

14 Marks
(a)
3 marksAsked in 2 of 7 papers
Compare linear search and binary search in terms of their time complexity.

Also asked in Winter 2023 Q5a OR

(b)
4 marksAsked in 4 of 7 papers
Write a C program for a bubble sort.

Also asked in Winter 2024 Q3a, Summer 2024 Q5b, Winter 2023 Q5b

(c)
7 marksAsked in 5 of 7 papers
What is hash collision? Explain collision resolution techniques.

Also asked in Summer 2026 Q5c OR, Winter 2024 Q3c OR, Winter 2023 Q5c, Summer 2023 Q3c OR

(a)
3 marks

Does a pivot selection method affect the time complexity of quick sort? Justify your answer.

(b)
4 marksAsked in 2 of 7 papers
Write a C program for a selection sort.

Also asked in Winter 2025 Q5c OR

(c)
7 marksAsked in 3 of 7 papers
List various file organizations and explain one in detail.

Also asked in Summer 2024 Q5a OR, Winter 2023 Q5b OR

More Data Structures papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Data Structures (DS) (Summer 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.

ViewDownload PDF