answersLogoWhite

0


Best Answer

Hashing is a special form of indexing. Hashing is a way to transform a textual value in a shorter integer value for indexing purpose. This technique is widely used in runtime engine, database, etc.

For example, "This is a test" is hashed as 3325525, a 32-bit integer (I made the value up to demonstrate the use of hashing value).

When the computer need to find "This is a test", it applied the hashing algorithm (there are many ways to do this) to get the integer value of 3325525, and then "looks" up in a table-like structure with that integer value to find the memory location of that string. The look-up from integer to something (a memory location in this case), is called indexing.

Some computer languages do provide indexers in textual way. That is indexing by strings, not just integers. The underlined implementation may have an additional hash look up as:

the key string --- Hased ---> an integer hash value

the storage is storing (integer, ?) ? is an object of some sort

not just (string, ?)

Although the user (the programmer) may simply apply Owner["Windows 7"] directly without knowing "Windows 7" is hashed into 9993939. (Owner is a table may be indexed by strings, or by an integer, like an array)

Please note that even the number 9993939 itself may be hashed into something else, other than the value of 9993939. Owner[9993939] may not have the value as Owner["Window 7"], assume "Windows 7" be hased as 9993939.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between indexing and hashing?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between pre-indexing and post-indexing?

what is pre-indexing


Pre indexing post indexing difference between?

what are the differents between preindexing and post indexing?


What are the difference between static and dynamic hashing in DBMS?

Search operation in static hashing is time consuming, but in dynamic hashing it is not.


Difference between Internal hashing n external hashing?

Internal hashing mainly used for internal file, it is particularly an array of records. External hashing used for file disk


What is the difference between the indexing and coding filing procedures?

the difference between coding and filling


What are the two names of the most popular hashing algorithms?

Both SHA-1 and MD5 are good hashing algorithms. The primary difference between the two is speed; MD5 is faster to process than SHA.


What are different types of hashing techniques are there in DBMS?

there are 2 types of hashing techniques 1- Static hashing 2-Dynamic hashing


Indexing method in milling machine?

Direct Indexing, Simple Indexing, and Angular Indexing


What is Homomorphic Hashing?

Homomorphic Hashing is a algorithm technique used for verifying data.


What is hashing function in data structure?

If you read up on hashing, why hashing is done, what are its uses. Then you will be able to answer your own question. More to the point you will have studied the material that your homework question is intended to make you study. It is educational.


Why do you use hashing and not array?

Hashing provides a method to search for data.Hashing provides a method to search for data.Hashing provides a method to search for data.Hashing provides a method to search for data.


Another term for an icv is?

Hashing.