0% found this document useful (0 votes)
15 views6 pages

Hashing

The document discusses hashing techniques for indexing and searching data. Hashing is used to map data to a hash table by using a hash function to generate a hash code from the data. Collisions occur when different data maps to the same hash code, and techniques like separate chaining are used to handle collisions.

Uploaded by

Maahi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views6 pages

Hashing

The document discusses hashing techniques for indexing and searching data. Hashing is used to map data to a hash table by using a hash function to generate a hash code from the data. Collisions occur when different data maps to the same hash code, and techniques like separate chaining are used to handle collisions.

Uploaded by

Maahi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

ed-'

hashes are O -A
of
that to
oata -Harng
tebeLare dexanpou'Hauhble
The larp -rs -T4 seanching
and consta but -The
-technqes
x hash called AunchnsHashare A Hash Dn Dn
renerne hasng Tho
s ito
hash hash t hash botHh Hastaing
= yalues size wsed wing Mo hauing
teble Hme. Hme
hash tunction sed depends
upem ime.
hey) of the That
hash
i çncion
o to
uncttoD tunch funchi
to Hash
is
iscomplecity
a
rehrned hash dabe the
a for
searclugsearchiig
ttchuque complexiy
codes map table
n ccedare to stone
hnpcxtant a wser
y. date process ot ts techn'quc
co items ác seanclig
constesth neo
s
hath by anyanstant ued the of
t
sedafa as to wed elememts
no-ot
techiques in
to key data
hash thot iuear
valueshash funch'
ofon well smaUer
mapplgenerate hashigt'one DATE PAGE
NO.:

sef me
ctare stbuchres table
er value deach
tunche xed o)
0) e take
the s
o)
Key e
hasb in
assigne shuck GA
evtnlyy follaoing
To
indsx index=
(rey
hash hashstare A funcinhatThhe
Hash
funcht gcod qood
n
funcbm teble to açross
vauesl0,
clusering
11,12,key the hash
Value
hashtunchenhash is
requinemeatr
tHagh s of Sqme tunch hash
tunch funcho
1921024 wed sixe
table
on
dishbutes
Hash
Value
7 indes hlo hash avosds
tind mut
netr JS
Achua
datacho 1 13 |2
dollaons DATE: PAGE
NO:
ket index value eaY gaisty
13, colli kee
K
i
taes re0luticn to
each tonyngto
ano CollisionCollislon
-
iattiTech
Callisiom
actuhoM
hiass uiqueSuch Successtullyvalue 5 the CUmtentk Ta thvalnendeuxe
If As Tf stoye Thethex
aready When
But Thene
eed O ab index
Theseae call nde theoe jndex
ndlex zinsert0e calliion
'reis indexÎndex |2-13 23ovee hoo
is are
techwiquer Ony kestore
topoble execute diferent
collisoané in
insext is one value l ed
conplekd wil a
Creates key
hoo 4 no example a
24 ne valu hash
e collisionocc
s be bkey valuer
e
insertF elemelt
s)
collistem
main alread l0 calulated key
Qvailable table a or
at
can operahon
4 prablem0ccupicd
=4 hashh have,
(24) value
CIs) is ndex
PAGE
NO.:
be. havi at DATE :
supposed
aa
(15) table Sam-e sa
neeohedag apexaba uoibel . ndex becaw byhch
index resolti
aay common
ans -The
eleme
teehuiqw
chatning
Hor 2 mplemented
mostwing -
element stored 6
Ahat ibe
l -T4
Hash
The collisioo. Tf Table In
indes
of He nAlareasugs
uiosk
Bechaige
searchin fo
lechnique also
222 ash
tached e case Aed 5 mehod
of
Iinked
table called
Hme wlaicb
Hhe s.
walue
then
nem) 25 Chaii Hhe
appeariked
haseahJists haailiOpen as
|s ded
QQme
chai
its hash
list
|inked
au collisho
ofach ot ) ase tab
EQuadraic.
Bnbixg.
hal -

Success differernce
sprobes
-The behween -The
the idearsout -Ina Arabi
Oinaxg techuigawed
hrawased - Lwil) beThe sequentiad The also
exxD')ndex ime Whe simplet
prube index prahis
Linear nex Olineax
prpbins
bndexndex pppbing 1ext tHis
=
raue
Quadahc
probiMg
echigu
haing
Double. ane
collss'or
jndexhdenvaluntil of
is =index= Successhe emphy
avaç jt
(index+2) approach
search
coll'stom
of habtablesice %
hdexSequece lable s
e
sixe we
an isoccurs valten +) to
locai
means
tevathe place is to hashing
closed
(aleulakee tnd Pobes en
e
aynanja
rbihay % posih'o dono
o
hashtaslesike tor
hashthbehween
a)table eSucoelmhahtablesixe a esove
lincar is
by
emph vaue to /DATE: PAGENO.:
'xed he
ind colli
adding prabig
slot wan
n
9Double
Hauii
is
-The -Hent
thcts
index
indey=
compued Siilar
Here, pnb'
= x Hhe
Cmpued (index prpbig
liear a
hdex by
ntemal
dexH +
equcice
2t uing
b J*
s behieen
too
ndex
indexH).
ano tthe
wil
then H) hash be
hash NO.:
DATE: 7PAGE
haw anhtableci
hashtableaiz prubea
tunehie
tnvalue
ch

You might also like