Trees and Binary Search Trees: GATE CS previous year questions
Trees and Binary Search Trees is part of Programming and Data Structures in the GATE CS syllabus. This page lists 30 past-paper questions on it from official GATE CS papers.
Binary search trees
- The set T represents various traversals over binary tree. The set S represents the order…
- The postorder traversal of a binary tree is 8,9,6,7,4,5,2,3,1. The inorder traversal of…
- Let T be a binary search tree with 15 nodes. The minimum and maximum possible heights of…
- Suppose the values 10, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an…
- Suppose we have a balanced binary search tree T holding n numbers. We are given two…
- We are given a set of n distinct elements and an unlabeled binary tree with n nodes. In…
- Consider the pseudocode given below. The function DoSomething() takes as argument a…
- In a balanced binary search tree with n elements, what is the worst case time complexity…
- While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST)…
- What are the worst-case complexities of insertion and deletion of a key in a binary…
- The height of a tree is defined as the number of edges on the longest path in the tree…
- Consider a binary tree T that has 200 leaf nodes. Then, the number of nodes in T that…
- A binary tree T has 20 leaves. The number of nodes in T having two children is ______.
- You are given a set V of distinct integers. A binary search tree T is created by…
- The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which…
- Consider the following New-order strategy for traversing a binary tree: Visit the root…
- The number of ways in which the numbers 1, 2, 3, 4, 5, 6, 7 can be inserted in an empty…
- The worst case running time to search for an element in a balanced binary search tree…
- Consider a binary tree T in which every node has either zero or two children. Let n > 0…
- Consider a binary search tree (BST) with n leaf nodes (n > 0). Given any node V, the key…
More Programming and Data Structures chapters
Frequently asked questions
How many GATE CS questions are there on Trees and Binary Search Trees?
PrepWiser has 30 past-paper questions on Trees and Binary Search Trees from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.