Professional Documents
Culture Documents
Unit Wise Important Questions
Unit Wise Important Questions
Unit Wise Important Questions
Questions Bank
Unit-1
Unit-2
1. List out the applications of stack. Consider the usual algorithm for determining
2. whether a sequence of parentheses is balanced. What is the maximum number
of parentheses that will appear on the stack AT ANY ONE TIME when the
algorithm analyzes: ( ( ) ( ( ) ) ( ( ) ) )?
3. Write an algorithm for Quick sort and also analyze the time complexity
4. Sort the following numbers using Quick sort
45, 34, 12, 46, 27, 56, 11, 87, 6, 33, 28
5. Write an algorithm for merge sort and also analyze the time complexity
6. Write an algorithm for heap sort and also analyze the time complexity.
7. Discuss about the stack with examples
8. Write an algorithm for infix to postfix conversion.
9. Arrange the list of elements in ascending order using quick sort 45, 26, 31, 55,
77, 24, 42, 63, 99, 22, 88, 72 ? Write the value of left pointer l, right pointer r
and pivot at each step and also draw the current scenario after each step?
10. Discuss about the transformation from infix to postfix.
Unit-3
Unit-4
1. Write algorithms for swapping two successive elements in a singly linked list
with the first element placed at position P.
2. What is a circular linked list? Write an algorithm to merge two circular linked
lists.
3. Discuss post order traversal in a binary tree.
4. What is Threaded binary tree?
5. Write a non recursive algorithm for preorder traversal in a tree with an example.
6. What is a balanced binary tree? How it is different from the BST? Discuss.
7. What is balanced binary tree? What are the applications of it?
8. Write a non recursive algorithm for post order traversal with an example.
9. What is a Binary tree? What are the properties of Binary tree?
10. Write an algorithm for the creation of binary tree using pre-order traversal and In-order
traversal.
11. Write a short note on Balanced Binary Trees. Also discuss on the applications
of Balanced Binary Trees.
12. Find the inorder, preorder and postorder traversals for the given binary tree.
13.
Unit-5
11. What is a sparse matrix? Write an algorithm for finding the transpose of a
sparse matrix.
12. Write an algorithm of dijkstra’s shortest path