Metraipolis › archive › dc_21489a3f64c4

2-choice hashing — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/2-choice_hashing
License (as archived)
CC-BY-SA-4.0
Archived
2026-11-01T09:45:38.164Z
SHA-256 of the archived text
15a9a3ce94ce62f8dad65225c249767eef8c5fd28e2163548de19e42fa35defe
Stable URL of this page
https://metraipolis.com/documento/dc_21489a3f64c4

How to cite

2-choice hashing — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/2-choice_hashing (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_21489a3f64c4 (Metraipolis archive dc_21489a3f64c4, sha256 15a9a3ce94ce62f8dad65225c249767eef8c5fd28e2163548de19e42fa35defe)
BibTeX
@misc{dc21489a3f64c4,
  title = {2-choice hashing — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/2-choice_hashing},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_21489a3f64c4; sha256 15a9a3ce94ce62f8dad65225c249767eef8c5fd28e2163548de19e42fa35defe},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/2-choice_hashing. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

2-choice hashing, also known as 2-choice chaining, is "a variant of a hash table in which keys are added by hashing with two hash functions. The key is put in the array position with the fewer (colliding) keys. Some collision resolution scheme is needed, unless keys are kept in buckets. The average-case cost of a successful search is O ( 2 + ( m − 1 ) / n ) {\displaystyle O(2+(m-1)/n)} , where m {\displaystyle m} is the number of keys and n {\displaystyle n} is the size of the array. The most collisions is log 2 ln n + θ ( m / n ) {\displaystyle \log _{2}\ln n+\theta (m/n)} with high probability."

Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico).
Fonte: Wikipedia in inglese, voce «2-choice hashing» — https://en.wikipedia.org/wiki/2-choice_hashing
Wikidata Q4596934: «variant of hash table» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q4596934
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/2-choice_hashing?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1368666145, consultata il 2026-11-01T09:38:24.616Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 902833cd3ea58e58a1faf9c2dd9c5cf855f426fa790488ad3192e048eff570fb