Ian Goldberg
|
2d28fb2243
Fix some indentation
|
1 year ago |
Ian Goldberg
|
240beeb078
Touch up a comment
|
1 year ago |
Ian Goldberg
|
baddbdd512
Only run verify_heap_property on each extract if run_sanity is 1
|
1 year ago |
avadapal
|
60b7d27300
few more additional comments
|
1 year ago |
avadapal
|
63f78d1c24
improving the comment on optimized insert
|
1 year ago |
avadapal
|
d90d1162f2
removing the unnecessary old_P variable from optimized insert
|
1 year ago |
avadapal
|
00ff7d1f7b
using the more efficient reconstruct() function in the debug code
|
1 year ago |
avadapal
|
4baf948729
changed the heap diagram to display the need for MAXINT
|
1 year ago |
avadapal
|
9607a3b5c7
removed an unnecessary if (tio.player() !=2) in insert_optimized
|
1 year ago |
avadapal
|
c0e2eee1b7
made, restore_heap_property, restore_heap_property_optimized, restore_heap_property_at_explicit_index private
|
1 year ago |
Ian Goldberg
|
484b357df5
For testing, initialize the heap in a better way
|
1 year ago |
Ian Goldberg
|
7ed6c13978
u[0] was never getting initialized in insert_optimized
|
1 year ago |
Ian Goldberg
|
f1e9e115ac
When HEAP_VERBOSE is set, each extract was being run twice
|
1 year ago |
Ian Goldberg
|
cd2b06a840
Fix bug in optimized insert
|
1 year ago |
Ian Goldberg
|
76aa1b8f7f
Make verify_parent_children_heaps static
|
1 year ago |
Ian Goldberg
|
8a2dddba94
Off-by-one error in MinHeap::verify_heap_property
|
1 year ago |
Ian Goldberg
|
f594127266
Change insert to return void
|
1 year ago |
Ian Goldberg
|
4e3af6b482
Touch up one comment
|
1 year ago |
Ian Goldberg
|
2eb068546d
Touch up the comments at the top of heap.cpp
|
1 year ago |
Ian Goldberg
|
ef877e3f74
VALUE_BITS is the default last arg to most mpc_* functions
|
1 year ago |
Ian Goldberg
|
2ce7abf1d2
Don't pass argc around unnecessarily
|
1 year ago |
Ian Goldberg
|
e15fbf8991
Remove set_num_items
|
1 year ago |
Ian Goldberg
|
de9b4f24fd
Touch up the bsearch test
|
1 year ago |
avadapal
|
bcc8bb75cb
changing new [] to vectors
|
1 year ago |
avadapal
|
803383c3b9
minor change in the image of insert_optimized
|
1 year ago |
avadapal
|
f4da769dc3
add and modifying comments describing the functions in heap.hpp and heap.cpp
|
1 year ago |
avadapal
|
6a880c1d58
fixed a few indentation issues
|
1 year ago |
avadapal
|
e7beed0770
other misc changes
|
1 year ago |
avadapal
|
dc09830d72
moving verify heap in correct ifdefs
|
1 year ago |
avadapal
|
efddb17351
correcting a comment about print_heap and verify_parent_children_heaps
|
1 year ago |