1 assign
1 assign
1. Differentiate between Min and Max heap Binary Tree. Illustrate with example.
3. Heapify the BT for A and B in above problem as Max and Min heap
5. Consider the max heap 50, 30, 20, 15, 10, 8, 16. Delete a node with value 50.
6. Differentiate between Recursion and Iteration, highlighting the pros and cons of each approach.
Illustrate with the help of examples.
7. State the rules to solve the problem of Tower of Hanoi. Why recursive approach is used to solve
the problem?
10. What is a binary Tree? Compare a full binary Tree with perfect binary tree.
11. Perform the In order, Pre order and Post order traversal of the following trees:
12. Construct a Binary Search Tree by inserting the following sequence of numbers:
10,12,5,4,20,8,7,15 and 13
13. Differentiate between Depth of a node X in a tree structure with the width of the node X in the
same tree.
14. Differentiate between DFS and BFS algorithms for the traversal.
15. Apply the Depth First Search Algorithm (or Breadth First Algorithm) to traverse the following
Graphs.
16. Describe Hashing with example. Advantages of Hashing. Name different types of Hashing used.
Name and explain different Hashing collision resolution techniques with examples.
17. Assume the following array contains the key-values inside a Hash table of size m=10.
The Hash function used is h(k) = 2k + 3.
A = [3 2 9 6 11 13 7 12] Key values
Construct a Hash Table using Linear Probing technique.