binomial - 22 Binomial Heaps Big Picture(Figure 19.1 Pg 456...

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

View Full Document Right Arrow Icon
22 Binomial Heaps Big Picture (Figure 19.1, Pg 456) New Operations: UNION( , ) creates and returns a new heap that contains all the nodes of heaps and (which are destroyed by this operation). DECREASE-KEY( ) assigns to a node in heap a new key value , which is its current value. DELETE( ) 22.1 Binomial Trees An ordered tree that is defined recursively (See Fig 19.2, Pg 458). 1. consists of a single node. 2. consists of two trees that are linked by making the root of one the leftmost child of the root of the other. 84
Image of page 1

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

View Full Document Right Arrow Icon
Properties of 1. nodes. 2. height is 3. There are exactly nodes at depth for . 4. the root has degree . 5. Corollary: The maximum degree of any node in an -node binomial tree is . I’m skipping proofs because they are simple, but you should try them yourselves. Definition of a binomial heap A binomial heap is a set of binomial trees such that 1. each binomial tree has the min property. 2. for any integer , there is at most one binomial tree in whose root has degree .
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