Pārlūkot izejas kodu

other misc changes

avadapal 2 gadi atpakaļ
vecāks
revīzija
e7beed0770
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      heap.cpp

+ 4 - 0
heap.cpp

@@ -273,6 +273,10 @@ After restoring heap property:        if(y < x AND z < y)       if(y < x AND z >
                                                 z                         y                        z                              x    
                                                /  \                      / \                      / \                            / \ 
                                               y    x                    z   x                    y    x                         y   z                                             
+
+
+The function is relying on the "unused" entries in the heap being MAXINT
+
 The protocol works as follows:
 
 Step 1: Compare the left and right children.