{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

19 - 19 Binomial Heaps Mergeable Heap a data structure...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
---------------------------- 19 ---------------------------- Binomial Heaps Mergeable Heap: a data structure supporting the following 5 operations. Make-Heap(): return an empty heap Insert( H , x): add x into H Minimum( H ): return the minimum Extract-Min( H ): return and remove Union( H 1 , H 2 ): merge two heaps In addition, the data structures in Chapters 19 and 20 also support the following 2 operations. Decrease-Key( H , x , k ): assign x (within H ) a smaller key value k Delete( H , x ): 19-2 * Binary heap is good if we don't need Union . (A Union operation takes O ( n ) time.) * The running times for Fibonacci heap are amorized time bounds, not worst-case per operation time bounds. * Searchs in the above heaps are inefficient. Thus, Decrease-Key and Delete perform under the assumption that a pointer to x is given. 19.1 Binomial trees and binomial heaps Binomial tree : A binomial tree B k is an ordered tree defined recursively as follows. (Let root of one B k -1 be the leftmost child of root of the other.)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
19-3 Lemma 19.1 (Properties of B k ) 1.There are 2 k nodes.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern