diff options
| author | Andreas Grois <andi@grois.info> | 2024-08-02 20:15:39 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2024-08-02 20:15:39 +0200 |
| commit | ede4ba0d37480186f333ad7d7bb2e3d48a7e7d52 (patch) | |
| tree | 7a550c27457a0acc4e09637064aa3cf1ed7810dc /TODO | |
| parent | db153666201f32f8ad5aa67f69abd6efccc525b6 (diff) | |
Proves about heapRemoveLast.
Diffstat (limited to 'TODO')
| -rw-r--r-- | TODO | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,10 +3,10 @@ This is a rough outline of upcoming tasks: [ ] Prove that an index exists such that after CompleteTree.heapPush the pushed element can be obtained by CompleteTree.get [ ] Prove that CompleteTree.heapUpdateAt returns the element at the given index -[ ] Prove that CompleteTree.heapRemoveLastWithIndex and CompleteTree.heapRemoveLast yield the same tree -[ ] Prove that CompleteTree.heapRemoveLastWithIndex and CompleteTree.heapRemoveLast yield the same element +[x] Prove that CompleteTree.heapRemoveLastWithIndex and CompleteTree.heapRemoveLast yield the same tree +[x] Prove that CompleteTree.heapRemoveLastWithIndex and CompleteTree.heapRemoveLast yield the same element [x] Prove that CompleteTree.heapRemoveLastWithIndex only removes one element and leaves the rest unchanged - - This automatically serves as a proof for CompleteTree.heapRemoveLast, once it is shown that they + [x] This automatically serves as a proof for CompleteTree.heapRemoveLast, once it is shown that they yield the same tree - Done by showing that each element of the input tree is in the output tree, except for the one at the returned index. |
