Thanks to visit codestin.com
Credit goes to www.scribd.com

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

DSA (3rd) Dec2019

Uploaded by

1234 5678
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)
42 views2 pages

DSA (3rd) Dec2019

Uploaded by

1234 5678
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
Roll No. Total No. of Pages : 02 Total No. of Questions : 18 B.Tech.(CSE) (2018 Batch) | (Sem.—3) DATA STRUCTURE & ALGORITHMS. Subject Code : BTCS-301-18 M.Code : 76436 Time : 3 Hrs. Max. Marks : 60 INSTRUCTIONS TO CANDIDATES : 1. SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each. 2, SECTION-B contains FIVE questions carrying FIVE marks each and students have to attempt any FOUR questions. 3. SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions. SECTION-A Write briefly : 1, Write short note on space complexity 2. What are the components of space occupied by a program? 3. Array and binary heap can be used to implement priority queue. Compare these methods with respect to time complexity for insertion and deletion. 4. Suggest an application of queue. Explain how queue is a better choice than array for that application. 5. Advantages of doubly linked list over singly linked list. 6. Differentiate between Binary Search Tree and AVL Tree. What is a K-complete graph? 8. Differentiate between dir fed and undirected graph. 9. Discuss pros and cons of Adjacency list representation of a graph. 10, What is Time complexity for searching ina BST in worst case? And Why? 7 BR paper exams preparatory SECTION. 11. Solve the below recurrence relation using substitution method. n T|=|+nyn>1 (5)-» n 1 n=l Tn) = 12, Write pscudo code to implement bracket matching in an expression using stack. Consider expression can have *(), *{ }° and °[ J’ brackets. 13. Explain with example insertion and deletion in a B+ tree. 14, Compare quick and merge sort for best, average and worst case scenarios with help of examples for each. 15. Construct MAX-HEAP for the following input by inserting elements one after another. Show heap after each iteration. 20, 55, 16, 102, 13, 78, 94 SECTION-C 16. Convert the following infix expression to postfix. Illustrate each step clearly, at(b*c(We- Ag) +h 17, Write function to merge two sorted lists of length L1 and L2 respectively. Time complexity of function should not be greater than O (LI +2). 18. Write the algorithm for pre-order tree traversal. Also show the steps of this algorithm on an example set of numbers NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student. 21

You might also like