What does hashing aim to achieve in searching?
What does hashing aim to achieve in searching?
Solution
Hashing uses a hash function to convert a key directly into an index (address) in a table. The record can then be reached straight from that index without scanning through the data, so search, insert and delete take time on average.
Option 1: hashing does not keep data in order; sorted order is what sorting algorithms or ordered structures provide.
Option 3: a hash value is a short fixed-size code used for locating data, but the purpose is not to shrink the stored data.
Option 4: hierarchical organisation belongs to trees, not to hash tables, which are flat arrays indexed by hash values.
Related questions:
2025: 21 May Shift 1
2026: 29 May Shift 1
2026: 18 May Shift 2
2026: 18 May Shift 2
2026: 31 May Shift 1