Linear Probing

Linear Probing is a strategy for #202112131222 that trying cell sequentially in searching of empty cell.

Details

Analysis

  • Insertions are cheaper earlier, but they are more expensive after every insert
  • Unsuccessful search will result in \(\frac{1}{2} (1 + \frac{1}{(1 - \lambda)^2})\) number of probes
  • Successful search will result in \(\frac{1}{2} (1 + \frac{1}{(1 - \lambda)})\) number of probes

Attention

Links to this page
#data-structure #hash-table