Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged data-structures
31
31 votes
3
answers
3 answers
9.9k
9.9k views
GATE IT 2004 | Question: 52
A program attempts to generate as many permutations as possible of the string, '$abcd$' by pushing the characters $a, b, c, d$ in the same order onto a stack, but it may ...
Ishrat Jahan
9.9k
views
asked
Nov 2, 2014
Data Structures
gateit-2004
data-structures
normal
stack
+
–
85
85 votes
9
answers
9 answers
41.4k
41.4k views
GATE IT 2004 | Question: 13
Let $P$ be a singly linked list. Let $Q$ be the pointer to an intermediate node $x$ in the list. What is the worst-case time complexity of the best-known algorithm to del...
Ishrat Jahan
41.4k
views
asked
Nov 1, 2014
Data Structures
gateit-2004
data-structures
linked-list
normal
ambiguous
+
–
58
58 votes
3
answers
3 answers
17.0k
17.0k views
GATE IT 2006 | Question: 73
An array $X$ of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If the root node is at level $0$, the le...
Ishrat Jahan
17.0k
views
asked
Nov 1, 2014
Data Structures
gateit-2006
data-structures
binary-tree
normal
+
–
52
52 votes
3
answers
3 answers
14.4k
14.4k views
GATE IT 2006 | Question: 72
An array $X$ of $n$ distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If only the root node does not satisfy...
Ishrat Jahan
14.4k
views
asked
Nov 1, 2014
Data Structures
gateit-2006
data-structures
binary-heap
easy
+
–
64
64 votes
6
answers
6 answers
21.8k
21.8k views
GATE IT 2006 | Question: 71
An array $X$ of $n$ distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. The index of the parent of element $X[...
Ishrat Jahan
21.8k
views
asked
Nov 1, 2014
Data Structures
gateit-2006
data-structures
binary-tree
normal
+
–
38
38 votes
6
answers
6 answers
26.7k
26.7k views
GATE IT 2006 | Question: 45
Suppose that we have numbers between $1$ and $100$ in a binary search tree and want to search for the number $55$. Which of the following sequences CANNOT be the sequence...
Ishrat Jahan
26.7k
views
asked
Oct 31, 2014
Data Structures
gateit-2006
data-structures
binary-search-tree
normal
+
–
25
25 votes
1
answers
1 answer
9.7k
9.7k views
GATE IT 2006 | Question: 44
Which of the following sequences of array elements forms a heap?$\{23, 17, 14, 6, 13, 10, 1, 12, 7, 5\}$$\{23, 17, 14, 6, 13, 10, 1, 5, 7, 12\}$$\{23, 17, 14, 7, 13, 10, ...
Ishrat Jahan
9.7k
views
asked
Oct 31, 2014
Data Structures
gateit-2006
data-structures
binary-heap
easy
+
–
36
36 votes
6
answers
6 answers
18.0k
18.0k views
GATE IT 2006 | Question: 20
Which of the following statement(s) is TRUE?A hash function takes a message of arbitrary length and generates a fixed length code.A hash function takes a message of fixed...
Ishrat Jahan
18.0k
views
asked
Oct 31, 2014
Data Structures
gateit-2006
data-structures
hashing
normal
+
–
77
77 votes
14
answers
14 answers
39.4k
39.4k views
GATE IT 2006 | Question: 9
In a binary tree, the number of internal nodes of degree $1$ is $5$, and the number of internal nodes of degree $2$ is $10$. The number of leaf nodes in the binary tree i...
Ishrat Jahan
39.4k
views
asked
Oct 31, 2014
Data Structures
gateit-2006
data-structures
binary-tree
normal
+
–
52
52 votes
11
answers
11 answers
25.1k
25.1k views
GATE IT 2007 | Question: 30
Suppose you are given an implementation of a queue of integers. The operations that can be performed on the queue are:$\text{isEmpty (Q)}$ — returns true if the queue is ...
Ishrat Jahan
25.1k
views
asked
Oct 29, 2014
Data Structures
gateit-2007
data-structures
queue
normal
+
–
260
260 votes
19
answers
19 answers
62.3k
62.3k views
GATE IT 2007 | Question: 29
When searching for the key value $60$ in a binary search tree, nodes containing the key values $10, 20, 40, 50, 70, 80, 90$ are traversed, not necessarily in the order gi...
Ishrat Jahan
62.3k
views
asked
Oct 29, 2014
Data Structures
gateit-2007
data-structures
binary-search-tree
normal
+
–
105
105 votes
13
answers
13 answers
47.3k
47.3k views
GATE IT 2007 | Question: 28
Consider a hash function that distributes keys uniformly. The hash table size is $20$. After hashing of how many keys will the probability that any new key hashed collide...
Ishrat Jahan
47.3k
views
asked
Oct 29, 2014
Data Structures
gateit-2007
data-structures
hashing
probability
normal
+
–
1
1 vote
1
1 answer
1.6k
1.6k views
What will be the complexity to find the 7th smallest element in a heap?
Monisha
1.6k
views
asked
Oct 29, 2014
Data Structures
data-structures
binary-heap
time-complexity
+
–
96
96 votes
8
answers
8 answers
26.6k
26.6k views
GATE IT 2008 | Question: 77
A binary tree with $n 1$ nodes has $n_1$, $n_2$ and $n_3$ nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbou...
Ishrat Jahan
26.6k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-tree
normal
+
–
70
70 votes
8
answers
8 answers
30.4k
30.4k views
GATE IT 2008 | Question: 76
A binary tree with $n 1$ nodes has $n_1$, $n_2$ and $n_3$ nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbou...
Ishrat Jahan
30.4k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-tree
normal
+
–
39
39 votes
4
answers
4 answers
19.3k
19.3k views
GATE IT 2008 | Question: 73
How many distinct BSTs can be constructed with $3$ distinct keys?$4$$5$$6$$9$
Ishrat Jahan
19.3k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-search-tree
normal
+
–
46
46 votes
3
answers
3 answers
11.2k
11.2k views
GATE IT 2008 | Question: 72
A Binary Search Tree (BST) stores values in the range $37$ to $573$. Consider the following sequence of keys.$81, 537, 102, 439, 285, 376, 305$$52, 97, 121, 195, 242, 381...
Ishrat Jahan
11.2k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-search-tree
easy
+
–
78
78 votes
4
answers
4 answers
24.4k
24.4k views
GATE IT 2008 | Question: 71
A Binary Search Tree (BST) stores values in the range $37$ to $573$. Consider the following sequence of keys.$81, 537, 102, 439, 285, 376, 305$$52, 97, 121, 195, 242, 381...
Ishrat Jahan
24.4k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-search-tree
normal
+
–
24
24 votes
4
answers
4 answers
9.3k
9.3k views
GATE IT 2008 | Question: 48
Consider a hash table of size $11$ that uses open addressing with linear probing. Let $h(k) = k \mod 11$ be the hash function used. A sequence of records with keys$43 \ 3...
Ishrat Jahan
9.3k
views
asked
Oct 28, 2014
Data Structures
gateit-2008
data-structures
hashing
normal
+
–
30
30 votes
5
answers
5 answers
12.0k
12.0k views
GATE IT 2008 | Question: 46
The following three are known to be the preorder, inorder and postorder sequences of a binary tree. But it is not known which is which.$MBCAFHPYK$$KAMCBYPFH$$MABCKYFPH$Pi...
Ishrat Jahan
12.0k
views
asked
Oct 28, 2014
Data Structures
gateit-2008
data-structures
normal
binary-tree
+
–
45
45 votes
4
answers
4 answers
19.8k
19.8k views
GATE IT 2008 | Question: 12
Which of the following is TRUE?The cost of searching an AVL tree is $\Theta (\log n)$ but that of a binary search tree is $O(n)$The cost of searching an AVL tree is $\The...
Ishrat Jahan
19.8k
views
asked
Oct 27, 2014
Data Structures
gateit-2008
data-structures
binary-search-tree
easy
avl-tree
+
–
32
32 votes
5
answers
5 answers
12.5k
12.5k views
GATE CSE 1996 | Question: 15
Insert the characters of the string $K \ R \ P \ C \ S \ N \ Y \ T \ J \ M$ into a hash table of size $10$.Use the hash function$$h(x)=( ord (x) – ord (\text{“}a\text{”}...
Kathleen
12.5k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
hashing
normal
descriptive
+
–
72
72 votes
10
answers
10 answers
33.0k
33.0k views
GATE CSE 1996 | Question: 4
A binary search tree is used to locate the number $43$. Which of the following probe sequences are possible and which are not? Explain.$\begin{array}{llllll} \text{(a)} ...
Kathleen
33.0k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-search-tree
normal
descriptive
+
–
36
36 votes
6
answers
6 answers
37.1k
37.1k views
GATE CSE 1996 | Question: 2.14
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 ...
Kathleen
37.1k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-search-tree
easy
+
–
40
40 votes
3
answers
3 answers
20.5k
20.5k views
GATE CSE 1996 | Question: 2.11
The minimum number of interchanges needed to convert the array into a max-heap is$89, 19, 40, 17, 12, 10, 2, 5, 7, 11, 6, 9, 70$$0$$1$$2$$3$
Kathleen
20.5k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-heap
easy
+
–
27
27 votes
3
answers
3 answers
7.1k
7.1k views
GATE CSE 1996 | Question: 1.15
Which of the following sequences denotes the post order traversal sequence of the below tree?$f\; e\; g\; c\; d\; b\; a$$g\; c\; b\; d\; a\; f\; e$$g\; c\; d\; b\; f\; e\...
Kathleen
7.1k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-tree
easy
+
–
38
38 votes
3
answers
3 answers
17.7k
17.7k views
GATE CSE 1996 | Question: 1.14
In the balanced binary tree in the below figure, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?$1$$3$$7$$8$
Kathleen
17.7k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-tree
avl-tree
normal
+
–
54
54 votes
9
answers
9 answers
23.7k
23.7k views
GATE CSE 1996 | Question: 1.13
An advantage of chained hash table (external hashing) over the open addressing scheme isWorst case complexity of search operations is lessSpace used is lessDeletion is ea...
Kathleen
23.7k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
hashing
normal
+
–
52
52 votes
7
answers
7 answers
25.1k
25.1k views
GATE CSE 1996 | Question: 1.12
Consider the following statements:First-in-first out types of computations are efficiently supported by STACKS.Implementing LISTS on linked lists is more efficient than i...
Kathleen
25.1k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
easy
queue
stack
linked-list
+
–
35
35 votes
4
answers
4 answers
7.0k
7.0k views
GATE CSE 1995 | Question: 6
What is the number of binary trees with $3$ nodes which when traversed in post-order give the sequence $A, B, C ?$ Draw all these binary trees.
Kathleen
7.0k
views
asked
Oct 8, 2014
Data Structures
gate1995
data-structures
binary-tree
normal
descriptive
+
–
Page:
« prev
1
...
77
78
79
80
81
82
83
84
85
86
next »