Topics in Data Structures

Filter by year

Data Structures questions

Q16

GATE DA 2024 DAData StructuresMCQ1 mark−1/3 if wrong

Report a problem with Q16

What is wrong?
Match the items in Column 1 with the items in Column 2 in the following table:
Column 1Column 2
(p) First In First Out(i) Stacks
(q) Lookup Operation(ii) Queues
(r) Last In First Out(iii) Hash Tables
Show answer without attempting

Loading the answer…

Q21

GATE DA 2024 DAData StructuresMCQ1 mark−1/3 if wrong

Report a problem with Q21

What is wrong?
Consider performing uniform hashing on an open address hash table with load factor α=nm<1\alpha = \frac{n}{m} < 1, where nn elements are stored in the table with mm slots. The expected number of probes in an unsuccessful search is at most 11−α\frac{1}{1 - \alpha}.

Inserting an element in this hash table requires at most ______ probes, on average.
Show answer without attempting

Loading the answer…

Q28

GATE DA 2024 DAData StructuresMSQ1 mark

Report a problem with Q28

What is wrong?
Consider the following tree traversals on a full binary tree:

(i) Preorder
(ii) Inorder
(iii) Postorder

Which of the following traversal options is/are sufficient to uniquely reconstruct the full binary tree?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q32

GATE DA 2024 DAData StructuresNAT1 mark

Report a problem with Q32

What is wrong?
The fundamental operations in a double-ended queue D are:

insertFirst(e) – Insert a new element e at the beginning of D.
insertLast(e) – Insert a new element e at the end of D.
removeFirst() – Remove and return the first element of D.
removeLast() – Remove and return the last element of D.

In an empty double-ended queue, the following operations are performed:
insertFirst(10)
insertLast(32)
a ← removeFirst()
insertLast(28)
insertLast(17)
a ← removeFirst()
a ← removeLast()
The value of a is ______.
Show answer without attempting

Loading the answer…

Q52

GATE DA 2024 DAData StructuresMSQ2 marks

Report a problem with Q52

What is wrong?
Let H,I,L,H, I, L, and NN represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree.

Which of the following statements is/are always TRUE?
More than one option can be correct.
Show answer without attempting

Loading the answer…

0/50 correct0 marks

Related topics in Programming Data Structures and Algorithms