Question: a ) Define a height baianced binary search tree. b ) Show that the binary search tree constructed with nodes as 8 , 6 ,

a) Define a height baianced binary search tree.
b) Show that the binary search tree constructed with nodes as 8,6,10,4,7,9,11,
3,5,2 is not height-balanced. You should first show the step-by-step
construction of the tree taking the first data as the root.
c) Apply appropriate AVL rotation on the tree in (b). Verify that the rotation
indeed achieves the desired result.
d) Prove or disprove: A complete graph is always connected.Give brief answers to the following questions:
a) Write a pseudocode for inserting an element into the front of a list.
b) Differentiate between a queue and a priority queue.
c) Prove or disprove: 3n2+4n2logn+5n+2=O(n3logn).
d) Given: T(n)=T(3n4)+1. Find the tight asymptotic bound for T(n).
e) Show the bounds for number of nodes of an almost complete binary tree of
depth d.
f) Prove or disprove: Number of edges in Kn is less than the number of edges in
Kn,n.
g) Find the complexity of the Merge Sort algorithm.
h) What is meant by hash collision?
i) Explain whether dynamic programming is the most suitable approach to solve
the Fractional Knapsack problem.
j) State the shortest path problem in a weighted directed graph.
a) Define a stack.
b) Clearly explain how you can use a stack for reversing a string. Show linked
implementation of the two basic operations you will need for achieving the
above task.
c) Explain how a stack can be used to solve the Towers of Hanoi problem. Trace
the recursive solution for the above problem with 4 discs.
 a) Define a height baianced binary search tree. b) Show that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!