Fix calculation of maximal waksman depth

This commit is contained in:
Vincent Ehrmanntraut
2024-12-11 15:42:04 +01:00
parent 3126cfb6c5
commit 3d3bfcf6a6
2 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ def test_case(permutation_sizes, timer_base: int | None = None):
n_matched.update(n_matched + (revealed[i] == i))
@if_(n_matched == len(arr))
def didnt_permute():
print_ln("Permutation likely didn't work.")
print_ln("Permutation potentially didn't work (permutation might have been identity by chance).")
crash()
if timer_base is not None: