What is Hashing and how is it done? Pictorial form?

Answer Posted / vivin

A hashing function is a key-to-address transformation, which acts upon a given key to compute the relative position of the key in an array.
A simple hash function
HASH(KEY value)=KEYvalue MOD TABLESIZE

(ex) HASH(92)=92 MOD 10
=2

Here 10 is table size associated with records

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use CMutex, CSemaphore in VC++ MFC

4325


What is abstract class in oops?

596


What is the purpose of enum?

579


What is the advantage of oop over procedural language?

623


What is the point of oop?

647






What is cohesion in oop?

618


Is react oop?

607


What is variable example?

593


Why is abstraction used?

601


What are the benefits of interface?

577


what is graphics

2008


what type of questions

1695


explain sub-type and sub class? atleast u have differ it into 4 points?

1830


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1392


What is difference between class and object with example?

562