Hi folks!! I am working on a problem where there is a hash table involved. I have randomly distributed coordinates over a city as keys and i need a hash function to convert those coordinates to the positions of my array(hash table).I thought that maybe i could use a function to convert my coordinates to natural numbers and then using a common hash function. I am just a beginner, and my project is not very important, so most of all i need a simple solution.(adsbygoogle = window.adsbygoogle || []).push({});

Any help would be much appreciated.

Best regards, Paul.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Hashing function

**Physics Forums | Science Articles, Homework Help, Discussion**