24.11.2014 Views

Profa. Dra. Ana Paula Appel - CEUNES

Profa. Dra. Ana Paula Appel - CEUNES

Profa. Dra. Ana Paula Appel - CEUNES

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hashing estático <br />

• Técnicas de rehash:<br />

o Se posição h(k) está ocupada (lembre-se de que h(k) é<br />

um índice da tabela), aplicar função de rehash sobre h(k),<br />

que deve retornar o próximo bucket livre: rh(h(k)),<br />

o Características de uma boa função de rehash:<br />

• Cobrir o máximo de índices entre 0 e B 1,<br />

• Evitar agrupamentos de dados.<br />

o Além de utilizar o índice resultante de h(k) na função de<br />

rehash, pode-se usar a própria chave k e outras funções<br />

hash.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!