CE205 Data Structures¶
Week-13¶
Introduction to File Organization and Processing Sequential File Organization,Direct File Organization Hash Methods¶
Download PDF,DOCX, SLIDE, PPTX
Outline-1¶
- File Organization
- Sequential File Organization
- Binary Search
- Interpolation Search
- Self-Organizing Sequential Search
Outline-2¶
- File Organization
- Direct File Organization
- Locating Information
- Hashing Functions (MD5, HAVAL, SHA1 etc.)
- Key mod N
- Key mod P
- Truncation
- Folding
- Squaring
- Radix Conversion
- Polynomial Hashing
- Alphabetic Keys
- Collisions
Outline-3¶
- File Organization
- Direct File Organization
- Collision Resolution
- Collision resolution with links
- Collision resolution without links
- Static positioning of records
- Dynamic positioning of records
- Collision resolution with pseudolinks
Outline-4¶
- File Organization
- Direct File Organization
- Coalesced Hashing
- EISCH
- LISCH
- BEISCH
- BLISCH
- REISCH
- RLISCH
- EICH
- LICH
Outline-5¶
- File Organization
- Direct File Organization
- Progressive Overflow
- Linear Probing
- Quadratic Probing
- Double Hashing
- Use of Buckets
- Linear Quotient
- Brent’s Method
Outline-6¶
- File Organization
- Direct File Organization
- Binary Tree
- Computed Chaining Insertion(CCI)
- Comparison of Collision Resolution Methods
- Perfect Hashing
- SimHash
File Organization¶
Sequential File Organization¶
- Binary Search
- https://www.scss.tcd.ie/Owen.Conlan/4d2/4D2-4_File_Sorting_v1.pdf
- https://www.programiz.com/dsa/binary-search
- Interpolation Search
- https://www.geeksforgeeks.org/interpolation-search/
- Self-Organizing Sequential Search
- https://people.csail.mit.edu/rivest/pubs/Riv76a.pdf
- https://xlinux.nist.gov/dads/HTML/selforganizingSequentialSearch.html
- https://xlinux.nist.gov/dads/HTML/transposeSeqSearch.html
File Organization¶
Direct File Organization¶
Locating Information¶
Hashing Functions (MD5, HAVAL, SHA1 etc.)¶
- Key mod N
- Key mod P
- Truncation
- Folding
- Squaring
- Radix Conversion
- Polynomial Hashing
- Alphabetic Keys
- Collisions
Hashing Functions (MD5, HAVAL, SHA1 etc.)¶
- http://www.cs.bilkent.edu.tr/~kdincer/teaching/spring1999/bu-bil212-fo/lectures/pdf-files/bil212-chp6-2.pdf
- https://www.amirajcollege.in/wp-content/uploads/2020/06/3130702-chapter-4-hashing-and-file-structure.pdf
- https://www.cs.bilkent.edu.tr/~kdincer/teaching/spring1999/bu-bil212-fo/lecture_notes.htm
- https://www.cs.otago.ac.nz/cosc242/pdf/L09.pdf
- https://www.cs.otago.ac.nz/cosc242/pdf/L10.pdf
Collision Resolution¶
- Collision resolution with links
- Collision resolution without links
- Static positioning of records
- https://www.cs.bilkent.edu.tr/~canf/CS351Fall2010/cs351lecturenotes/week5/index.html
- Dynamic positioning of records
- https://www.cs.bilkent.edu.tr/~canf/CS351Fall2010/cs351lecturenotes/week5/index.html
- Collision resolution with pseudolinks
-
https://www.cs.bilkent.edu.tr/~canf/CS351Fall2010/cs351lecturenotes/week6/index.html
Coalesced Hashing¶
- EISCH
- LISCH
- BEISCH
- BLISCH
- REISCH
- RLISCH
- EICH
-
LICH
Progressive Overflow¶
- Linear Probing
- https://en.wikipedia.org/wiki/Linear_probing#:~:text=Linear%20probing%20is%20a%20scheme,by%20Gene%20Amdahl%2C%20Elaine%20M.
- Quadratic Probing
Double Hashing¶
- https://www.geeksforgeeks.org/double-hashing/
- https://www.geeksforgeeks.org/hashing-set-3-open-addressing/
Use of Buckets¶
Linear Quotient¶
Brent’s Method¶
- https://github.com/ncilengir/brent-hashing
- https://cseweb.ucsd.edu//~kube/cls/100/Lectures/lec17.brentsordered/lec17.pdf
Binary Tree¶
- https://stackoverflow.com/questions/8801898/representing-a-binary-tree-in-a-file
- https://www.geeksforgeeks.org/serialize-deserialize-binary-tree/
- https://www.cs.otago.ac.nz/cosc242/pdf/L12.pdf
Computed Chaining Insertion(CCI)¶
Comparison of Collision Resolution Methods¶
Perfect Hashing¶
SimHash¶
- Similar Hash
\[ End-Of-Week-13 \]