What is stack? Explain different stack operations. Explain algorithm to evaluate postfix expression.
Explain almost complete binary tree with example. How do you insert, search, and delete nodes in a binary search tree? Explain with suitable example?
Discuss the limitation of choosing first element as pivot in quick sort. Using merge sort algorithm, sort the numbers 40, 6, 5,21, 3, 100, 90, 7, 8, 12, 30.
Attempt any Eight questions
[8x5=40]Define data type and ADT. What are the benefits of using ADT? Explain
What is space complexity? Explain omega notation with example.
What is circular queue? How can you implement circular queue?
Define recursion. Explain Tower of Hanoi (TOH) with example.
How can we use linked list to implement queue? Explain.
What are different applications of binary tree? Explain.
Why do we need hashing? Explain quadratic probing.
Define spanning tree. Explain minimum spanning tree with example.
Write short notes on:
a. Doubly circular linked list
b. Breadth first search