In open addressing, how are collisions typically resolved?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. By probing and finding the next available slot in the table
Explanation
Open addressing stores every key directly inside the hash table itself, with no auxiliary structures. When a collision occurs, the algorithm probes the table using a fixed scheme (linear probing, quadratic probing, or double hashing) to find the next free slot and places the key there. Option 2 describes separate chaining, a different collision-resolution family that uses external linked lists, not open addressing. Rehashing the whole table only happens on a load-factor-triggered resize, not on every collision, so the correct description is probing for the next open slot.More Data Structures and Algorithms questions
- What is the height of the binary search tree obtained by inserting the numbers 40, 60, 50, 37, 52, 15, 8, 22 in the given order
- Match the LIST-I with LIST-II. LIST-I (Data structure) LIST-II (Characteristics) A. Stack I. First-In-First-Out (FIFO) order B. Queue II. L…
- How will the following min-heap appear on inserting the key 32? Original min-heap (level order): 5, 10, 25, 30, 40, 50, 60, 70, 80, 90 (roo…
- Consider the infix expression Q : ((A + B) ∗ D) ↑ (E − F). The equivalent postfix expression of Q is
- Which of the following trees are height balanced? A. Binary Search Tree B. AVL Tree C. Red-Black Tree D. B Tree Choose the correct answer f…
- Which of the following algorithms use the Greedy strategy? A. Dijkstra's algorithm B. Kruskal's algorithm C. Huffman coding D. Bellman-Ford…