c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (1)
Comparison complexity of priority-queue operations Jyrki Katajainen - - PowerPoint PPT Presentation
Comparison complexity of priority-queue operations Jyrki Katajainen (University of Copenhagen) Joint work with Amr Elmasry (Max-Planck-Institut f ur Informatik) and Claus Jensen (University of Copenhagen) 16 January 2009 Updated 31 January
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (1)
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (2)
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (3)
! !
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (4)
!
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (5)
! worst-case running time and
! for insert, extract,
! for delete can be achieved or not.
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (6)
Year Inventor
1964 Williams lg n + O ! O ! 2 lg n + O ! O ! lg n lg m 1978 Vuillemin lg n + O ! O ! lg n time 2 lg n + O ! lg n + O ! 1988 Driscoll & al. O ! lg n + O ! 3 lg n + O ! lg m + O ! 1995 Brodal O ! O ! lg n time 6 lg n + O ! O ! 1996 Brodal & Okasaki O ! O ! lg n time 4 lg n + O ! O ! 2004 Elmasry O ! – 1.44 lg n + O ! lg lg n – Jensen & me O ! O ! lg n + O ! lg lg n – Elmasry O ! O ! lg n + O ! – Now New results O ! O ! lg n + O ! 2 lg n + 2 lg m + O ! O ! lg n + O ! 3 lg n + O ! O !
! ≤ 10; n ≥ m.
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (7)
1 x y 3
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (8)
⌊lg n⌋
⌊lg n⌋
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (9)
! lg n to O ! .
! lg n to O ! .
1
3
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (10)
!
! .
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (11)
! . The first
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (12)
! t time incrementally during the forthcoming
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (13)
2 lg n + O
! elements
! elements
! prefix-minimum pointers
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (14)
7 8 lg n + O ! , construct Bk, where 1 4 lg n + O ! ≤ 2k < 1 2 lg n + O ! , and
8 lg n + O ! operations!]
1 8 lg n + O ! , take the smallest tree
4 lg n + O !
8 lg n + O ! operations!]
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (15)
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (16)
! ≤ 10!
2 lg n+O ! requires 1 2 lg n+
! element comparisons.
! element comparisons.
8 lg n + O !
! > 15.
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (17)
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (18)
!
!
!
!
!
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (19)
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (20)
c
Performance Engineering Laboratory
Visit at the Max-Planck-Institut f¨ ur Informatik (21)
! worst-case time?
! worst-case time.