0% found this document useful (0 votes)
35 views2 pages

Data Structures Jan 2020 (2017 Scheme)

qp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

Data Structures Jan 2020 (2017 Scheme)

qp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
For More Question Papers Visit - www.pediawikiblog.com 17CS/1S33 Third Semester B.E. Degree Examination, Dec.2019/Jan.2020 Data Structures & Applications Time: 3 hrs. Max. Marks: 100 Note: Answer any FIVE full questions, choosing ONE full question from each module. Module-1 1a. Differentiate between Structures and Unions with example. (05 Marks) b. Explain the functions supported by ‘C” to carry out dynamic memory allocation. (05 Marks) ¢. Express the given sparse matrix as triplets and find its transpose and also write a fast transpose algorithm to transpose a sparse matrix fis 0 0 22 0 ~15] 013 00 0 00 0-60 0 vo marx 000 000 a 900 00 0 00% 0 0 0 OR 2 a. How would you represent polynomial using array of structures and also write a function to as 2 polynomials. (10 Marks) b. Find the table and corresponding graph for the second pattern matching algorithm where the pattern is P = ababab. (10 Marks) Modutle-2 3 a. Convert the following Infix expression to Postfix expression (i) ((ab)- 0) + (dee))- a0) (ii) A~ BJ (C* DS E) (06 Marks) b. Write a function to evaluate Postfix expression. (08 Marks) ©. Define Recursion and Evaluate A(1, 3) using Ackermann’s function (06 Marks) OR 4 a. Explain with suitable example disadvantages of ordinary queue and how it is solved using circular queue, write functions for circular queue insertion and deletion (10 Marks) b. Define stack. Give °C’ implementation of PUSH and POP functions. Include check for empty and full conditions of stacks (06 Marks) ¢. Evaluate the following Postfix expression 623 +~382|+*253+ (04 Marks) Module-3 5 a. Write ‘C’ function to perform the following (i) Assume a four node single linked list with data value 15, 25, 40, 50 Gi) Insert a node with data value 30 in between the nodes 25 and 40 (iii) Delete a mode with data value ‘40° (iv) Search a mode with data value ‘25° (15 Marks) For More Question Papers Visit - www.pediawikiblog.com 10 ve For More Question Papers Visit - www.pediawikiblog.com Write a note on linked representation of sparse matrix. Give linked representation of the os 3 given sparse matrix |1 0 0 (OS Marks) 000 OR Write a note on Doubly linked lists and also write functions to insert at front and delete at front using D.L.L. (08 Marks) Write a function to add 2 polynomials using Single Linked lists. (08 Marks) Write a function to Concatenate 2 Single Linked lists. (04 Marks) Modute-4 With suitable example define the following : (i) Binary tree (ii) Full binary tree (iii) Almost complete B.T (iv) Strict Binary tree (v) Level of B.T (05 Marks) Create expression tree for the Postfix expression given below. AB/C#D+E+ and traverse the resulting expression tree using inorder and preorder traversals. (05 Marks) Write a note on Threaded Binary tree for a given Binary tree in Fig.Q7%(c), Insert ‘r’ as a right child of *S* in a Threaded Binary tree and write the function to insert (10 Marks) Fig.Q7(c) OR Define BST. Write a function to insert an item into BST. (10 Marks) Show that for any non-empty b-tree T, if ng is the number of leaf nodes and m is the number of nodes of degree 2 than ng = (05 Marks) Write *C’ functions to illustrate copying of binary tree. (05 Marks) Module-5 Define graph. Give adjacency matrix and adjacency lists for the graph given below Fig.Q9(a) Fig.Q%a) (06 Marks) Write an algorithm for DFS, show BFS and DES traversals for the graph given in Q.No.9%a). (10 Marks) Write a note on Hashing fiznctions (04 Marks) OR What is collision? What are the methods to resolve collision? Explain linear probing with an example. (10 Marks) Suppose 9 cards are punched as follows 348, 143, 361, 423, 538, 128, 321, 543, 366. Apply Radix sort to sort them in 3 phases and give its complexity. (10 Marks) For More Question Papers Visit - www.pediawikiblog.com

You might also like