introduce bug in binary heap
This commit is contained in:
parent
7fd0d5799d
commit
3c28d07cb6
@ -101,7 +101,7 @@ public final class BinaryHeapOpenSet implements IOpenSet {
|
|||||||
array[size] = null;
|
array[size] = null;
|
||||||
size--;
|
size--;
|
||||||
result.heapPosition = -1;
|
result.heapPosition = -1;
|
||||||
if (size < 2) {
|
if (size < 3) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
int index = 1;
|
int index = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user