null
US
Entrar
Registre-se gratuitamente
Registre-se
Detectamos que o JavaScript não está habilitado no teu navegador. Habilite o Javascript para o funcionamento correto do nosso site. Por favor, leia os
Termos e Condições
para mais informações.
Próximo
Copiar e Editar
Você deve estar logado para concluir esta ação!
Inscreva-se gratuitamente
1592346
Hashing
Descrição
220 Mapa Mental sobre Hashing, criado por dadelgado01 em 06-11-2014.
Sem etiquetas
220
Mapa Mental por
dadelgado01
, atualizado more than 1 year ago
Mais
Menos
Criado por
dadelgado01
aproximadamente 11 anos atrás
7
1
0
Resumo de Recurso
Hashing
Data Structures
Associative Array or Dictionary
O(1) to find any record
Hash Functions
Should produce hash codes that are (almost) uniformly random
Hashing methods
Division
Use prime number as table size, m
Convert keys, k, into integers
use remainder, h(k) = k % m as hash value
Folding
Divide the int key, k, into sections
Add, subtract and/or multiply them, combining them into the hash code
Middle-Squaring
Choose a middle section of the int key, k
Square the chosen section
Use middle section of hat result as hash key
Truncation
Delete part of the key, k
Use remaining part as hash key
Hash Collisions
The Perfect Hash Function is one that gives a different hash code for every key
A Minimal hash function is when the number of keys n equals the array size m
Collision Resolution Policy
OALP - Open Addressing with Linear Probing
Successive search for first entry with matching key at lower location in table
If no such entry, "Wrap around" the table
Clusters keys together
OADH - OA with Double Hashing
Hash a collided key again with a different hash function
Use result of second hashing as increment for probing table locations
Other Techniques
Hash Buckets
Divide a big hash table into several small sub-tables, or buckets
Hash function maps key into one of the buckets
Keys are stored in each bucket in sequentially increasing order
Chaining
All records for a single hash address are kept in a linked list, or chain, started at that address
Desired Properties for a good Hashing theme
Hash locations spread out
Use relatively small table size, that doesn't affect performance
The function h is fast to compute
Quer criar seus próprios
Mapas Mentais
gratuitos
com a GoConqr?
Saiba mais
.
Semelhante
CompTIA A+ 220-902
Patrick Jenkins
Chp 11.
Omo Mora
Chp 13 and 16
Omo Mora
Macroecon Exam 1
Omo Mora
Chapter 10
Omo Mora
Hash Functions
msladey
Static Perfect Hashing
msladey
Cuckoo Hashing
msladey
Explore a Biblioteca