0
635views
Data Structures And Algorithms Question Paper - Dec 18 - Electronics And Telecomm (Semester 3) - Pune University (PU)
1 Answer
0
2views
| written 6.9 years ago by |
Data Structures And Algorithms - Dec 18
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
27,10,12,25,34,16,15,31
1.b.
Write a C function with and without pointers to arrays for checking whether the given string is palindrome or not.
(6 marks)
00
OR
2.a.
Explain the following:
(6 marks)
00
i. Call by value.
ii. Call by reference.
2.b.
Write the followin 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.
3.a.
Define Queue and explain any one application of queue.
(6 marks)
00
3.b.
Identify the expressions and convert them into remaining two forms:
(7 marks)
00
i. ab/cd-e/f
ii. (a+b)/(c+d)
OR
4.a.
Differentiate singly linked list and doubly linked list.
(6 marks)
00
4.b.
Write a 'C' function to delete a number from singly linked list.
(7 marks)
00
5.a.
Define binary tree. Name and explain with suitable example the following terms :
(6 marks)
00
i. Root node
ii. Left sub tree and right sub tree.
iii. Depth of tree.
5.b.
Construct the binary search tree (BST) from the following elements:
(6 marks)
00
10,60,40,28,14,50,5
OR
6.a.
Construct the binary search tree from the following elements:
(6 marks)
00
5,2,8,4,1,9,7
Also have preorder, inorder, and postorder traversal for the same.
6.b.
Define the following terms with example with respect to Binary Tree:
(6 marks)
00
i. Strictly Binary Tree
ii. Completely Binary Tree
iii. Binary Search Tree
7.a.
Explain with suitable example the techniques to represent a Graph.
(6 marks)
00
Note: Consider graph of minimum 6 vertices.
7.b.
What do you mean by adjacency matrix and adjacency list?
Give the adjacency matrix and adjacency list as shown in figure
(7 marks)
00

OR
8.a.
FInd out the minimum spanning tree of the following graph figure using :
(6 marks)
00
1.Prim's Algorithm.
- Kruskal's Algorithm

8.b.
Find the shortest path from node 1 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 3 others joined a min ago.