Data Structure GATE CS and IT previous year questions with Answer
Ques 51 Gate 2015 Set-1
The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height 5 are
Ques 52 Gate 2015 Set-1
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
Ques 53 Gate 2015 Set-1
Which of the following is/are correct inorder traversal sequence(s) of binary search tree(s)?
I. 3, 5, 7, 8, 15, 19, 25
II. 5, 8, 9, 12, 10, 15, 25
III. 2, 7, 10, 8, 14, 16, 20
IV. 4, 6, 7, 9, 18, 20, 25
Ques 54 Gate 2014 Set-1
Consider a rooted Binary tree represented using pointers. The best upper bound on the time required to determine the number of subtrees having having exactly 4 nodes O(na Lognb). Then the value of a + 10b is ________
a is the correct answer.
Ques 55 Gate 2014 Set-1
Let G be a graph with n vertices and m edges. What is the tightest upper bound on the running time on Depth First Search of G?
Assume that the graph is represented using adjacency matrix.
Ques 56 Gate 2014 Set-1
Let G=(V,E) be a directed graph where V is the set of vertices and E the set of edges. Then which one of the following graphs has the same strongly connected components as G ?