Algorithms For Dummies



Download 7,18 Mb.
Pdf ko'rish
bet271/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   267   268   269   270   271   272   273   274   ...   651
Bog'liq
Algorithms

 

»

Chaining: Each slot in the hash table can hold multiple values. You can 

implement this approach by using a list within a list. Every time a collision 

occurs, the code simply appends the value to the list in the target slot. This 

approach offers the benefit of knowing that the hash will always produce the 

correct slot, but the list within that slot will still require some sort of sequential 

(or other) search to find the specific value.



Creating your own hash function

You may at times need to create custom hash functions in order to meet the needs 

of the algorithm you use or to improve its performance. Apart from cryptographic 



CHAPTER 7

  Arranging and Searching Data 

     151


uses (which deserve a book alone), Chapter 12 presents common algorithms that 

leverage different hash functions, such as the Bloom Filter, the HyperLogLog, and 

the  Count-Min Sketch, that leverage the properties of custom hash functions to 

extract information from huge amounts of data.

You can find many examples of different hash functions in the Python 

hashlib


 

package. The 

hashlib

 package contains algorithms such as these:




Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   267   268   269   270   271   272   273   274   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish