So I am trying to understand Hash Functions and Tables, I know there are different types like direct and Open addressing. What is the point of hash functions and tables, how do they work in the real world or what are they used for? Also a Hash function is supposed to be like a Dictionary?
I don't understand if the table is an Array and the Array slots have linked list in them or something like that? From what I have been reading there is a Universal Set, where it has some keys which picks the slots.
Is the Universal set an array with another array of keys in it of numbers?
Can you actually put a linked list into an Array slot?
Can somebody right some basic puesdo code to kinda show me how a basic hash function and Table work with the Universal set and Keys?
I don't understand if the table is an Array and the Array slots have linked list in them or something like that? From what I have been reading there is a Universal Set, where it has some keys which picks the slots.
Is the Universal set an array with another array of keys in it of numbers?
Can you actually put a linked list into an Array slot?
Can somebody right some basic puesdo code to kinda show me how a basic hash function and Table work with the Universal set and Keys?