Google Answers Logo
View Question
 
Q: Heap proof ( Answered,   0 Comments )
Question  
Subject: Heap proof
Category: Computers
Asked by: cminardua-ga
List Price: $10.00
Posted: 10 Feb 2004 20:39 PST
Expires: 11 Mar 2004 20:39 PST
Question ID: 305617
I'm looking for a mathematical proof that shows there are at most
n/(2^(h+1)) vertices of height h in an n-element heap.
Answer  
Subject: Re: Heap proof
Answered By: maniac-ga on 11 Feb 2004 05:09 PST
 
Hello Cminardua,

I found two references that describe a proof for this problem:
  http://web.njit.edu/~calvin/class/dl435/sol3.pdf
  http://web.njit.edu/~kks2/Courses/CIS%20435/CIS435Files/week4.pdf
Both appear to be the results of homework submitted for a course at
the New Jersey Institute of Technology.

The proof is pretty straight forward, solving for height zero (the
bottom of the heap) and then using induction for all heights greater
than zero. The proof is also divided into two portions, based on an
odd or even number of nodes at the lowest level of the tree.

I found this solution by searching using phrases such as
  proof heap height
  proof heap height 6.3-3
and similar phrases.

If some part of the proof is unclear (another site indicates the proof
is "hard"), please use a clarification request. I would be glad to
walk through an example or two as needed.

  --Maniac
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy