0
600views
Data Structures And Algorithms Question Paper - Jun 17 - Electronics And Telecomm (Semester 3) - Pune University (PU)
1 Answer
0
3views
| written 6.9 years ago by |
Data Structures And Algorithms - Jun 17
Electronics And Telecomm (Semester 3)
Total marks: 80
Total time: 3 Hours
INSTRUCTIONS
(1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Draw neat diagrams wherever necessary.
1.a.
Sort the following data using merge sort and selection sort.
(6 marks)
00
142,317,45,222,187
1.b.
What will be the output of the following code ? Justify your answer.
(6 marks)
00

OR
2.a.
Write the following functions in 'C':
(6 marks)
00
i. STRCOPY() To copy a string to another string using array.
ii. STRLENGTH() To find length of string using array
Note : Do not use standard library functions.
2.b.
Explain Algorithm Binary search with example.
(6 marks)
00
3.a.
Convert the given infix expression to postfix expression using stack.
(5 marks)
00
$(a \$ b)*c-d/d$
Note : $ \$ $ = Exponent operator
3.b.
Define Queue and explain any one application of Queue.
(4 marks)
00
3.c.
Differentiate Singly Linked List and Doubly Linked List.
(4 marks)
00
OR
4.a.
Write a 'C' function to delete a number from singly linked list.
(5 marks)
00
4.b.
Explain Stack operations PUSH and POP with example.
(4 marks)
00
4.c.
Compare array and linked list.
(4 marks)
00
5.a.
Construct the binary search tree from the following elements :
(6 marks)
00
12,8,25,14,9,6,18
Also show preorder, inorder and postorder traversal for the same.
5.b.
Define Binary Tree. Name and explain with suitable example the following terms:
1. Root node
(6 marks)
00
1. Root node
2.Left sub-tree and Right sub-tree
3.Depth of tree
OR
6.a.
Define the following terms with example with respect to Binary Tree :
(6 marks)
00
Strictly Binary Tree
Completely Binary Tree
Binary Search Tree
6.b.
Explain the different cases to delete an element from binary search tree.
(6 marks)
00
7.a.
Explain with suitable example, BFS and DFS traversal of a graph.
(6 marks)
00
7.b.
What is MST ? Explain with suitable example Kruskal's Algorithm to find the MST.
(7 marks)
00
OR
8.a.
Explain with suitable example the techniques to represent a Graph
(6 marks)
00
Note: Consider Graph of minimum 6 vertices.
8.b.
Find shortest path from node A to all nodes in the graph shown in the figure using Dijkstra's algorithm.
(7 marks)
00

ADD COMMENT
EDIT
Please log in to add an answer.

and 2 others joined a min ago.