notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

ProbingFunction.md (455B)


      1 # Probing Function
      2 
      3 Ch 5
      4 
      5 **Definition:** A probing function is a function that takes in an ordered pair of inputs, the first which is a hashcode and the second which is the iteration and outputs a position between 0 and m-1.
      6 
      7 In the case of linear probing, the function takes in an input of the hashcode (address) and the iteration. It then returns the hashcode + iteration mod m-1, this ensures the next address is checked if the previous was occupied.