Hashing Algorithm Usage in Searching

berkc

I want to know usage of Hashing in Searching. For example does Google or Yahoo uses Hash Algorithms? Does big companies use this Hashing Algorithm?

Saurabh Saluja

Yes. Refer to book Page rank and beyond , there you will find that google uses hashing.Hashing make your complexity too low in all aspect like searching,adding etc.Let me tell you a situation suppose you are making an online chatting website.And you have to handle a million users.you can use linear search which will take worst time around 1 million*time to fetch one element.The user will have to wait a lot on the client side.But you will save money as you are not using extra space complexity.But if you will use hashing time taken will be around the time to fetch only one element.But here the system will cost you a lot as you have to pay for extra storage (1 million data storage records with a better hashing function).But here the challenge is to have a best hashing function that can cause minimum collisons to store elements.Hashing is a big topic I cannot explain in short. refer to these links:

What is a good Hash Function?
http://en.wikipedia.org/wiki/Hash_function
http://www.cs.cmu.edu/~clo/www/CMU/DataStructures/Lessons/lesson11_2.htm
http://www.tutorialspoint.com/dbms/dbms_hashing.htm
http://www.internetlivestats.com/total-number-of-websites/

Google links trillions of websites, about 1156000000.let us assume 1 milli second in getting one page from db.In worst case it will take around 1156000000*1 ms= 1156000 sec = 5.35 years. The user in worst case will have to wait for 5 years to search.Therefore this cannot be done in simple linear search.Google have its own hidden complex algorithms(you can find in the book above).Google have its own servers to store the hashing records, from where the records will be fetched by using some hashing functions.I doesn't have much idea about how google works.What I know is google uses probability a lot.Find in this book about how google works - http://langvillea.people.cofc.edu/UIUC.pdf

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Modern php hashing algorithm

From Dev

Modern php hashing algorithm

From Dev

Rijndael algorithm alternative for password hashing

From Dev

Python frozenset hashing algorithm / implementation

From Dev

Cassandra hashing algorithm with composite keys

From Dev

Cassandra hashing algorithm with composite keys

From Dev

Which is the better Searching algorithm ??

From Dev

Algorithm for searching for patterns in trees

From Dev

Scalable searching algorithm SQL

From Dev

Searching Algorithm using listbox

From Dev

Searching for function usage in Excel VBA

From Java

Cheap single thread password hashing algorithm

From Dev

Python: Rabin-Karp algorithm hashing

From Dev

Is there a two-way hashing algorithm in PHP?

From Dev

How to make my hashing algorithm faster

From Dev

Which is the best password hashing algorithm for PHP?

From Dev

How to find the hashing algorithm used to hash passwords?

From Dev

Is there a consistent hashing algorithm that support zero remapping of keys?

From Dev

How hashing algorithm works in Dataset.repartition

From Dev

Searching for an atypical graph pathfinding algorithm

From Dev

Algorithm for searching a value in two arrays

From Dev

FFT algorithm usage

From Dev

Good algorithm for searching DB for a given string

From Dev

Best algorithm for fuzzy searching directory names

From Dev

Searching for algorithm to generate combinations ordered by preference

From Dev

searching through subsets, algorithm (optimal or heuristic)

From Dev

Two-Dimensional Array Searching Algorithm Optimisation

From Dev

Algorithm or formula to find good tuning values for searching

From Dev

OpenCV algorithm of contours searching and creation of bounding rectagle

Related Related

HotTag

Archive