1 / 14

+

אלגוריתם הכנסה ברשימת דילוגים. Insert(50). 90. 44. 90. +. 13. 30. 44. 50. 57. 66. 90. 1. Delete(57). Insert(56). 90. 44. 90. +. 13. 30. 44. 50. 56. 66. 90. 0. 90. 44. 56. 90. +. 13. 30. 44. 50. 56. 66. 90. 0. 1. Deterministic Insert and Delete. 90. 44.

cai
Download Presentation

+

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. אלגוריתם הכנסה ברשימת דילוגים Insert(50) 90 44 90 + 13 30 44 50 57 66 90 1 Delete(57)

  2. Insert(56) 90 44 90 + 13 30 44 50 56 66 90 0

  3. 90 44 56 90 + 13 30 44 50 56 66 90 0 1

  4. Deterministic Insert and Delete 90 44 56 90 + 13 30 44 50 56 66 90 2 1 1 Insert(77)

  5. 90 T 44 56 90 + q 13 30 44 50 56 66 77 90 2 q = T->down->next->next T->next->down is q->next or q Insert(80)

  6. 90 T 44 56 90 + q 13 30 44 50 56 66 77 80 90 q = T->down->next->next T->next->down is q->next or q

  7. T 90 q 44 56 77 90 + 13 30 44 50 56 66 77 80 90 q = T->down->next->next T->next->down is q->next or q

  8. Delete(77) 56 90 44 56 77 90 + 13 30 44 50 56 66 77 80 90

  9. Delete(77) 56 90 44 56 77 90 + 13 30 44 50 56 66 77 80 90

  10. 56 90 44 56 77 90 + 13 30 44 50 56 66 80 90

  11. Delete(56) 56 90 44 56 90 + 13 30 44 50 56 66 80 90

  12. Delete(56) 56 90 44 56 90 + 13 30 44 50 56 66 80 90

  13. 56 90 44 56 90 + 13 30 44 50 66 80 90

  14. 66 90 44 66 90 - 13 30 44 50 66 80 90

More Related