Table Lookup

Consider a related problem.

Suppose we instead wish to find with a given postcodes.

As postcodes come from a small segment of the integers (0..10000) we can use table lookup which is very efficient.

Index