kun qian
2011-10-10 06:43:42 UTC
For the HeapInsert Algorithms shown on the slides I believe in the
while loop there should be an assertion that j >0. Since if i is 1
then j will be 0, which gives undefined behavior when exchanging.
Please correct me if I am wrong.
Thanks.
while loop there should be an assertion that j >0. Since if i is 1
then j will be 0, which gives undefined behavior when exchanging.
Please correct me if I am wrong.
Thanks.