Give the pseudo code for stacli insertion. 2 2 1
Other Or UnclassifiedSource quality review required
Anna University
| University | Anna University |
|---|---|
| Degree | Multi Discipline Subjects |
| Department | Multi Discipline Subjects |
| Regulation | Regulation 2019 |
| Semester | 8 |
| Subject Code | EE5015 |
| Subject Name | Data Structures and Algorithms |
| Exam Session | November / December 2024 |
| Duration | 3 Hrs. |
| Maximum Marks | 100 |
Access the previous year question paper for your examination preparation.
View / Download PDFBrowse other previous year question papers for this subject.
View All Subject Question PapersAutomatically extracted historical question data. Academic accuracy and examination rules require verification.
Section marks require review. Marks charts are withheld.
Give the pseudo code for stacli insertion. 2 2 1
Other Or UnclassifiedSource quality review required
What is the disadvantage of a normal queue and how to 2 2 4 overcome?
DefinitionSource quality review required
Define full and complete binary tree. 2 I 1
DefinitionSource quality review required
Give any two advantages of an AVL tree. 2 1 2
Other Or UnclassifiedSource quality review required
List the different methods for selecting the pivot element in 2 2' quick sort. o zyxwvutsrqponmlkjihgfed
Short DescriptionSource quality review required
Give the first step of Insertion Sort. What is the need for it? 2 J 4
Other Or UnclassifiedSource quality review required
State any two disadvantages of Greedy Algorithms. 2 zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQP2 2
Short DescriptionSource quality review required
How does a Backtracking Algorithm work? 2 J 2
Other Or UnclassifiedSource quality review required
Give any two properties of Adjacency Matrix. 2 2 4
Other Or UnclassifiedSource quality review required
What is BFS with respect to Binary Trees? 2 2 4
DefinitionSource quality review required
a] i) Define Stack. List and explain the various main and 7 1 2 auxiliary operations on the same with Algorithms. ii) Evaluate the postfix expression 2 5 3 6 - I - * * 5 / 2 - 6 1 • J using stack? [OR] •~i b] i) Give the algorithm for finding the maximum and minimum 6 J zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPJ values in an array along with their positions. ii) Define Queue. Explain the various main and auxiliary 7 1 2 operations on the same with Algorithms.
Other Or UnclassifiedSource quality review required
a] i) List and explain the different AVL tree rotations mth 5 1 2 simple examples. 1zyxwvutsrqponmlkjihgfedcI P ;i g 0 3 ii) Show the step-by-step construction of the AVL Tree for the 8 1 given SequencezyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA10,15, 9,12,13, 79, 45, 36, 22. [OR] 7 2 2 b] i) Explain the different binary tree traversal techniques with a binary tree with at least 7 nodes. 6 2 2 ii) What are possible cases that may arise while deleting a node in a Binary Search Tree? Explain them with algorithms. 1 3 3 zyxwvutsrqponmlkjihgfedcb3 1 3 . a] Give the Heap Sort Algorithm with proper explanation. Show how the initial Heap is built for the values 1,3, 5, 4, 6,13,10, 9, 8,15,17 stored in an array. [OR] o 1 3 J J b] Explain the working of Bubble Sort and Selection Sort with Algorithms for the array {19,16, 25, 23, 32,22, 31, 10}. 1 3 4 J14. a] Write a note on Divide-and-Conquer algorithms design technique. Explain how the same is applied for merge sort with algorithm. [OR] 1 3 4 3 b] Give the algorithm for N-Queens problems with proper diagrams and explanations [start with 4-Queens problem]. 1 5 . al i) How are graphs represented in computers? 4 4 2 3 3 ii) Give the Algorithm for Breadth First Search for Graph 9 Traversal and carry out the same for the following graph [consider G as the source vertex - while adding to the nodes to queue do with alphabetical ordering]: [OR] b]' i) Give and explain Dijkstra's and Floy's Algorithms? 8 JozyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONM2 ii) How Depth First Search works on Graphs? 5 3 3
Other Or UnclassifiedSource quality review required
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.