




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
In the subject of the Data Structures, the key concept and the main points, which are very important in the context of the data structures are listed below:Hashing, Sorting Objects, Manipulating References, Objects Themselves, Array of Objects, Stable Sort, Order of Duplicates, Search Problem, Unsorted List, Sorted List
Typology: Slides
1 / 44
This page cannot be seen from the preview
Don't miss anything!
4
5
7
Example 1: Suppose that the are integers from 1 to 100 and that there are about 100 records. Create an array A of 100 items and stored the record whose key is equal to i in in A[i].
|K| = |U| |K|: # elements in K |U|: # elements in U
8
Example 2: Suppose that the keys are 9-digit social security numbers (SSN) Although we could use the same idea, it would be very inefficient (i.e., use an array of 1 billion size to store 100 records)
|K| << |U|
11
13
Example 2: numbers (SSN) Suppose that the keys are 9-digit social security
16
17
Column 3:
{0, 1} {0, 1, 2, 3}
k mod 100^ k mod 97
m 97 m 100
19
Suppose k=6, A=0.3, m= (1) k x A = 1. (2) fractional part: (3) m x 0.8 = 32 x 0.8 = 25. (4)