|
|
|
12 - Hash Tables.pdf
12_-_Hash_Tables.pdf
Showing 10 out of 10
12 - Hash Tables.pdf-Dictionaries and Hash Tables ...
12_-_Hash_Tables.pdf-Dictionaries and Hash Tables ∅ ∅
12 - Hash Tables.pdf-Dictionaries a...
12_-_Hash_Tables.pdf-Dictionaries and Hash Tables ∅ ∅
Page 10
Dictionaries and Hash Tables
19
Performance of
Hashing
In the worst case, searches,
insertions and removals on a
hash table take
O
(
n
)
time
The worst case occurs when
all the keys inserted into the
dictionary collide
The load factor
α
=
n
/
N
affects
the performance of a hash
table
Assuming that the hash values
are like random numbers, it
can be shown that the
expected number of probes
for an insertion with open
addressing is
1
/
(1
−
α
)
The expected running
time of all the dictionary
ADT operations in a hash
table is
O
(1)
In practice, hashing is
very fast provided the
load factor is not close
to 100%
Applications of hash
tables:
small databases
compilers
browser caches
Ace your assessments! Get Better Grades
Browse thousands of Study Materials & Solutions from your Favorite Schools
Concordia University
Concordia_University
School:
Data_Structures_and_Algorithms
Course:
Introducing Study Plan
Using AI Tools to Help you understand and remember your course concepts better and faster than any other resource.
Find the best videos to learn every concept in that course from Youtube and Tiktok without searching.
Save All Relavent Videos & Materials and access anytime and anywhere
Prepare Smart and Guarantee better grades
Students also viewed documents
lab 18.docx
lab_18.docx
Course
Course
3
Module5QuizSTA2023.d...
Module5QuizSTA2023.docx.docx
Course
Course
10
Week 7 Test Math302....
Week_7_Test_Math302.docx.docx
Course
Course
30
Chapter 1 Assigment ...
Chapter_1_Assigment_Questions.docx.docx
Course
Course
5
Week 4 tests.docx.do...
Week_4_tests.docx.docx
Course
Course
23
Week 6 tests.docx.do...
Week_6_tests.docx.docx
Course
Course
106