Kaway Posted January 20, 2015 Share Posted January 20, 2015 [HIDE-THANKS]Hash tables are used to store data in them, like arrays, but the difference is this: to find an item in an array, it has an order of O(n), but in hash tables, the order is O(1). There are different methods for implementing hash tables. One of the common problems with hash tables is collision. In the case of collision we can do different things: 1) Add the item in the next empty row. 2) Have an over-flow table. 3) Have items linked to each other in one row with pointers. In this simple demonstration, the first and easiest method is chosen. Type. This is the hidden content, please Sign In or Sign Up Cod. This is the hidden content, please Sign In or Sign Up [/HIDE-THANKS] Link to comment Share on other sites More sharing options...
Recommended Posts