Data Structure
Q211.
A circularly linked list is used to represent a Queue. A single variable p is used to access the Queue. To which node should p point such that both the operations enQueue and deQueue can be performed in constant time?Q212.
The concatenation of two lists is to be performed on O(1) time. Which of the following implementations of a list should be used?Q213.
For merging two sorted lists of sizes m and n into a sorted list of size m+n, we require comparisons ofQ214.
Which of the following statements is true? I. As the number of entries in a hash table increases, the number of collisions increases. II. Recursive programs are efficient III. The worst case complexity for Quicksort is O(n^2) IV. Binary search using a linear linked list is efficientQ215.
Linked lists are not suitable data structures for which one of the following problems?Q216.
In a circular linked list oraganisation, insertion of a record involves modification ofQ217.
Consider the following rooted tree with the vertex labelled P as the root The order in which the nodes are visited during an in-order traversal of the tree isQ218.
Of the following, which best approximates the ratio of the number of nonterminal nodes in the total number of nodes in a complete K-ary tree of depth N ?Q219.
A complete n-ary tree is a tree in which each node has n children or no children. Let I be the number of internal nodes and L be the number of leaves in a complete n-ary tree. If L = 41, and I = 10, what is the value of n?Q220.
In a complete k-ary tree, every internal node has exactly k children. The number of leaves in such a tree with n internal nodes is: