1 / 7

Extendible Hashing - Class Example

Extendible Hashing - Class Example. splitting bucket. splitting bucket. rec 1. d 1 =0. 0. rec 2. 1. record 3 = overflow!!. record 5 = overflow!!. d1 = 1. d1 = 1. d 1 = local depth d = global depth. rec 1. rec 4. d = 0. d = 1. rec 2. rec 3. NEXT. rec 1. rec 4.

Download Presentation

Extendible Hashing - Class Example

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. Extendible Hashing - Class Example

  2. splitting bucket splitting bucket rec 1 d1=0 0 rec 2 1 record 3 = overflow!! record 5 = overflow!! d1 = 1 d1 = 1 d1 = local depth d = global depth rec 1 rec 4 d = 0 d = 1 rec 2 rec 3 NEXT

  3. rec 1 rec 4 splitting bucket 00 01 10 record 7 = overflow!! 11 d = 2 d1 = 2 d1 = 2 d1 = 1 rec 2 rec 3 rec 5 rec 6 NEXT

  4. rec 1 rec 4 000 001 010 011 splitting bucket 100 101 110 rec 5 111 record 8 = overflow!! rec 6 d = 3 d1 = 1 d1 = 3 d1 = 2 d1 = 3 rec 2 rec 7 rec 3 NEXT

  5. 000 001 splitting bucket 010 011 100 rec 2 d1 = 3 101 rec 7 record 10 = overflow!! 110 rec 3 d1 = 3 111 rec 9 d = 3 rec 5 d1 = 2 d1 = 3 d1 = 3 d1 = 2 rec 6 NEXT rec 1 rec 4 rec 8

  6. rec 1 rec 4 rec 11 rec 8 000 rec 12 001 splitting bucket 010 011 100 rec 2 d1 = 3 101 rec 7 record 13 = overflow!! 110 rec 3 d1 = 3 111 rec 9 d = 3 d1 = 3 d1 = 3 d1 = 3 d1 = 2 d1 = 3 NEXT rec 5 rec 6 rec 10

  7. rec 1 0000 rec 4 0001 rec 11 0010 0011 rec 8 0100 rec 12 0101 rec 2 0110 rec 7 0111 1000 rec 3 1001 rec 14 1010 rec 5 1011 rec 15 d1 = 3 d1 = 4 d1 = 3 d1 = 3 1100 d1 = 4 d1 = 3 d1 = 3 d1 = 2 1101 1110 1111 d = 4 rec 6 rec 10 rec 13

More Related