Browse Source

minor change in the image of insert_optimized

avadapal 1 year ago
parent
commit
803383c3b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      heap.cpp

+ 2 - 2
heap.cpp

@@ -35,9 +35,9 @@ All the unused array indicies have MAX_INT stored in them
   Consider the following insertion path with:  x0 < x1 < x2 < NewElement < x3 < x4
 
         x0                      x0                                 x0           
-         \                        \                                 \ 
+        / \                    /   \                             /  \ 
           x1                       x1                                x1
-           \                        \                                 \
+            \                        \                                 \
             x2                       x2                                x2
              \                        \                                 \         
               x3                      ( )                               NewElement