1 / 15

Tree-based Indexing

Tree-based Indexing. Hessam Zakerzadeh. ISAM ( Indexed Sequential Access Method ). ISAM was originally developed by IBM for mainframe computers Allows records to be accessed: sequentially (in the order they were entered) randomly (with an index). ISAM ( Indexed Sequential Access Method ).

moana
Download Presentation

Tree-based Indexing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tree-based Indexing Hessam Zakerzadeh

  2. ISAM(Indexed Sequential Access Method) • ISAM was originally developed by IBM for mainframe computers • Allows records to be accessed: • sequentially (in the order they were entered) • randomly (with an index)

  3. ISAM(Indexed Sequential Access Method) • Static index structure. • Data values reside in leaf nodes. • Effective when file is not frequently updated.

  4. Overflow page Non-leaf Pages Leaf Pages Primary pages • Leaf pages contain data entries.

  5. After Inserting 23*, 48*, 41*, 42* ... Root 40 Index Pages 51 63 20 33 Primary Leaf 10* 15* 20* 27* 46* 55* 40* 51* 97* 33* 37* 63* Pages 41* 48* 23* Overflow Pages 42*

  6. Give an example of when you would use each element (A or B) for each of the following ‘A versus B’ pairs: • A hashed index using Alternative (1) versus heap file organization.

  7. Give an example of when you would use each element (A or B) for each of the following ‘A versus B’ pairs: • A hashed index using Alternative (1) versus heap file organization. • hashed index : when most of the queries are equality queries. • heap file : when a file is scanned in sequential order.

  8. Extendible Hashing versus Linear Hashing.

  9. Extendible Hashing versus Linear Hashing. • Extendible Hashing : When data values lead to a skewed distribution • Linear Hashing : A large data file requiring a directory to span several pages.

  10. Static Hashing versus Linear Hashing.

  11. Static Hashing versus Linear Hashing. • Static Hashing :When the number of records are constant • Linear Hashing: When number of records varies, and hash key values are uniformly distributed.

  12. Static Hashing versus ISAM

  13. Static Hashing versus ISAM • Static Hashing: When the number records are constant and most of the queries are equality search • ISAM :When queries involve range queries

  14. Linear Hashing versus B+ trees

  15. Linear Hashing versus B+ trees • Linear Hashing :When queries are equality search • B+ trees :When queries are range search

More Related