On Apr 3, 10:30 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | > | >> My book says that in a heap, a value at position i will be smaller > | >> than the values at positions 2*i and 2*i + 1. > > I am sure your book either uses 1-based arrays or a 0-based arrays with the > first not used. The need to keep these alternatives in mind is an > unfortunate fact of programming life. >
My book uses lists. -- http://mail.python.org/mailman/listinfo/python-list