Hashing
Hashing
Hashing
com/hashing-in-c-language/
Home
Cell Phones
GNU/Linux
Google
Laptops
Software
Tips and Tricks
Windows 7
Hashing in C Language
Filed under Programming Languages no comments
Answer.
Here are some of the common hash functions that are used in C programming :
Digit rearrangement: This is simply taking part of the original value or key
such as digits in positions 3 through 6, reversing their order, and then using
that sequence of digits as the hash value or key.
The division-remainder method: The size of the number of items in the table
is estimated. That number is then used as a divisor into each original value or
key to extract a quotient and a remainder. The remainder is the hashed value.
Radix transformation: Where the value or key is digital, the number base (or
radix) can be changed resulting in a different sequence of digits. (For example,
a decimal numbered key could be transformed into a hexadecimal numbered
key.) High-order digits could be discarded to fit a hash value of uniform length.
Folding: This method divides the original value (digits in this case) into
several parts, adds the parts together, and then uses the last four digits (or
some other arbitrary number of digits that will work ) as the hashed value or
key.
- C Interview Questions -
Related Posts:
Numbering Systems
Representation of real numbers in different number systems
Fixed Point Division
Types of Constants in C++
Keywords and Identifiers in C++
Subscribe / Share
Article by Admin
Leave a Reply
Experienced C engineer?
Deep back-end experience needed. Hottest web
startup in Delhi
www.slideshare.net
Love to Code?
Compete against other coders 24x7 C, Java,
PHP, Perl, Ruby and more!
www.CodeChef.com
Categories
Apple
Apple iPod
Cell Phones
Computer
Computer History
Computer Memory
Gmail
GNU/Linux
Google
Internet Tools
Language Tools
Laptops
Microprocessors
Microsoft Zune
Motherboards
Mozilla Firefox
MS Office
Netbooks
Other Stuff
Programming Languages
Security
Software
Spyware
Tips and Tricks
Windows 7
Xbox 360
Recent Posts
Programming Tutorials