sortvis
sortvis copied to clipboard
AssertionError in Bitonic Sort
Running
sortvis weave -x 850 -t -n 20 -c gradient
as given on your website, I get this:
110 comparisons
67 comparisons
154 comparisons
Traceback (most recent call last):
File "./sortvis", line 305, in <module>
main()
File "./sortvis", line 282, in main
algos.algorithms[i](track)
File "/.../sortvis/libsortvis/algos/bitonicsort.py", line 30, in bitonicsort
assert math.modf(math.log(len(lst), 2))[0] == 0
AssertionError