Hashing and hash table, Trees and binary tree
Hashing hashing is a technique used for storing and retrieving keys in a rapid manner. in hashing a value is transformed into a shorter value in a way in which it represent a key to that specific value, it is used to index and retrieve data in a way that it is faster that to search manually. hashing can also be defined as a concept of distributing keys in a table(array) using a hash function. Hash function some method to hash a function includes:- - mid-square:- * square the string and then use the appropriate number of bits from the middle of the square to obtain the hash-key - Division :- * divide the string using the modulus operator - folding :- * partition the string into several parts, then add the part together to obtain the hash key - digit extraction :- * predefined the digit of the given number is considered as the hash address - rotating hash :- * use any method of hashing then shift the digits to get a new address Collision there will be cases in which a cert...