Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

data structures and algorithms

Rating
-
Sold
-
Pages
10
Uploaded on
29-04-2023
Written in
2022/2023

Its all about data structures and algorithms

Institution
Course

Content preview

DATA STRUCTURE http://www.youtube.com/c/EDULINEFORCS
STUDENT




MODULE 5
SORTING & HASHING




Prepared By Mr. EBIN PM, AP, IESCE 1




HASHING
Hash Tables
• Hash Table is a data structure which stores data in an associative
manner.
• In a hash table, data is stored in an array format, where each data
value has its own unique index value. Access of data becomes very
fast if we know the index of the desired data.
• Hashing function is used to implement hash table
• Hash function returns a location in hash table
• Hash table contains buckets

Prepared By Mr.EBIN PM, AP, IESCE EDULINE 2




Prepared By Mr. EBIN PM, AP, IESCE

, DATA STRUCTURE http://www.youtube.com/c/EDULINEFORCS
STUDENT




• Hash value is a bucket address of hash table
• One bucket can store more than one values
• N number of record can be stored in one bucket.
• One bucket has number of slots. In 2 slotted hash table, one bucket
contains 2 values.
n = number of key values
b = number of buckets
s = number of slots
∴ identifier density = n/T, where T is total number of possible
identifiers. And
Loading factor = n/sb
Prepared By Mr.EBIN PM, AP, IESCE EDULINE 3




Consider 2 identifiers I₁ and I₂.
I₁ and I₂ are applied on a same hashing function and produce same
bucket address. So I₁ and I₂ stored in same bucket. Then this
identifier is called “synonyms”
0 I₁ I₂ Synonyms
1
2
. 2 slotted hash table. Hash table with 26 buckets and
. two slots per bucket
.
25



Prepared By Mr.EBIN PM, AP, IESCE EDULINE 4




Prepared By Mr. EBIN PM, AP, IESCE

Written for

Institution
Course

Document information

Uploaded on
April 29, 2023
Number of pages
10
Written in
2022/2023
Type
Class notes
Professor(s)
Ebin
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
adharshwork40

Get to know the seller

Seller avatar
adharshwork40 MET'S School of Engineering
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions