SlideShare ist ein Scribd-Unternehmen logo
1 von 84
Downloaden Sie, um offline zu lesen
Chapter 12: Indexing and Hashing Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use  Rev. Sep 17, 2008
Chapter 12: Indexing and Hashing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.2 Database System Concepts - 5 th  Edition.
Basic Concepts ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.3 Database System Concepts - 5 th  Edition. search-key pointer
Index Evaluation Metrics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.4 Database System Concepts - 5 th  Edition.
Ordered Indices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.5 Database System Concepts - 5 th  Edition.
Dense Index Files ,[object Object],12.6 Database System Concepts - 5 th  Edition.
Sparse Index Files ,[object Object],[object Object],[object Object],[object Object],[object Object],12.7 Database System Concepts - 5 th  Edition.
Sparse Index Files (Cont.) ,[object Object],[object Object],[object Object],[object Object],12.8 Database System Concepts - 5 th  Edition.
Multilevel Index ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.9 Database System Concepts - 5 th  Edition.
Multilevel Index (Cont.) 12.10 Database System Concepts - 5 th  Edition.
Index Update: Record Deletion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.11 Database System Concepts - 5 th  Edition.
Index Update: Record Insertion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.12 Database System Concepts - 5 th  Edition.
Secondary Indices Example ,[object Object],[object Object],12.13 Database System Concepts - 5 th  Edition. Secondary index on  balance  field of  account
Primary and Secondary Indices ,[object Object],[object Object],[object Object],[object Object],[object Object],12.14 Database System Concepts - 5 th  Edition.
B + -Tree Index Files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.15 Database System Concepts - 5 th  Edition. B + -tree indices are an alternative to indexed-sequential files.
B + -Tree Index Files (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.16 Database System Concepts - 5 th  Edition. A B + -tree is a rooted tree satisfying the following properties:
B + -Tree Node Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],12.17 Database System Concepts - 5 th  Edition.
Leaf Nodes in B + -Trees ,[object Object],[object Object],[object Object],12.18 Database System Concepts - 5 th  Edition. Properties of a leaf node:
Non-Leaf Nodes in B + -Trees ,[object Object],[object Object],[object Object],[object Object],12.19 Database System Concepts - 5 th  Edition.
Example of a B + -tree 12.20 Database System Concepts - 5 th  Edition. B + -tree for  account  file ( n =  3)
Example of B + -tree ,[object Object],[object Object],[object Object],12.21 Database System Concepts - 5 th  Edition. B + -tree for  account  file ( n  = 5)
Observations about B + -trees ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.22 Database System Concepts - 5 th  Edition.
Queries on B + -Trees ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.23 Database System Concepts - 5 th  Edition.
Queries on B +- Trees (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.24 Database System Concepts - 5 th  Edition.
Updates on B + -Trees: Insertion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.25 Database System Concepts - 5 th  Edition.
Updates on B + -Trees: Insertion (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.26 Database System Concepts - 5 th  Edition. Result of splitting node containing Brighton and Downtown on inserting Clearview Next step: insert entry with (Downtown,pointer-to-new-node) into parent
Updates on B + -Trees: Insertion (Cont.) 12.27 Database System Concepts - 5 th  Edition. B + -Tree before and after insertion of “Clearview”
Insertion in B + -Trees (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.28 Database System Concepts - 5 th  Edition. Redwood Downtown Mianus Perryridge Downtown Mianus
Updates on B + -Trees: Deletion ,[object Object],[object Object],[object Object],[object Object],[object Object],12.29 Database System Concepts - 5 th  Edition.
Updates on B + -Trees: Deletion ,[object Object],[object Object],[object Object],[object Object],[object Object],12.30 Database System Concepts - 5 th  Edition.
Examples of B + -Tree Deletion ,[object Object],[object Object],12.31 Database System Concepts - 5 th  Edition. Before and after deleting “Downtown ”
Examples of B + -Tree Deletion (Cont.) 12.32 Database System Concepts - 5 th  Edition. Before and After deletion of “Perryridge” from result of previous example
Examples of B + -Tree Deletion (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],12.33 Database System Concepts - 5 th  Edition.
Example of B + -tree Deletion (Cont.) ,[object Object],[object Object],12.34 Database System Concepts - 5 th  Edition. Before and after deletion of “Perryridge” from earlier example
B + -Tree File Organization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.35 Database System Concepts - 5 th  Edition.
B + -Tree File Organization (Cont.) ,[object Object],[object Object],[object Object],12.36 Database System Concepts - 5 th  Edition. Example of B + -tree File Organization
Indexing Strings ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.37 Database System Concepts - 5 th  Edition.
B-Tree Index Files ,[object Object],12.38 Database System Concepts - 5 th  Edition. ,[object Object],[object Object],[object Object]
B-Tree Index File Example B-tree (above) and B+-tree (below) on same data 12.39 Database System Concepts - 5 th  Edition.
B-Tree Index Files (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.40 Database System Concepts - 5 th  Edition.
Multiple-Key Access ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.41 Database System Concepts - 5 th  Edition.
Indices on Multiple Keys ,[object Object],[object Object],[object Object],[object Object],[object Object],12.42 Database System Concepts - 5 th  Edition.
Indices on Multiple Attributes ,[object Object],[object Object],[object Object],[object Object],[object Object],12.43 Database System Concepts - 5 th  Edition. Suppose we have an index on combined search-key ( branch_name, balance ).
Non-Unique Search Keys ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.44 Database System Concepts - 5 th  Edition.
Other Issues in Indexing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.45 Database System Concepts - 5 th  Edition.
Hashing Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use
Static Hashing ,[object Object],[object Object],[object Object],[object Object],[object Object],12.47 Database System Concepts - 5 th  Edition.
Example of Hash File Organization ,[object Object],[object Object],[object Object],[object Object],12.48 Database System Concepts - 5 th  Edition. Hash file organization of  account  file, using  branch_name  as key (See figure in next slide.)
Example of Hash File Organization  12.49 Database System Concepts - 5 th  Edition. Hash file organization of  account  file, using  branch_name  as key (see previous slide for details).
Hash Functions ,[object Object],[object Object],[object Object],[object Object],[object Object],12.50 Database System Concepts - 5 th  Edition.
Handling of Bucket Overflows ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.51 Database System Concepts - 5 th  Edition.
Handling of Bucket Overflows (Cont.) ,[object Object],[object Object],[object Object],12.52 Database System Concepts - 5 th  Edition.
Hash Indices ,[object Object],[object Object],[object Object],[object Object],[object Object],12.53 Database System Concepts - 5 th  Edition.
Example of Hash Index 12.54 Database System Concepts - 5 th  Edition.
Deficiencies of Static Hashing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.55 Database System Concepts - 5 th  Edition.
Dynamic Hashing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.56 Database System Concepts - 5 th  Edition.
General Extendable Hash Structure  12.57 Database System Concepts - 5 th  Edition. In this structure,  i 2  =  i 3  =  i , whereas  i 1  =  i  – 1 (see next slide for details)
Use of Extendable Hash Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.58 Database System Concepts - 5 th  Edition.
Insertion in Extendable Hash Structure (Cont)  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.59 Database System Concepts - 5 th  Edition. To split a bucket  j  when inserting record with search-key value  K j :
Deletion in Extendable Hash Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.60 Database System Concepts - 5 th  Edition.
Use of Extendable Hash Structure: Example  12.61 Database System Concepts - 5 th  Edition. Initial Hash structure, bucket size = 2
Example (Cont.) ,[object Object],12.62 Database System Concepts - 5 th  Edition.
Example (Cont.) 12.63 Database System Concepts - 5 th  Edition. Hash structure after insertion of Mianus record
Example (Cont.) 12.64 Database System Concepts - 5 th  Edition. Hash structure after insertion of three Perryridge records
Example (Cont.) ,[object Object],12.65 Database System Concepts - 5 th  Edition.
Extendable Hashing vs. Other Schemes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.66 Database System Concepts - 5 th  Edition.
Comparison of Ordered Indexing and Hashing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.67 Database System Concepts - 5 th  Edition.
Bitmap Indices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.68 Database System Concepts - 5 th  Edition.
Bitmap Indices (Cont.) ,[object Object],[object Object],[object Object],12.69 Database System Concepts - 5 th  Edition.
Bitmap Indices (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.70 Database System Concepts - 5 th  Edition.
Bitmap Indices (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.71 Database System Concepts - 5 th  Edition.
Efficient Implementation of Bitmap Operations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.72 Database System Concepts - 5 th  Edition.
Index Definition in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.73 Database System Concepts - 5 th  Edition.
End of Chapter Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use
Partitioned Hashing ,[object Object],[object Object],[object Object],[object Object],[object Object],12.75 Database System Concepts - 5 th  Edition.
Sequential File For  account  Records 12.76 Database System Concepts - 5 th  Edition.
Sample  account  File 12.77 Database System Concepts - 5 th  Edition.
Figure 12.2 12.78 Database System Concepts - 5 th  Edition.
Figure 12.14 12.79 Database System Concepts - 5 th  Edition.
Figure 12.25 12.80 Database System Concepts - 5 th  Edition.
Grid Files ,[object Object],[object Object],[object Object],[object Object],12.81 Database System Concepts - 5 th  Edition.
Example Grid File for  account 12.82 Database System Concepts - 5 th  Edition.
Queries on a Grid File ,[object Object],[object Object],[object Object],[object Object],[object Object],12.83 Database System Concepts - 5 th  Edition.
Grid Files (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],12.84 Database System Concepts - 5 th  Edition.

Weitere ähnliche Inhalte

Was ist angesagt?

Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for filesZainab Almugbel
 
File Structures(Part 2)
File Structures(Part 2)File Structures(Part 2)
File Structures(Part 2)SURBHI SAROHA
 
Overview of Storage and Indexing ...
Overview of Storage and Indexing                                             ...Overview of Storage and Indexing                                             ...
Overview of Storage and Indexing ...Javed Khan
 
File organization 1
File organization 1File organization 1
File organization 1Rupali Rana
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMSkoolkampus
 
Data indexing presentation
Data indexing presentationData indexing presentation
Data indexing presentationgmbmanikandan
 
File organization and indexing
File organization and indexingFile organization and indexing
File organization and indexingraveena sharma
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management Systemsweetysweety8
 
Data and File Structure Lecture Notes
Data and File Structure Lecture NotesData and File Structure Lecture Notes
Data and File Structure Lecture NotesFellowBuddy.com
 
Range Query on Big Data Based on Map Reduce
Range Query on Big Data Based on Map ReduceRange Query on Big Data Based on Map Reduce
Range Query on Big Data Based on Map ReduceIJMER
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 

Was ist angesagt? (20)

Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for files
 
File Structures(Part 2)
File Structures(Part 2)File Structures(Part 2)
File Structures(Part 2)
 
Overview of Storage and Indexing ...
Overview of Storage and Indexing                                             ...Overview of Storage and Indexing                                             ...
Overview of Storage and Indexing ...
 
File organization 1
File organization 1File organization 1
File organization 1
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
Isam
IsamIsam
Isam
 
Data indexing presentation
Data indexing presentationData indexing presentation
Data indexing presentation
 
Ardbms
ArdbmsArdbms
Ardbms
 
Indexing
IndexingIndexing
Indexing
 
Data storage and indexing
Data storage and indexingData storage and indexing
Data storage and indexing
 
Chapter13
Chapter13Chapter13
Chapter13
 
File organization and indexing
File organization and indexingFile organization and indexing
File organization and indexing
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Data and File Structure Lecture Notes
Data and File Structure Lecture NotesData and File Structure Lecture Notes
Data and File Structure Lecture Notes
 
search engine
search enginesearch engine
search engine
 
Range Query on Big Data Based on Map Reduce
Range Query on Big Data Based on Map ReduceRange Query on Big Data Based on Map Reduce
Range Query on Big Data Based on Map Reduce
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Indexing Data Structure
Indexing Data StructureIndexing Data Structure
Indexing Data Structure
 
Database management system session 6
Database management system session 6Database management system session 6
Database management system session 6
 
Data Life Cycle
Data Life CycleData Life Cycle
Data Life Cycle
 

Ähnlich wie ch12

Indexing and Hashing.ppt
Indexing and Hashing.pptIndexing and Hashing.ppt
Indexing and Hashing.pptvedantihp21
 
indexingstructureforfiles-160728120658.pdf
indexingstructureforfiles-160728120658.pdfindexingstructureforfiles-160728120658.pdf
indexingstructureforfiles-160728120658.pdfFraolUmeta
 
Cs437 lecture 14_15
Cs437 lecture 14_15Cs437 lecture 14_15
Cs437 lecture 14_15Aneeb_Khawar
 
Index Structures.pptx
Index Structures.pptxIndex Structures.pptx
Index Structures.pptxMBablu1
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12Md. Mahedi Mahfuj
 
Adbms 22 dynamic multi level index using b and b+ tree
Adbms 22 dynamic multi level index using b  and b+ treeAdbms 22 dynamic multi level index using b  and b+ tree
Adbms 22 dynamic multi level index using b and b+ treeVaibhav Khanna
 
Indexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Indexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmmIndexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Indexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmmRAtna29
 
Furnish an Index Using the Works of Tree Structures
Furnish an Index Using the Works of Tree StructuresFurnish an Index Using the Works of Tree Structures
Furnish an Index Using the Works of Tree Structuresijceronline
 
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)Beat Signer
 
Unit 4 data storage and querying
Unit 4   data storage and queryingUnit 4   data storage and querying
Unit 4 data storage and queryingRavindran Kannan
 

Ähnlich wie ch12 (20)

Indexing and Hashing.ppt
Indexing and Hashing.pptIndexing and Hashing.ppt
Indexing and Hashing.ppt
 
indexingstructureforfiles-160728120658.pdf
indexingstructureforfiles-160728120658.pdfindexingstructureforfiles-160728120658.pdf
indexingstructureforfiles-160728120658.pdf
 
Unit 08 dbms
Unit 08 dbmsUnit 08 dbms
Unit 08 dbms
 
Unit08 dbms
Unit08 dbmsUnit08 dbms
Unit08 dbms
 
Cs437 lecture 14_15
Cs437 lecture 14_15Cs437 lecture 14_15
Cs437 lecture 14_15
 
11885558.ppt
11885558.ppt11885558.ppt
11885558.ppt
 
Ch12
Ch12Ch12
Ch12
 
Index Structures.pptx
Index Structures.pptxIndex Structures.pptx
Index Structures.pptx
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12
 
5. indexing
5. indexing5. indexing
5. indexing
 
Indexing and hashing.ppt
Indexing and hashing.pptIndexing and hashing.ppt
Indexing and hashing.ppt
 
Adbms 22 dynamic multi level index using b and b+ tree
Adbms 22 dynamic multi level index using b  and b+ treeAdbms 22 dynamic multi level index using b  and b+ tree
Adbms 22 dynamic multi level index using b and b+ tree
 
A41001011
A41001011A41001011
A41001011
 
Indexing.ppt
Indexing.pptIndexing.ppt
Indexing.ppt
 
Indexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Indexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmmIndexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Indexing.ppt mmmmmmmmmmmmmmmmmmmmmmmmmmmmm
 
Storage struct
Storage structStorage struct
Storage struct
 
Furnish an Index Using the Works of Tree Structures
Furnish an Index Using the Works of Tree StructuresFurnish an Index Using the Works of Tree Structures
Furnish an Index Using the Works of Tree Structures
 
Final exam in advance dbms
Final exam in advance dbmsFinal exam in advance dbms
Final exam in advance dbms
 
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
Access Methods - Lecture 9 - Introduction to Databases (1007156ANR)
 
Unit 4 data storage and querying
Unit 4   data storage and queryingUnit 4   data storage and querying
Unit 4 data storage and querying
 

Mehr von KITE www.kitecolleges.com (20)

DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENTDISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
 
BrainFingerprintingpresentation
BrainFingerprintingpresentationBrainFingerprintingpresentation
BrainFingerprintingpresentation
 
ch6
ch6ch6
ch6
 
week-11x
week-11xweek-11x
week-11x
 
PPT (2)
PPT (2)PPT (2)
PPT (2)
 
week-10x
week-10xweek-10x
week-10x
 
week-1x
week-1xweek-1x
week-1x
 
week-18x
week-18xweek-18x
week-18x
 
ch14
ch14ch14
ch14
 
ch16
ch16ch16
ch16
 
holographic versatile disc
holographic versatile discholographic versatile disc
holographic versatile disc
 
week-22x
week-22xweek-22x
week-22x
 
week-16x
week-16xweek-16x
week-16x
 
week-5x
week-5xweek-5x
week-5x
 
week-6x
week-6xweek-6x
week-6x
 
week-3x
week-3xweek-3x
week-3x
 
ch8
ch8ch8
ch8
 
Intro Expert Systems test-me.co.uk
Intro Expert Systems test-me.co.ukIntro Expert Systems test-me.co.uk
Intro Expert Systems test-me.co.uk
 
ch17
ch17ch17
ch17
 
ch4
ch4ch4
ch4
 

Kürzlich hochgeladen

3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptxmary850239
 
General views of Histopathology and step
General views of Histopathology and stepGeneral views of Histopathology and step
General views of Histopathology and stepobaje godwin sunday
 
How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17Celine George
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfMohonDas
 
How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17Celine George
 
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfMaximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfTechSoup
 
2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx
2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx
2024.03.23 What do successful readers do - Sandy Millin for PARK.pptxSandy Millin
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17Celine George
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfYu Kanazawa / Osaka University
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational PhilosophyShuvankar Madhu
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxSaurabhParmar42
 
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxAUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxiammrhaywood
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...Nguyen Thanh Tu Collection
 
How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17Celine George
 
The Singapore Teaching Practice document
The Singapore Teaching Practice documentThe Singapore Teaching Practice document
The Singapore Teaching Practice documentXsasf Sfdfasd
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxAditiChauhan701637
 
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptxClinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptxraviapr7
 
Practical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxPractical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxKatherine Villaluna
 
5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...CaraSkikne1
 

Kürzlich hochgeladen (20)

3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptx
 
General views of Histopathology and step
General views of Histopathology and stepGeneral views of Histopathology and step
General views of Histopathology and step
 
How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdf
 
How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17How to Use api.constrains ( ) in Odoo 17
How to Use api.constrains ( ) in Odoo 17
 
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdfMaximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
Maximizing Impact_ Nonprofit Website Planning, Budgeting, and Design.pdf
 
2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx
2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx
2024.03.23 What do successful readers do - Sandy Millin for PARK.pptx
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17
 
Prelims of Kant get Marx 2.0: a general politics quiz
Prelims of Kant get Marx 2.0: a general politics quizPrelims of Kant get Marx 2.0: a general politics quiz
Prelims of Kant get Marx 2.0: a general politics quiz
 
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdfP4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
P4C x ELT = P4ELT: Its Theoretical Background (Kanazawa, 2024 March).pdf
 
Philosophy of Education and Educational Philosophy
Philosophy of Education  and Educational PhilosophyPhilosophy of Education  and Educational Philosophy
Philosophy of Education and Educational Philosophy
 
CAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptxCAULIFLOWER BREEDING 1 Parmar pptx
CAULIFLOWER BREEDING 1 Parmar pptx
 
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptxAUDIENCE THEORY -- FANDOM -- JENKINS.pptx
AUDIENCE THEORY -- FANDOM -- JENKINS.pptx
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
 
How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17How to Add a New Field in Existing Kanban View in Odoo 17
How to Add a New Field in Existing Kanban View in Odoo 17
 
The Singapore Teaching Practice document
The Singapore Teaching Practice documentThe Singapore Teaching Practice document
The Singapore Teaching Practice document
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptx
 
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptxClinical Pharmacy  Introduction to Clinical Pharmacy, Concept of clinical pptx
Clinical Pharmacy Introduction to Clinical Pharmacy, Concept of clinical pptx
 
Practical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptxPractical Research 1 Lesson 9 Scope and delimitation.pptx
Practical Research 1 Lesson 9 Scope and delimitation.pptx
 
5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...
 

ch12

  • 1. Chapter 12: Indexing and Hashing Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use Rev. Sep 17, 2008
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Multilevel Index (Cont.) 12.10 Database System Concepts - 5 th Edition.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. Example of a B + -tree 12.20 Database System Concepts - 5 th Edition. B + -tree for account file ( n = 3)
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27. Updates on B + -Trees: Insertion (Cont.) 12.27 Database System Concepts - 5 th Edition. B + -Tree before and after insertion of “Clearview”
  • 28.
  • 29.
  • 30.
  • 31.
  • 32. Examples of B + -Tree Deletion (Cont.) 12.32 Database System Concepts - 5 th Edition. Before and After deletion of “Perryridge” from result of previous example
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39. B-Tree Index File Example B-tree (above) and B+-tree (below) on same data 12.39 Database System Concepts - 5 th Edition.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46. Hashing Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use
  • 47.
  • 48.
  • 49. Example of Hash File Organization 12.49 Database System Concepts - 5 th Edition. Hash file organization of account file, using branch_name as key (see previous slide for details).
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. Example of Hash Index 12.54 Database System Concepts - 5 th Edition.
  • 55.
  • 56.
  • 57. General Extendable Hash Structure 12.57 Database System Concepts - 5 th Edition. In this structure, i 2 = i 3 = i , whereas i 1 = i – 1 (see next slide for details)
  • 58.
  • 59.
  • 60.
  • 61. Use of Extendable Hash Structure: Example 12.61 Database System Concepts - 5 th Edition. Initial Hash structure, bucket size = 2
  • 62.
  • 63. Example (Cont.) 12.63 Database System Concepts - 5 th Edition. Hash structure after insertion of Mianus record
  • 64. Example (Cont.) 12.64 Database System Concepts - 5 th Edition. Hash structure after insertion of three Perryridge records
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74. End of Chapter Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use
  • 75.
  • 76. Sequential File For account Records 12.76 Database System Concepts - 5 th Edition.
  • 77. Sample account File 12.77 Database System Concepts - 5 th Edition.
  • 78. Figure 12.2 12.78 Database System Concepts - 5 th Edition.
  • 79. Figure 12.14 12.79 Database System Concepts - 5 th Edition.
  • 80. Figure 12.25 12.80 Database System Concepts - 5 th Edition.
  • 81.
  • 82. Example Grid File for account 12.82 Database System Concepts - 5 th Edition.
  • 83.
  • 84.