A binary search tree is generated by inserting in order the following integers: 50, 15, 62, 5, 20, 58, 91,3, 8, 37,60, 24. The number of nodes in the left subtree and right subtree of the root respectively is
Which one of the following algorithm design techniques is used in finding all pairs of shortest distances in a graph?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
A B-tree of order 4 is built from scratch by 10 successive insertions. What is the maximum number of node splitting operations that may take place?
For problems X and Y, Y is NP-complete and X reduces to Y in polynomial time. Which of the following is TRUE?
Let πA be a problem that belongs to the class NP. Then which one of the following is TRUE?
The maximum number of edges in a n-nodes undirected graph without self loops is
The average number of key comparisons required for a successful search for sequential search on n items is
A complete binary tree with n non-leaf nodes contains
Algorithm design technique used in quicksort algorithm is