Datasets:

question
stringlengths
65
3.42k
answer
stringlengths
3
5.8k
algo_name
stringclasses
30 values
minimum: key: [0.964 0.658 0.198 0.344 0.16 0.807 0.642 0.622 0.812 0.562], initial_trace: 0 trace | min:
1, 2, 2, 4, 4, 4, 4, 4 | 4
minimum
find_maximum_subarray_kadane: key: [-0.451 -0.805 0.956 0.133 -0.826 0.785 0.116 -0.304 0.056 0.884 -0.813 0.608], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (2, 2), (2, 3), (2, 3), (2, 3), (2, 6), (2, 6), (2, 6), (2, 9), (2, 9) | (2, 9)
find_maximum_subarray_kadane
task_scheduling: d: [2 3 1 1], w: [0.978 0.972 0.209 0.566], initial_trace: [0 0 0 0] trace | selected:
[1 0 0 0], [1 1 0 0], [1 1 0 0] | [1 1 0 0]
task_scheduling
activity_selector: s: [0.57 0.23 0.221 0.663 0.391 0.414 0.93 0.684 0.273 0.081 0.049 0.448], f: [0.736 0.41 0.445 0.96 0.592 0.895 0.987 0.927 0.923 0.851 0.482 0.621], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 1 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 1 0 0 0 1], [0 1 0 0 0 0 0 1 0 0 0 1] | [0 1 0 0 0 0 1 1 0 0 0 1]
activity_selector
dijkstra: s: 14, A: [[0.598 0 0.299 0 0 0.819 0 0 0 0 0 0 0 0 0.637 0.664 0 0 0.387 0 0 0 0], [0 0.377 0 0 0 0 0 0 0 0 0.667 0 0.124 0 0 0.52 0 0 0 0.665 0 0.504 0], [0.299 0 0.653 0 0 0.187 0 0.091 0 0 0 0 0 0 0 0.3 0 0 0.748 0 0.641 0.261 0], [0 0 0 0 0.523 0 0 0 0 0 0.597 0 0 0 0 0 0 0 0 0 0 0.482 0], [0 0 0 0.523 0 0 0.643 0.39 0 0 0.379 0 0 0 0 0 0.408 0 0 0 0 0.204 0.653], [0.819 0 0.187 0 0 0.571 0 0 0.437 0 0 0 0 0 0.65 0 0 0 0 0 0 0.425 0.184], [0 0 0 0 0.643 0 0.594 0 0 0 0 0.45 0 0.033 0 0 0 0 0 0 0.401 0.223 0], [0 0 0.091 0 0.39 0 0 0 0 0 0 0 0 0.467 0 0.583 0 0 0.509 0.639 0 0 0.24], [0 0 0 0 0 0.437 0 0 0.055 0.326 0 0 0.532 0.506 0 0 0 0 0.463 0.072 0 0.713 0], [0 0 0 0 0 0 0 0 0.326 0 0 0 0 0 0 0 0 0 0 0 0 0.515 0], [0 0.667 0 0.597 0.379 0 0 0 0 0 0.829 0 0 0 0 0 0 0 0 0 0.886 0 0], [0 0 0 0 0 0 0.45 0 0 0 0 0 0 0.606 0.505 0 0 0.096 0 0.73 0 0 0], [0 0.124 0 0 0 0 0 0 0.532 0 0 0 0.489 0.218 0 0 0.646 0 0.562 0 0 0 0], [0 0 0 0 0 0 0.033 0.467 0.506 0 0 0.606 0.218 0 0 0 0 0.06 0 0 0 0.636 0], [0.637 0 0 0 0 0.65 0 0 0 0 0 0.505 0 0 0 0 0 0 0 0 0 0.821 0.686], [0.664 0.52 0.3 0 0 0 0 0.583 0 0 0 0 0 0 0 0.376 0 0 0.592 0 0 0 0], [0 0 0 0 0.408 0 0 0 0 0 0 0 0.646 0 0 0 0 0 0 0 0 0 0.236], [0 0 0 0 0 0 0 0 0 0 0 0.096 0 0.06 0 0 0 0 0 0 0 0 0], [0.387 0 0.748 0 0 0 0 0.509 0.463 0 0 0 0.562 0 0 0.592 0 0 0.401 0.269 0 0 0], [0 0.665 0 0 0 0 0 0.639 0.072 0 0 0.73 0 0 0 0 0 0 0.269 0.656 0 0 0], [0 0 0.641 0 0 0 0.401 0 0 0 0.886 0 0 0 0 0 0 0 0 0 0.681 0 0], [0 0.504 0.261 0.482 0.204 0.425 0.223 0 0.713 0.515 0 0 0 0.636 0.821 0 0 0 0 0 0 0.649 0], [0 0 0 0 0.653 0.184 0 0.24 0 0 0 0 0 0 0.686 0 0.236 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22] trace | pi:
[14 1 2 3 4 14 6 7 8 9 10 14 12 13 14 15 16 17 18 19 20 14 14], [14 1 2 3 4 14 11 7 8 9 10 14 12 11 14 15 16 11 18 11 20 14 14], [14 1 2 3 4 14 11 7 8 9 10 14 12 17 14 15 16 11 18 11 20 14 14], [14 1 0 3 4 14 11 7 8 9 10 14 12 17 14 0 16 11 0 11 20 14 14], [14 1 5 3 4 14 11 7 5 9 10 14 12 17 14 0 16 11 0 11 20 14 14], [14 1 5 3 4 14 13 13 5 9 10 14 13 17 14 0 16 11 0 11 20 14 14], [14 1 5 3 22 14 13 22 5 9 10 14 13 17 14 0 22 11 0 11 20 14 14], [14 1 5 3 6 14 13 22 5 9 10 14 13 17 14 0 22 11 0 11 6 14 14], [14 21 5 21 21 14 13 22 5 21 10 14 13 17 14 0 22 11 0 11 6 14 14], [14 21 5 21 21 14 13 22 5 21 10 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 10 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 10 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 10 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 1 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 1 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 11 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14], [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14] | [14 12 5 21 21 14 13 22 5 21 4 14 13 17 14 2 22 11 0 8 6 14 14]
dijkstra
topological_sort: A: [[0 0 0 1 0 0 1 0 0 1 0 1 1 1 1 0 0 0 1], [0 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 1], [0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0], [0 0 1 0 0 0 0 1 0 0 1 0 0 1 1 0 0 1 0], [0 1 0 0 0 0 1 1 1 0 1 0 0 1 0 0 0 0 0], [0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 1 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 1 0], [0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 1 0 0 0 0 1 0 1 1 0 1 0 1 0 1 0 1], [0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0], [0 0 1 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 14, [0 1 2 3 4 5 6 7 8 9 10 11 12 14 14 15 16 17 18], 13, [0 1 2 3 4 5 6 13 8 9 10 11 12 14 14 15 16 17 18], 7, [0 1 2 3 4 5 6 13 8 9 10 11 12 14 14 15 16 17 18], 7, [0 1 2 3 4 5 6 13 8 9 10 11 12 14 14 15 16 17 18], 7, [0 1 2 3 4 5 6 13 8 9 10 11 12 14 14 15 16 17 18], 7, [0 1 2 3 4 5 6 13 8 9 10 7 12 14 14 15 16 17 18], 11, [0 1 2 3 4 5 6 13 8 9 11 7 12 14 14 15 16 17 18], 10, [0 1 2 3 4 5 6 13 8 9 11 7 12 14 14 15 16 17 18], 10, [0 1 2 3 4 5 6 13 8 9 11 7 10 14 14 15 16 17 18], 12, [0 1 2 3 4 5 6 13 8 9 11 7 10 14 14 15 16 17 18], 12, [0 1 2 3 4 5 6 13 8 9 11 7 10 14 14 15 16 12 18], 17, [0 1 2 3 4 5 6 13 8 17 11 7 10 14 14 15 16 12 18], 9, [0 1 2 3 4 5 6 13 8 17 11 7 10 14 14 15 16 12 18], 9, [0 1 2 3 4 5 6 13 8 17 11 7 10 14 14 15 9 12 18], 16, [0 1 2 3 4 5 16 13 8 17 11 7 10 14 14 15 9 12 18], 6, [0 1 6 3 4 5 16 13 8 17 11 7 10 14 14 15 9 12 18], 2, [0 1 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 18], 3, [0 1 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 18], 3, [0 1 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 18, [18 1 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 0, [18 1 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 0, [18 1 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 0, [18 0 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 1, [18 0 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 1, [18 0 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 1, [18 0 6 2 4 5 16 13 8 17 11 7 10 14 14 15 9 12 3], 1, [18 0 6 2 4 5 16 13 1 17 11 7 10 14 14 15 9 12 3], 8, [18 0 6 2 8 5 16 13 1 17 11 7 10 14 14 15 9 12 3], 4, [18 0 6 2 8 5 16 13 1 17 11 7 10 14 14 15 9 12 3], 4, [18 0 6 2 8 5 16 13 1 17 11 7 10 14 14 15 9 12 3], 4, [18 0 6 2 8 5 16 13 1 17 11 7 10 14 14 15 9 12 3], 4, [18 0 6 2 8 5 16 13 1 17 11 7 10 14 14 4 9 12 3], 15 | [18 0 6 2 8 15 16 13 1 17 11 7 10 14 14 4 9 12 3], 5
topological_sort
heapsort: key: [0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097], initial_trace: [0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097] trace | pred:
[0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097], [0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097], [0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097], [0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097], [0.144 0.129 0.283 0.854 0.079 0.32 0.076 0.527 0.832 0.097], [0.144 0.129 0.283 0.854 0.097 0.32 0.076 0.527 0.832 0.079], [0.144 0.129 0.283 0.854 0.097 0.32 0.076 0.527 0.832 0.079], [0.144 0.129 0.283 0.854 0.097 0.32 0.076 0.527 0.832 0.079], [0.144 0.129 0.32 0.854 0.097 0.283 0.076 0.527 0.832 0.079], [0.144 0.129 0.32 0.854 0.097 0.283 0.076 0.527 0.832 0.079], [0.144 0.854 0.32 0.129 0.097 0.283 0.076 0.527 0.832 0.079], [0.144 0.854 0.32 0.832 0.097 0.283 0.076 0.527 0.129 0.079], [0.144 0.854 0.32 0.832 0.097 0.283 0.076 0.527 0.129 0.079], [0.854 0.144 0.32 0.832 0.097 0.283 0.076 0.527 0.129 0.079], [0.854 0.832 0.32 0.144 0.097 0.283 0.076 0.527 0.129 0.079], [0.854 0.832 0.32 0.527 0.097 0.283 0.076 0.144 0.129 0.079], [0.854 0.832 0.32 0.527 0.097 0.283 0.076 0.144 0.129 0.079], [0.079 0.832 0.32 0.527 0.097 0.283 0.076 0.144 0.129 0.854], [0.832 0.079 0.32 0.527 0.097 0.283 0.076 0.144 0.129 0.854], [0.832 0.527 0.32 0.079 0.097 0.283 0.076 0.144 0.129 0.854], [0.832 0.527 0.32 0.144 0.097 0.283 0.076 0.079 0.129 0.854], [0.832 0.527 0.32 0.144 0.097 0.283 0.076 0.079 0.129 0.854], [0.129 0.527 0.32 0.144 0.097 0.283 0.076 0.079 0.832 0.854], [0.527 0.129 0.32 0.144 0.097 0.283 0.076 0.079 0.832 0.854], [0.527 0.144 0.32 0.129 0.097 0.283 0.076 0.079 0.832 0.854], [0.527 0.144 0.32 0.129 0.097 0.283 0.076 0.079 0.832 0.854], [0.079 0.144 0.32 0.129 0.097 0.283 0.076 0.527 0.832 0.854], [0.32 0.144 0.079 0.129 0.097 0.283 0.076 0.527 0.832 0.854], [0.32 0.144 0.283 0.129 0.097 0.079 0.076 0.527 0.832 0.854], [0.32 0.144 0.283 0.129 0.097 0.079 0.076 0.527 0.832 0.854], [0.076 0.144 0.283 0.129 0.097 0.079 0.32 0.527 0.832 0.854], [0.283 0.144 0.076 0.129 0.097 0.079 0.32 0.527 0.832 0.854], [0.283 0.144 0.079 0.129 0.097 0.076 0.32 0.527 0.832 0.854], [0.283 0.144 0.079 0.129 0.097 0.076 0.32 0.527 0.832 0.854], [0.076 0.144 0.079 0.129 0.097 0.283 0.32 0.527 0.832 0.854], [0.144 0.076 0.079 0.129 0.097 0.283 0.32 0.527 0.832 0.854], [0.144 0.129 0.079 0.076 0.097 0.283 0.32 0.527 0.832 0.854], [0.144 0.129 0.079 0.076 0.097 0.283 0.32 0.527 0.832 0.854], [0.097 0.129 0.079 0.076 0.144 0.283 0.32 0.527 0.832 0.854], [0.129 0.097 0.079 0.076 0.144 0.283 0.32 0.527 0.832 0.854], [0.129 0.097 0.079 0.076 0.144 0.283 0.32 0.527 0.832 0.854], [0.076 0.097 0.079 0.129 0.144 0.283 0.32 0.527 0.832 0.854], [0.097 0.076 0.079 0.129 0.144 0.283 0.32 0.527 0.832 0.854], [0.097 0.076 0.079 0.129 0.144 0.283 0.32 0.527 0.832 0.854], [0.079 0.076 0.097 0.129 0.144 0.283 0.32 0.527 0.832 0.854], [0.079 0.076 0.097 0.129 0.144 0.283 0.32 0.527 0.832 0.854], [0.076 0.079 0.097 0.129 0.144 0.283 0.32 0.527 0.832 0.854] | [0.076 0.079 0.097 0.129 0.144 0.283 0.32 0.527 0.832 0.854]
heapsort
bellman_ford: s: 24, A: [[0 0 0 0 0 0 0 0 0 0 0 0.838 0 0 0.204 0.308 0 0 0 0 0.162 0.723 0 0 0 0.064 0 0], [0 0.572 0 0 0 0 0 0.476 0 0 0 0 0 0.644 0 0 0 0 0.771 0 0 0 0 0 0.299 0 0 0], [0 0 0 0.585 0.886 0.519 0 0.379 0 0 0.266 0 0 0.143 0.314 0 0 0 0 0 0 0 0 0.13 0 0 0 0], [0 0 0.585 0.549 0 0 0.649 0.313 0.152 0 0 0.365 0 0.6 0 0 0 0 0.367 0 0 0 0 0 0 0.174 0 0], [0 0 0.886 0 0 0.127 0 0.544 0.196 0.504 0.376 0.785 0.355 0.798 0 0 0 0 0.659 0 0 0 0 0.433 0 0 0 0], [0 0 0.519 0 0.127 0 0.531 0 0 0.554 0 0 0.671 0 0.19 0 0 0 0 0.642 0 0 0 0 0 0 0 0], [0 0 0 0.649 0 0.531 0 0 0 0 0 0 0.341 0 0 0.512 0.346 0 0 0 0.293 0 0 0 0.618 0 0.446 0], [0 0.476 0.379 0.313 0.544 0 0 0 0 0 0 0 0 0 0 0 0.212 0 0 0 0 0.422 0.834 0.501 0 0 0 0], [0 0 0 0.152 0.196 0 0 0 0.077 0 0 0 0 0 0 0 0 0 0.706 0.289 0 0 0 0 0.658 0 0 0], [0 0 0 0 0.504 0.554 0 0 0 0.082 0 0 0.427 0 0 0 0 0 0 0 0 0.406 0 0 0 0 0 0], [0 0 0.266 0 0.376 0 0 0 0 0 0 0 0 0 0 0 0 0 0.368 0.255 0 0 0 0 0 0 0 0], [0.838 0 0 0.365 0.785 0 0 0 0 0 0 0.848 0 0 0 0.792 0.538 0 0.494 0.658 0.369 0.529 0.404 0 0 0.657 0 0], [0 0 0 0 0.355 0.671 0.341 0 0 0.427 0 0 0 0 0 0 0 0.352 0 0 0 0 0 0 0.563 0 0 0], [0 0.644 0.143 0.6 0.798 0 0 0 0 0 0 0 0 0.982 0.398 0 0.439 0.305 0.609 0 0.483 0.746 0 0.764 0 0 0 0], [0.204 0 0.314 0 0 0.19 0 0 0 0 0 0 0 0.398 0 0.551 0 0 0 0 0 0 0 0.684 0 0.615 0.814 0], [0.308 0 0 0 0 0 0.512 0 0 0 0 0.792 0 0 0.551 0 0 0.387 0 0 0 0 0 0 0 0 0.557 0], [0 0 0 0 0 0 0.346 0.212 0 0 0 0.538 0 0.439 0 0 0 0 0.688 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0.352 0.305 0 0.387 0 0 0 0 0 0 0.722 0 0 0 0 0], [0 0.771 0 0.367 0.659 0 0 0 0.706 0 0.368 0.494 0 0.609 0 0 0.688 0 0.186 0.565 0 0 0.66 0 0 0 0 0], [0 0 0 0 0 0.642 0 0 0.289 0 0.255 0.658 0 0 0 0 0 0 0.565 0 0.136 0.626 0 0 0.603 0 0 0], [0.162 0 0 0 0 0 0.293 0 0 0 0 0.369 0 0.483 0 0 0 0 0 0.136 0 0 0 0 0 0 0 0], [0.723 0 0 0 0 0 0 0.422 0 0.406 0 0.529 0 0.746 0 0 0 0 0 0.626 0 0.239 0.179 0 0 0.42 0 0], [0 0 0 0 0 0 0 0.834 0 0 0 0.404 0 0 0 0 0 0.722 0.66 0 0 0.179 0.093 0 0 0.766 0 0.713], [0 0 0.13 0 0.433 0 0 0.501 0 0 0 0 0 0.764 0.684 0 0 0 0 0 0 0 0 0.418 0 0 0 0], [0 0.299 0 0 0 0 0.618 0 0.658 0 0 0 0.563 0 0 0 0 0 0 0.603 0 0 0 0 0 0.667 0 0.373], [0.064 0 0 0.174 0 0 0 0 0 0 0 0.657 0 0 0.615 0 0 0 0 0 0 0.42 0.766 0 0.667 0.448 0 0], [0 0 0 0 0 0 0.446 0 0 0 0 0 0 0 0.814 0.557 0 0 0 0 0 0 0 0 0 0 0 0.643], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.713 0 0.373 0 0.643 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27] trace | pi:
[0 24 2 3 4 5 24 7 24 9 10 11 24 13 14 15 16 17 18 24 20 21 22 23 24 24 26 24], [25 24 2 8 8 6 24 1 24 12 19 19 24 1 25 6 6 12 1 24 19 25 27 23 24 24 27 24], [25 24 13 8 8 4 24 1 24 12 19 20 24 1 0 0 6 12 1 24 19 25 27 7 24 24 27 24] | [25 24 13 8 8 4 24 1 24 12 19 20 24 1 0 0 6 12 1 24 19 25 27 2 24 24 27 24]
bellman_ford
strongly_connected_components: A: [[0 0 0 0 0], [0 0 0 0 0], [0 0 1 0 0], [0 0 0 1 0], [0 1 0 0 1]], initial_trace: [0 1 2 3 4] trace | scc_id:
[0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4] | [0 1 2 3 4]
strongly_connected_components
heapsort: key: [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], initial_trace: [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223] trace | pred:
[0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], [0.702 0.061 0.724 0.58 0.271 0.777 0.476 0.161 0.591 0.223], [0.702 0.061 0.724 0.591 0.271 0.777 0.476 0.161 0.58 0.223], [0.702 0.061 0.724 0.591 0.271 0.777 0.476 0.161 0.58 0.223], [0.702 0.061 0.777 0.591 0.271 0.724 0.476 0.161 0.58 0.223], [0.702 0.061 0.777 0.591 0.271 0.724 0.476 0.161 0.58 0.223], [0.702 0.591 0.777 0.061 0.271 0.724 0.476 0.161 0.58 0.223], [0.702 0.591 0.777 0.58 0.271 0.724 0.476 0.161 0.061 0.223], [0.702 0.591 0.777 0.58 0.271 0.724 0.476 0.161 0.061 0.223], [0.777 0.591 0.702 0.58 0.271 0.724 0.476 0.161 0.061 0.223], [0.777 0.591 0.724 0.58 0.271 0.702 0.476 0.161 0.061 0.223], [0.777 0.591 0.724 0.58 0.271 0.702 0.476 0.161 0.061 0.223], [0.223 0.591 0.724 0.58 0.271 0.702 0.476 0.161 0.061 0.777], [0.724 0.591 0.223 0.58 0.271 0.702 0.476 0.161 0.061 0.777], [0.724 0.591 0.702 0.58 0.271 0.223 0.476 0.161 0.061 0.777], [0.724 0.591 0.702 0.58 0.271 0.223 0.476 0.161 0.061 0.777], [0.061 0.591 0.702 0.58 0.271 0.223 0.476 0.161 0.724 0.777], [0.702 0.591 0.061 0.58 0.271 0.223 0.476 0.161 0.724 0.777], [0.702 0.591 0.476 0.58 0.271 0.223 0.061 0.161 0.724 0.777], [0.702 0.591 0.476 0.58 0.271 0.223 0.061 0.161 0.724 0.777], [0.161 0.591 0.476 0.58 0.271 0.223 0.061 0.702 0.724 0.777], [0.591 0.161 0.476 0.58 0.271 0.223 0.061 0.702 0.724 0.777], [0.591 0.58 0.476 0.161 0.271 0.223 0.061 0.702 0.724 0.777], [0.591 0.58 0.476 0.161 0.271 0.223 0.061 0.702 0.724 0.777], [0.061 0.58 0.476 0.161 0.271 0.223 0.591 0.702 0.724 0.777], [0.58 0.061 0.476 0.161 0.271 0.223 0.591 0.702 0.724 0.777], [0.58 0.271 0.476 0.161 0.061 0.223 0.591 0.702 0.724 0.777], [0.58 0.271 0.476 0.161 0.061 0.223 0.591 0.702 0.724 0.777], [0.223 0.271 0.476 0.161 0.061 0.58 0.591 0.702 0.724 0.777], [0.476 0.271 0.223 0.161 0.061 0.58 0.591 0.702 0.724 0.777], [0.476 0.271 0.223 0.161 0.061 0.58 0.591 0.702 0.724 0.777], [0.061 0.271 0.223 0.161 0.476 0.58 0.591 0.702 0.724 0.777], [0.271 0.061 0.223 0.161 0.476 0.58 0.591 0.702 0.724 0.777], [0.271 0.161 0.223 0.061 0.476 0.58 0.591 0.702 0.724 0.777], [0.271 0.161 0.223 0.061 0.476 0.58 0.591 0.702 0.724 0.777], [0.061 0.161 0.223 0.271 0.476 0.58 0.591 0.702 0.724 0.777], [0.223 0.161 0.061 0.271 0.476 0.58 0.591 0.702 0.724 0.777], [0.223 0.161 0.061 0.271 0.476 0.58 0.591 0.702 0.724 0.777], [0.061 0.161 0.223 0.271 0.476 0.58 0.591 0.702 0.724 0.777], [0.161 0.061 0.223 0.271 0.476 0.58 0.591 0.702 0.724 0.777], [0.161 0.061 0.223 0.271 0.476 0.58 0.591 0.702 0.724 0.777], [0.061 0.161 0.223 0.271 0.476 0.58 0.591 0.702 0.724 0.777] | [0.061 0.161 0.223 0.271 0.476 0.58 0.591 0.702 0.724 0.777]
heapsort
task_scheduling: d: [1 3 4 1 3], w: [0.192 0.388 0.868 0.152 0.534], initial_trace: [0 0 0 0 0] trace | selected:
[0 0 1 0 0], [0 0 1 0 1], [0 1 1 0 1], [0 1 1 0 1] | [0 1 1 0 1]
task_scheduling
quickselect: key: [0.07 0.64 0.042 0.847 0.981 0.168 0.14 0.264 0.723 0.371], initial_trace: 9 trace | pivot:
9, 9, 9, 9, 9, 9, 9, 9 | 9
quickselect
mst_kruskal: A: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0.51 0], [0 0 0 0 0.655]], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | in_mst:
| [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]]
mst_kruskal
bfs: s: 1, A: [[1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0], [0 0 0 1 0 0 0 0 0 0 0 0 0 0 0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6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22] trace | pi:
[0 1 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 1], [0 1 22 1 21 3 22 3 8 21 10 22 21 22 21 21 3 17 21 3 21 1 1] | [2 1 22 1 21 3 22 3 11 21 7 22 21 22 21 21 3 4 21 3 21 1 1]
bfs
segments_intersect: x: [0.042 0.186 0.966 0.042], y: [0.182 0.704 0.777 0.539] intersect:
1
segments_intersect
graham_scan: x: [0.587 1.46 0.675 0.549 0.115 0.757 0.295 1.69 0.692 1.62], y: [-0.628 0.13 -1.5 -0.136 -1.32 0.261 1.58 -0.527 -1.04 -1.06], initial_trace: [0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 0 1], [0 1 1 0 0 0 0 1 0 1], [0 1 1 0 0 1 0 1 0 1], [0 1 1 0 0 1 0 1 1 1], [0 1 1 0 0 1 0 1 0 1], [0 1 1 1 0 1 0 1 0 1], [1 1 1 1 0 1 0 1 0 1], [0 1 1 1 0 1 0 1 0 1], [0 1 1 0 0 1 0 1 0 1], [0 1 1 0 0 0 0 1 0 1], [0 1 1 0 0 0 1 1 0 1] | [0 1 1 0 1 0 1 1 0 1]
graham_scan
task_scheduling: d: [2 9 3 3 2 11 11 2 10 4 6], w: [0.406 0.295 0.585 0.796 0.352 0.751 0.949 0.787 0.721 0.412 0.039], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 1 0 0 0 0], [0 0 0 1 0 0 1 0 0 0 0], [0 0 0 1 0 0 1 0 0 0 0], [0 0 0 1 0 1 1 0 0 0 0], [0 0 0 1 0 1 1 0 1 0 0], [0 0 0 1 0 1 1 0 1 0 0], [0 0 0 1 0 1 1 0 1 0 0], [0 0 0 1 0 1 1 0 1 0 0], [0 0 0 1 0 1 1 0 1 0 0], [0 1 0 1 0 1 1 0 1 0 0] | [0 1 0 1 0 1 1 0 1 0 1]
task_scheduling
matrix_chain_order: p: [0.087 0.755 0.54 0.229 0.623], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | s:
[[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 0 0], [0 0 1 2 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 0 0 0], [0 0 1 2 3], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]]
matrix_chain_order
find_maximum_subarray_kadane: key: [-0.004 -0.337 0.403 -0.383 0.934 0.291 -0.401 0.049 -0.825 -0.372 0.202 0.747], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (2, 2), (2, 2), (2, 4), (2, 5), (2, 5), (2, 5), (2, 5), (2, 5), (2, 5) | (2, 5)
find_maximum_subarray_kadane
quickselect: key: [0.31 0.283 0.522 0.791 0.716 0.155 0.624 0.165 0.455 0.816 0.719 0.124 0.412 0.863 0.54 0.353 0.352 0.432 0.131], initial_trace: 18 trace | pivot:
18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 17, 17, 17, 17, 17, 17, 17, 17 | 17
quickselect
heapsort: key: [0.706 0.253 0.279 0.353], initial_trace: [0.706 0.253 0.279 0.353] trace | pred:
[0.706 0.253 0.279 0.353], [0.706 0.253 0.279 0.353], [0.706 0.353 0.279 0.253], [0.706 0.353 0.279 0.253], [0.706 0.353 0.279 0.253], [0.253 0.353 0.279 0.706], [0.353 0.253 0.279 0.706], [0.353 0.253 0.279 0.706], [0.279 0.253 0.353 0.706], [0.279 0.253 0.353 0.706], [0.253 0.279 0.353 0.706] | [0.253 0.279 0.353 0.706]
heapsort
segments_intersect: x: [0.605 0.545 0.853 0.389], y: [0.228 0.889 0.909 0.385] intersect:
1
segments_intersect
task_scheduling: d: [1 1 1 1 1], w: [0.463 0.442 0.145 0.689 0.889], initial_trace: [0 0 0 0 0] trace | selected:
[0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1] | [0 0 0 0 1]
task_scheduling
bfs: s: 5, A: [[0 0 1 0 0 0 1 1 0 1 0 0], [0 1 0 1 0 0 0 0 1 1 0 0], [1 0 0 0 0 0 0 0 0 1 1 0], [0 1 0 0 1 0 0 1 0 0 0 0], [0 0 0 1 0 0 0 0 1 0 0 1], [0 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 1 0], [1 0 0 1 0 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 1 0 0 0], [1 1 1 0 0 0 0 0 0 1 0 0], [0 0 1 0 0 0 1 0 0 0 1 0], [0 0 0 0 1 0 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
| [0 1 2 3 4 5 6 7 8 9 10 11]
bfs
mst_prim: s: 9, A: [[0.92 0 0 0.169 0 0 0 0.504 0 0.565 0], [0 0.141 0 0 0 0 0 0 0 0 0.249], [0 0 0.817 0 0 0 0.553 0.306 0 0.155 0], [0.169 0 0 0 0 0.046 0 0 0 0.135 0], [0 0 0 0 0.783 0 0 0 0 0 0], [0 0 0 0.046 0 0 0 0 0.954 0 0], [0 0 0.553 0 0 0 0.221 0 0 0.529 0], [0.504 0 0.306 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.954 0 0 0.671 0.293 0], [0.565 0 0.155 0.135 0 0 0.529 0 0.293 0 0], [0 0.249 0 0 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[9 1 9 9 4 5 9 7 9 9 10], [3 1 9 9 4 3 9 7 9 9 10], [3 1 9 9 4 3 9 7 9 9 10], [3 1 9 9 4 3 9 2 9 9 10], [3 1 9 9 4 3 9 2 9 9 10], [3 1 9 9 4 3 9 2 9 9 10], [3 1 9 9 4 3 9 2 9 9 10] | [3 1 9 9 4 3 9 2 9 9 10]
mst_prim
activity_selector: s: [0.145 0.172 0.57 0.254 0.228 0.325 0.324 0.386 0.321 0.18 0.878 0.25 0.817 0.169 0.344], f: [0.368 0.342 0.807 0.997 0.41 0.353 0.911 0.796 0.461 0.858 0.97 0.991 0.973 0.537 0.482], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 1 1 0 0 0 0 0 0 0 0 0 0 0 1], [0 1 1 0 0 0 0 0 0 0 0 0 0 0 1], [0 1 1 0 0 0 0 0 0 0 0 0 0 0 1], [0 1 1 0 0 0 0 0 0 0 1 0 0 0 1], [0 1 1 0 0 0 0 0 0 0 1 0 0 0 1], [0 1 1 0 0 0 0 0 0 0 1 0 0 0 1] | [0 1 1 0 0 0 0 0 0 0 1 0 0 0 1]
activity_selector
bfs: s: 9, A: [[1 1 1 1 0 0 0 0 0 1 1], [1 1 1 1 0 1 0 0 0 0 0], [1 1 0 0 0 1 0 0 0 0 1], [1 1 0 0 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 1 0 0 0], [0 1 1 0 0 1 0 0 0 0 1], [0 0 0 0 0 0 1 1 1 0 1], [0 0 0 0 1 0 1 1 1 0 0], [0 0 0 1 0 0 1 1 0 0 1], [1 0 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 1 1 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[9 1 2 9 4 5 6 7 8 9 10], [9 0 0 9 4 5 6 7 3 9 0], [9 0 0 9 4 1 8 8 3 9 0] | [9 0 0 9 7 1 8 8 3 9 0]
bfs
minimum: key: [0.651 0.501 0.378 0.53 0.86 0.45 0.285 0.206 0.112 0.295 0.301 0.535 0.015 0.281 0.457], initial_trace: 0 trace | min:
1, 2, 2, 2, 2, 6, 7, 8, 8, 8, 8, 12, 12 | 12
minimum
naive_string_matcher: string: [0 0 0 0 0 0 0 0 1 1], key: [0 1 0 2 1 1 1 1 1 0], initial_trace: 0 trace | s:
1 | 1
naive_string_matcher
kmp_matcher: string: [0 0 0 1], key: [1 2 0 2], initial_trace: 0 trace | s:
0 | 1
kmp_matcher
dijkstra: s: 2, A: [[0.555 0 0 0.896], [0 0.428 0 0.782], [0 0 0 0.227], [0.896 0.782 0.227 0.273]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 2], [3 3 2 2], [3 3 2 2] | [3 3 2 2]
dijkstra
topological_sort: A: [[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 1 0 1 0 1 0 1 0 0 0 1 1 0 0], [1 1 0 0 0 0 1 0 0 0 0 1 1 1 1], [1 0 0 0 0 1 0 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 1 0 0 1 0 1 1 1 0 1], [0 1 0 0 0 1 0 0 0 1 0 1 0 1 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 1 0 0 1 0 0 0 0 0 0], [1 1 0 0 1 0 0 0 1 1 0 0 0 0 1], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0], [1 1 0 0 0 1 0 0 0 1 0 0 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 5, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 5, [0 1 2 3 4 5 6 7 5 9 10 11 12 13 14], 8, [0 1 2 3 4 5 6 7 5 9 8 11 12 13 14], 10, [0 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 1, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 9 8 11 12 13 14], 0, [1 10 2 3 4 5 6 7 5 0 8 11 12 13 14], 9, [1 10 2 3 4 5 6 7 5 0 8 11 12 13 14], 9, [1 10 2 3 4 5 6 7 5 0 8 11 9 13 14], 12, [1 10 2 3 12 5 6 7 5 0 8 11 9 13 14], 4, [1 10 2 3 12 5 6 7 5 0 8 11 9 13 14], 4, [1 10 2 3 12 5 6 7 5 0 8 11 9 13 14], 4, [1 10 2 3 12 5 6 7 5 0 8 11 9 13 4], 14, [1 10 2 3 12 5 6 7 5 0 8 14 9 13 4], 11, [1 10 2 3 12 5 11 7 5 0 8 14 9 13 4], 6, [1 10 2 3 12 5 11 7 5 0 8 14 9 13 4], 6, [1 10 2 3 12 5 11 7 5 0 8 14 9 6 4], 13, [1 10 2 13 12 5 11 7 5 0 8 14 9 6 4], 3, [1 10 2 13 12 5 11 7 5 0 8 14 9 6 4], 3, [1 10 2 13 12 5 11 3 5 0 8 14 9 6 4], 7 | [1 10 7 13 12 5 11 3 5 0 8 14 9 6 4], 2
topological_sort
quickselect: key: [0.613 0.735 0.111 0.294 0.188 0.83 0.273 0.483 0.45 0.872 0.172 0.945], initial_trace: 11 trace | pivot:
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 0, 0 | 7
quickselect
articulation_points: A: [[0 0 0 0], [0 1 0 0], [0 0 0 0], [0 0 0 1]], initial_trace: [0 0 0 0] trace | is_cut:
[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0] | [0 0 0 0]
articulation_points
mst_prim: s: 18, A: [[0.71 0.829 0 0.379 0 0.892 0 0 0 0 0 0.397 0.219 0 0.185 0 0 0 0 0 0 0 0.7], [0.829 0.663 0.552 0 0 0.755 0 0 0 0 0 0.577 0 0 0 0 0.448 0 0 0 0 0 0], [0 0.552 0.253 0.07 0 0 0.657 0.448 0 0 0 0.44 0.246 0 0 0 0 0 0 0 0.436 0 0], [0.379 0 0.07 0.566 0.274 0 0.77 0 0 0 0 0.224 0 0 0.455 0 0 0 0 0 0 0 0], [0 0 0 0.274 0 0 0 0 0 0.215 0.688 0 0 0 0 0 0 0.786 0 0 0 0.745 0.354], [0.892 0.755 0 0 0 0.462 0 0 0.118 0 0.035 0 0 0 0.49 0 0 0 0 0 0 0.886 0], [0 0 0.657 0.77 0 0 0 0 0 0 0 0.259 0 0 0 0 0 0.315 0 0 0 0 0], [0 0 0.448 0 0 0 0 0.113 0.6 0 0.256 0 0 0 0 0 0 0 0 0.304 0.318 0 0], [0 0 0 0 0 0.118 0 0.6 0.404 0.105 0 0 0.722 0 0 0.41 0 0 0 0.52 0.286 0 0], [0 0 0 0 0.215 0 0 0 0.105 0 0 0.225 0 0.211 0 0 0 0 0 0 0 0.442 0], [0 0 0 0 0.688 0.035 0 0.256 0 0 0 0 0.123 0 0.217 0.778 0 0 0.564 0 0 0 0], [0.397 0.577 0.44 0.224 0 0 0.259 0 0 0.225 0 0.085 0 0 0 0 0 0 0 0 0 0.761 0], [0.219 0 0.246 0 0 0 0 0 0.722 0 0.123 0 0.995 0 0.766 0 0.185 0.659 0 0 0.431 0 0], [0 0 0 0 0 0 0 0 0 0.211 0 0 0 0.815 0 0.134 0 0 0 0 0 0 0], [0.185 0 0 0.455 0 0.49 0 0 0 0 0.217 0 0.766 0 0.821 0 0 0.386 0 0 0 0 0.455], [0 0 0 0 0 0 0 0 0.41 0 0.778 0 0 0.134 0 0 0.123 0.469 0 0 0.776 0 0], [0 0.448 0 0 0 0 0 0 0 0 0 0 0.185 0 0 0.123 0.264 0.636 0.639 0 0 0 0], [0 0 0 0 0.786 0 0.315 0 0 0 0 0 0.659 0 0.386 0.469 0.636 0 0 0 0 0 0.71], [0 0 0 0 0 0 0 0 0 0 0.564 0 0 0 0 0 0.639 0 0 0 0 0.664 0], [0 0 0 0 0 0 0 0.304 0.52 0 0 0 0 0 0 0 0 0 0 0 0.435 0 0], [0 0 0.436 0 0 0 0 0.318 0.286 0 0 0 0.431 0 0 0.776 0 0 0 0.435 0 0 0.181], [0 0 0 0 0.745 0.886 0 0 0 0.442 0 0.761 0 0 0 0 0 0 0.664 0 0 0.306 0], [0.7 0 0 0 0.354 0 0 0 0 0 0 0 0 0 0.455 0 0 0.71 0 0 0.181 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22] trace | pi:
[0 1 2 3 4 5 6 7 8 9 18 11 12 13 14 15 18 17 18 19 20 18 22], [0 1 2 3 10 10 6 10 8 9 18 11 10 13 10 10 18 17 18 19 20 18 22], [5 5 2 3 10 10 6 10 5 9 18 11 10 13 10 10 18 17 18 19 20 18 22], [5 5 2 3 10 10 6 10 5 8 18 11 10 13 10 8 18 17 18 8 8 18 22], [5 5 2 3 9 10 6 10 5 8 18 9 10 9 10 8 18 17 18 8 8 9 22], [12 5 12 3 9 10 6 10 5 8 18 9 10 9 10 8 12 12 18 8 8 9 22], [12 16 12 3 9 10 6 10 5 8 18 9 10 9 10 16 12 16 18 8 8 9 22], [12 16 12 3 9 10 6 10 5 8 18 9 10 15 10 16 12 15 18 8 8 9 22], [12 16 12 3 9 10 6 10 5 8 18 9 10 15 10 16 12 15 18 8 8 9 22], [12 16 12 4 9 10 6 10 5 8 18 9 10 15 10 16 12 15 18 8 8 9 4], [14 16 12 4 9 10 6 10 5 8 18 9 10 15 10 16 12 14 18 8 8 9 4], [14 16 12 4 9 10 6 10 5 8 18 9 10 15 10 16 12 14 18 8 8 9 4], [14 16 12 11 9 10 11 10 5 8 18 9 10 15 10 16 12 14 18 8 8 9 4], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 14 18 8 8 9 4], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 14 18 8 8 9 4], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 14 18 7 8 9 4], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 4], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 20], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 20], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 20], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 20], [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 20] | [14 16 3 11 9 10 11 10 5 8 18 9 10 15 10 16 12 6 18 7 8 9 20]
mst_prim
binary_search: key: [0.129 0.406 0.544 0.574 0.714 0.819 0.83 0.833 0.845 0.916 0.97], target: 0.290, initial_trace: (0, 10) trace | (low, high):
(0, 5), (0, 2), (0, 1) | (1, 1)
binary_search
topological_sort: A: [[0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 0 0 1 0 0 0 0 1 0 1 0 0 1], [1 0 0 0 0 0 0 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 1 1 1 1 1 1 0 1 0], [0 0 0 0 0 0 0 1 0 0 1 1 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [1 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [1 0 0 1 0 0 1 0 0 1 0 1 0 0 1], [1 0 0 0 0 0 0 0 1 0 1 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 6, [6 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [6 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [6 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [6 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [6 1 2 3 4 5 6 7 8 9 10 11 0 13 14], 12, [6 12 2 3 4 5 6 7 8 9 10 11 0 13 14], 1, [6 12 2 3 4 5 6 7 8 9 10 11 0 13 14], 1, [6 12 2 3 4 5 6 7 8 9 10 11 0 13 14], 1, [6 12 2 3 4 5 6 7 8 9 10 11 0 13 14], 1, [6 12 2 3 4 5 6 7 8 9 10 11 0 13 14], 1, [6 12 2 3 4 5 6 7 8 9 10 11 0 13 14], 1, [6 12 2 3 4 5 6 7 1 9 10 11 0 13 14], 8, [6 12 2 3 4 5 6 8 1 9 10 11 0 13 14], 7, [6 12 2 3 4 5 6 8 1 9 10 11 0 13 14], 7, [6 12 2 3 4 5 6 8 1 7 10 11 0 13 14], 9, [6 12 2 3 4 5 6 8 1 7 10 11 0 13 14], 9, [6 12 2 3 4 5 6 8 1 7 9 11 0 13 14], 10, [6 12 2 3 4 5 6 8 1 7 9 11 0 13 14], 10, [6 12 2 3 4 5 6 8 1 7 9 10 0 13 14], 11, [6 12 2 3 4 5 6 8 1 7 9 10 0 13 14], 11, [6 12 2 3 4 5 6 8 1 7 9 10 0 13 14], 11, [6 12 2 11 4 5 6 8 1 7 9 10 0 13 14], 3, [6 12 2 11 4 5 6 8 1 7 9 10 0 13 14], 3, [6 12 2 11 4 5 6 8 1 7 9 10 0 13 3], 14, [6 12 2 11 4 5 6 8 1 7 9 10 0 14 3], 13, [6 12 2 11 13 5 6 8 1 7 9 10 0 14 3], 4, [6 12 4 11 13 5 6 8 1 7 9 10 0 14 3], 2, [6 12 4 11 13 5 6 8 1 7 9 10 0 14 3], 2, [6 12 4 11 13 5 6 8 1 7 9 10 0 14 3], 2 | [6 12 4 11 13 2 6 8 1 7 9 10 0 14 3], 5
topological_sort
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [1 3 3 0 2 2 2 0 0 2 1 2 3 0 3 0 2 2 0], initial_trace: 0 trace | s:
1, 2, 3, 4, 4, 4, 5, 5 | 5
naive_string_matcher
find_maximum_subarray_kadane: key: [0.521 -0.446 -0.695 0.149 -0.445 -0.319 -0.098 -0.098 0.669 -0.793 -0.329 -0.983 0.971 0.928 -0.052 -0.894 -0.199 -0.971 -0.893], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (8, 8), (8, 8), (8, 8), (8, 8), (12, 12), (12, 13), (12, 13), (12, 13), (12, 13), (12, 13) | (12, 13)
find_maximum_subarray_kadane
segments_intersect: x: [0.947 0.12 0.458 0.27], y: [0.775 0.88 0.839 0.646] intersect:
1
segments_intersect
quickselect: key: [0.176 0.725 0.427 0.381 0.547 0.947 0.287 0.849 0.448 0.639 0.885 0.846 0.162 0.808 0.387 0.795 0.209 0.088 0.78 0.11 0.063 0.475 0.339 0.773 0.494 0.301 0.423 0.006 0.989 0.665 0.265], initial_trace: 30 trace | pivot:
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 | 8
quickselect
bellman_ford: s: 8, A: [[0 0 0.717 0 0 0 0 0.667 0 0 0.821 0], [0 0.993 0 0.464 0 0.775 0 0.582 0 0.159 0.117 0], [0.717 0 0.932 0 0 0 0 0.135 0.582 0.411 0 0], [0 0.464 0 0 0 0 0.044 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.223 0 0 0], [0 0.775 0 0 0 0.076 0 0.449 0.211 0 0 0], [0 0 0 0.044 0 0 0 0 0 0 0 0], [0.667 0.582 0.135 0 0 0.449 0 0 0.512 0 0 0], [0 0 0.582 0 0.223 0.211 0 0.512 0 0 0 0.154], [0 0.159 0.411 0 0 0 0 0 0 0 0 0.505], [0.821 0.117 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.154 0.505 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 8 3 8 8 6 8 8 9 10 8], [7 5 8 3 8 8 6 8 8 11 10 8], [7 9 8 1 8 8 6 8 8 11 1 8], [7 9 8 1 8 8 3 8 8 11 1 8] | [7 9 8 1 8 8 3 8 8 11 1 8]
bellman_ford
activity_selector: s: [0.103 0.696 0.256 0.541 0.148 0.302 0.358 0.571 0.776 0.176 0.384 0.485 0.04 0.403 0.108 0.328 0.096 0.27 0.583 0.045 0.177 0.375 0.625], f: [0.385 0.82 0.307 0.849 0.562 0.435 0.657 0.609 0.786 0.513 0.82 0.927 0.931 0.637 0.851 0.688 0.506 0.93 0.798 0.567 0.399 0.642 0.657], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1] | [0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1]
activity_selector
segments_intersect: x: [0.296 0.098 0.429 0.057], y: [0.995 0.891 0.914 0.381] intersect:
0
segments_intersect
bubble_sort: key: [0.134 0.514 0.969 0.738], initial_trace: [0.134 0.514 0.969 0.738] trace | pred:
[0.134 0.514 0.738 0.969], [0.134 0.514 0.738 0.969], [0.134 0.514 0.738 0.969], [0.134 0.514 0.738 0.969], [0.134 0.514 0.738 0.969] | [0.134 0.514 0.738 0.969]
bubble_sort
matrix_chain_order: p: [0.265 0.212 0.942 0.139 0.916], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | s:
[[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 0 0], [0 0 1 1 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 0 0 0], [0 0 1 1 3], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]]
matrix_chain_order
bfs: s: 11, A: [[1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 0], [0 1 0 0 0 0 0 0 1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 1 0 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1], [0 0 1 1 0 0 1 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0 1 0 0], [0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0], [1 0 0 0 1 0 1 1 1 0 1 0 0 0 1 1 1 0 0 1 0 0 1 0 0 1 1 0], [0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27] trace | pi:
[0 1 2 3 4 11 6 7 8 9 10 11 12 13 14 15 11 17 18 11 20 21 22 23 24 25 26 27], [19 16 16 3 5 11 5 7 19 16 5 11 12 13 5 5 11 19 18 11 16 21 19 5 24 16 26 27] | [19 16 16 2 5 11 5 10 19 16 5 11 6 17 5 5 11 19 9 11 16 14 19 5 1 16 8 15]
bfs
task_scheduling: d: [2 15 9 28 19 4 26 5 7 6 1 4 19 16 31 2 15 16 29 29 30 21 17 2 3 11 23 4 17 10 16], w: [0.558 0.741 0.99 0.241 0.514 0.902 0.965 0.375 0.47 0.018 0.359 0.799 0.665 0.737 0.512 0.681 0.136 0.554 0.795 0.152 0.527 0.072 0.637 0.746 0.493 0.962 0.343 0.176 0.164 0.082 0.708], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0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 0 0.217 0 0 0 0 0 0], [0.667 0 0.813 0 0 0 0 0 0 0.045 0.739 0.735], [0.171 0 0 0 0.072 0 0 0 0 0.183 0.477 0.134], [0 0 0.217 0 0 0 0 0.245 0 0 0.395 0], [0 0.29 0 0 0 0 0 0 0 0 0 0], [0 0.729 0 0 0 0.245 0 0.032 0.65 0.302 0 0], [0 0 0 0 0 0 0 0.65 0.703 0 0.72 0], [0 0.889 0 0.045 0.183 0 0 0.302 0 0 0 0], [0 0 0 0.739 0.477 0.395 0 0 0.72 0 0.928 0.615], [0 0.406 0 0.735 0.134 0 0 0 0 0 0.615 0.25]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 10 10 10 6 7 10 9 10 10], [0 1 5 10 10 10 6 5 10 9 10 10], [0 1 5 10 10 10 6 5 10 9 10 10], [0 7 5 10 10 10 6 5 7 7 10 10], [0 7 5 9 9 10 6 5 7 7 10 10], [3 7 5 9 9 10 6 5 7 7 10 10], [4 7 5 9 9 10 6 5 7 7 10 4], [4 11 5 9 9 10 6 5 7 7 10 4], [4 11 5 9 9 10 6 5 7 7 10 4], [4 11 5 9 9 10 1 5 7 7 10 4], [4 11 5 9 9 10 1 5 7 7 10 4] | [4 11 5 9 9 10 1 5 7 7 10 4]
mst_prim
bubble_sort: key: [0.937 0.776 0.886 0.352], initial_trace: [0.937 0.776 0.886 0.352] trace | pred:
[0.937 0.776 0.352 0.886], [0.937 0.352 0.776 0.886], [0.352 0.937 0.776 0.886], [0.352 0.937 0.776 0.886], [0.352 0.776 0.937 0.886] | [0.352 0.776 0.886 0.937]
bubble_sort
dfs: A: [[0 1 0 1 1], [1 0 0 1 0], [0 0 1 0 1], [1 1 1 1 1], [1 1 1 1 0]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 0 2 3 4], [0 0 2 3 4], [0 0 2 1 4], [0 0 2 1 4], [0 0 3 1 4], [0 0 3 1 4], [0 0 3 1 2], [0 0 3 1 2], [0 0 3 1 2], [0 0 3 1 2], [0 0 3 1 2], [0 0 3 1 2] | [0 0 3 1 2]
dfs
binary_search: key: [0.049 0.088 0.222 0.641 0.714], target: 0.474, initial_trace: (0, 4) trace | (low, high):
(3, 4) | (3, 3)
binary_search
minimum: key: [0.359 0.139 0.915 0.253 0.413 0.091 0.667 0.405 0.244 0.02], initial_trace: 0 trace | min:
1, 1, 1, 1, 5, 5, 5, 5 | 9
minimum
binary_search: key: [0.025 0.073 0.138 0.173 0.358 0.695 0.697 0.768 0.797 0.819 0.85 0.892 0.892 0.896 0.9], target: 0.458, initial_trace: (0, 14) trace | (low, high):
(0, 7), (4, 7), (4, 5) | (5, 5)
binary_search
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1], key: [1 2 2 2 2 1 0 0 2 3 3 0 0 3 2 3 1 1 2 2 1 2 1 2 1 2 2 1 2 1 2], initial_trace: 0 trace | s:
1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 14, 15, 16, 17, 18, 18, 18, 18, 18 | 18
naive_string_matcher
topological_sort: A: [[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1], [1 1 0 0 0 1 1 1 1 1 1 1 1 0 1 0 0 1 0], [0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 0], [0 1 0 0 0 0 0 1 0 0 1 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 1 0], [0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [1 1 0 1 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0], [1 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 1 0 0], [1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 14 15 16 17 18], 9, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 14 15 16 17 18], 9, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 9 15 16 17 18], 14, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 9 15 16 17 18], 14, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 9 15 14 17 18], 16, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 9 15 14 17 18], 16, [0 1 2 3 4 5 6 7 8 0 10 11 12 13 9 15 14 17 18], 16, [0 1 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 18], 10, [0 1 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 18, [0 18 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 1, [0 18 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 1, [0 18 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 1, [0 18 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 1, [0 18 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 1, [0 18 2 3 4 5 6 7 8 0 16 11 12 13 9 15 14 17 10], 1, [0 18 2 3 4 5 6 1 8 0 16 11 12 13 9 15 14 17 10], 7, [0 18 2 3 4 5 6 1 8 0 16 11 12 13 9 15 14 17 10], 7, [0 18 2 3 4 5 6 1 8 0 16 11 12 13 9 15 14 17 10], 7, [0 18 2 3 4 5 6 1 8 0 16 11 7 13 9 15 14 17 10], 12, [0 18 2 3 4 5 6 1 8 0 16 12 7 13 9 15 14 17 10], 11, [0 18 2 3 11 5 6 1 8 0 16 12 7 13 9 15 14 17 10], 4, [0 18 2 3 11 5 6 1 8 0 16 12 7 13 9 15 14 17 10], 4, [0 18 2 3 11 5 6 1 8 0 16 12 7 13 9 15 14 17 10], 4, [0 18 2 3 11 5 6 1 8 0 16 12 7 4 9 15 14 17 10], 13, [0 18 2 3 11 5 6 1 8 0 16 12 7 4 9 15 14 13 10], 17, [0 18 2 3 11 17 6 1 8 0 16 12 7 4 9 15 14 13 10], 5, [0 18 2 3 11 17 6 1 8 0 16 12 7 4 9 15 14 13 10], 5, [0 18 2 3 11 17 6 1 8 0 16 12 7 4 9 15 14 13 10], 5, [0 18 2 5 11 17 6 1 8 0 16 12 7 4 9 15 14 13 10], 3, [0 18 2 5 11 17 3 1 8 0 16 12 7 4 9 15 14 13 10], 6, [0 18 2 5 11 17 3 1 8 0 16 12 7 4 9 15 14 13 10], 6, [0 18 2 5 11 17 3 1 6 0 16 12 7 4 9 15 14 13 10], 8, [0 18 8 5 11 17 3 1 6 0 16 12 7 4 9 15 14 13 10], 2, [0 18 8 5 11 17 3 1 6 0 16 12 7 4 9 15 14 13 10], 2, [0 18 8 5 11 17 3 1 6 0 16 12 7 4 9 15 14 13 10], 2 | [0 18 8 5 11 17 3 1 6 0 16 12 7 4 9 2 14 13 10], 15
topological_sort
binary_search: key: [0.184 0.571 0.633 0.962], target: 0.952, initial_trace: (0, 3) trace | (low, high):
(2, 3) | (3, 3)
binary_search
quicksort: key: [0.637 0.559 0.79 0.452], initial_trace: [0.637 0.559 0.79 0.452] trace | pred:
[0.637 0.559 0.79 0.452], [0.637 0.559 0.79 0.452], [0.452 0.559 0.79 0.637], [0.452 0.559 0.79 0.637], [0.452 0.559 0.79 0.637] | [0.452 0.559 0.637 0.79]
quicksort
dijkstra: s: 9, A: [[0 0 0 0 0.855 0 0 0 0 0 0 0.276], [0 0 0 0 0 0.423 0 0 0.489 0.836 0 0], [0 0 0.033 0 0 0 0 0.077 0 0 0 0], [0 0 0 0.036 0 0.232 0.496 0 0 0 0 0], [0.855 0 0 0 0.29 0 0 0 0.602 0 0 0], [0 0.423 0 0.232 0 0.097 0 0.425 0 0 0 0], [0 0 0 0.496 0 0 0.904 0.276 0 0 0 0], [0 0 0.077 0 0 0.425 0.276 0.731 0 0.35 0 0], [0 0.489 0 0 0.602 0 0 0 0 0.498 0.6 0], [0 0.836 0 0 0 0 0 0.35 0.498 0 0 0.381], [0 0 0 0 0 0 0 0 0.6 0 0 0], [0.276 0 0 0 0 0 0 0 0 0.381 0 0.428]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 9 2 3 4 5 6 9 9 9 10 9], [0 9 7 3 4 7 7 9 9 9 10 9], [11 9 7 3 4 7 7 9 9 9 10 9], [11 9 7 3 4 7 7 9 9 9 10 9], [11 9 7 3 8 7 7 9 9 9 8 9], [11 9 7 6 8 7 7 9 9 9 8 9], [11 9 7 6 8 7 7 9 9 9 8 9], [11 9 7 5 8 7 7 9 9 9 8 9], [11 9 7 5 8 7 7 9 9 9 8 9], [11 9 7 5 8 7 7 9 9 9 8 9], [11 9 7 5 8 7 7 9 9 9 8 9] | [11 9 7 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0 0 0 1 0 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 4, [0 1 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 20 21 22], 13, [13 1 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 20 21 22], 0, [13 1 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 20 21 22], 0, [13 1 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 20 21 22], 0, [13 1 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 20 21 22], 0, [13 1 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 0 21 22], 20, [13 20 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 0 21 22], 1, [13 20 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 0 21 22], 1, [13 20 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 0 21 22], 1, [13 20 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 0 21 22], 1, [13 20 2 3 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 19 0 21 22], 1, [13 20 2 3 4 5 6 7 8 9 10 11 1 4 14 15 16 17 18 19 0 21 22], 12, [13 20 2 3 4 12 6 7 8 9 10 11 1 4 14 15 16 17 18 19 0 21 22], 5, [13 20 2 3 4 12 6 7 8 9 10 11 1 4 14 15 16 17 18 19 0 21 22], 5, [13 20 2 3 4 12 6 7 8 9 10 11 1 4 14 15 16 17 18 19 0 21 22], 5, [13 20 2 3 4 12 6 7 8 9 10 11 1 4 14 15 16 17 18 19 0 21 22], 5, [13 20 2 3 4 12 6 7 8 9 10 5 1 4 14 15 16 17 18 19 0 21 22], 11, [13 20 2 3 4 12 6 7 8 9 10 5 1 4 14 15 16 17 18 19 0 21 22], 11, [13 20 2 3 4 12 6 7 8 9 10 5 1 4 14 15 16 17 18 11 0 21 22], 19, [13 20 2 3 4 12 6 7 8 9 10 5 1 4 14 15 16 17 18 11 0 21 22], 19, [13 20 2 3 4 12 6 7 8 9 10 5 1 4 14 15 16 17 18 11 0 21 19], 22, [13 20 2 3 4 12 6 22 8 9 10 5 1 4 14 15 16 17 18 11 0 21 19], 7, [13 20 2 3 4 12 7 22 8 9 10 5 1 4 14 15 16 17 18 11 0 21 19], 6, [13 20 2 3 4 12 7 22 8 9 10 5 1 4 14 15 16 17 18 11 0 21 19], 6, [13 20 2 3 4 12 7 22 8 6 10 5 1 4 14 15 16 17 18 11 0 21 19], 9, [13 20 2 3 4 12 7 22 8 6 10 5 1 4 14 15 16 17 18 11 0 21 19], 9, [13 20 2 3 4 12 7 22 8 6 10 5 1 4 14 15 16 17 18 11 0 21 19], 9, [13 20 2 3 4 12 7 22 8 6 10 5 1 4 14 15 16 17 18 11 0 21 19], 9, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 14 15 16 17 18 11 0 21 19], 8, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 14 15 16 17 18 11 0 21 19], 8, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 8 15 16 17 18 11 0 21 19], 14, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 8 15 16 17 18 11 0 21 19], 14, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 8 14 16 17 18 11 0 21 19], 15, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 8 14 16 17 18 11 0 21 19], 15, [13 20 2 3 4 12 7 22 9 6 10 5 1 4 8 14 16 17 18 11 0 21 19], 15, [13 20 2 3 4 12 7 22 9 6 15 5 1 4 8 14 16 17 18 11 0 21 19], 10, [13 20 2 3 4 12 7 22 9 6 15 5 1 4 8 14 16 17 18 11 0 21 19], 10, [13 20 2 3 4 12 7 22 9 6 15 5 1 4 8 14 16 17 18 11 0 10 19], 21, [13 20 2 3 4 12 7 22 9 6 15 5 1 4 8 14 21 17 18 11 0 10 19], 16, [13 20 2 16 4 12 7 22 9 6 15 5 1 4 8 14 21 17 18 11 0 10 19], 3, [13 20 2 16 4 12 7 22 9 6 15 5 1 4 8 14 21 17 3 11 0 10 19], 18, [13 20 18 16 4 12 7 22 9 6 15 5 1 4 8 14 21 17 3 11 0 10 19], 2, [13 20 18 16 4 12 7 22 9 6 15 5 1 4 8 14 21 17 3 11 0 10 19], 2, [13 20 18 16 4 12 7 22 9 6 15 5 1 4 8 14 21 17 3 11 0 10 19], 2 | [13 20 18 16 4 12 7 22 9 6 15 5 1 4 8 14 21 2 3 11 0 10 19], 17
topological_sort
matrix_chain_order: p: [0.645 0.699 0.218 0.002], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] trace | s:
[[0 0 0 0], [0 0 1 0], [0 0 0 2], [0 0 0 0]] | [[0 0 0 0], [0 0 1 1], [0 0 0 2], [0 0 0 0]]
matrix_chain_order
segments_intersect: x: [0.885 0.305 0.573 0.534], y: [0.585 0.978 0.142 0.917] intersect:
1
segments_intersect
dfs: A: [[1 0 0 1 1], [0 0 1 0 1], [1 0 1 1 0], [0 0 1 0 1], [0 0 0 0 1]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 1 2 0 4], [0 1 2 0 4], [0 1 3 0 4], [0 1 3 0 4], [0 1 3 0 4], [0 1 3 0 3], [0 1 3 0 3], [0 1 3 0 3], [0 1 3 0 3], [0 1 3 0 3], [0 1 3 0 3], [0 1 3 0 3] | [0 1 3 0 3]
dfs
segments_intersect: x: [0.154 0.763 0.802 0.372], y: [0.789 0.919 0.14 0.883] intersect:
1
segments_intersect
find_maximum_subarray_kadane: key: [0.608 -0.176 -0.939 0.605 -0.619], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 0), (0, 0) | (0, 0)
find_maximum_subarray_kadane
graham_scan: x: [0.495 -1.3 1.31 0.398 1.5 0.422 0.948 0.844 -0.925 0.22 -0.668 -1.09 -1.54 -0.768 -0.138 -1.1 -0.142 -0.959 -0.623], y: [-1.47 0.067 0.952 -1.44 1.26 1.08 -1.39 -1.33 0.498 -1.15 0.825 0.553 0.494 -1.09 -0.443 1.39 -0.883 -0.851 -0.273], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0], [1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 1], [1 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0], [1 1 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0], [1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0], [1 0 0 0 1 0 1 0 0 0 0 0 1 1 0 1 0 1 0] | [1 0 0 1 1 0 1 0 0 0 0 0 1 1 0 1 0 1 0]
graham_scan
dag_shortest_paths: s: 3, A: [[0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0.606 0.0935 0 0.279 0 0.275 0.442 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0.397 0 0.699 0 0 0 0 0 0 0 0 0], [0.492 0.462 0.796 0.275 0 0 0 0.695 0.53 0 0.678 0], [0.38 0 0.753 0 0 0 0 0.254 0.53 0 0 0], [0 0.239 0.141 0 0 0 0 0.864 0.201 0 0.563 0], [0 0 0.412 0 0 0 0 0 0 0 0 0], [0 0 0.477 0 0 0 0 0 0 0 0 0], [0 0.131 0.996 0.355 0 0 0 0.352 0.976 0 0.00411 0], [0 0 0.0352 0 0 0 0 0.299 0 0 0 0], [0.968 0 0.578 0 0.933 0.355 0.373 0.846 0 0.986 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [3 1 3 3 4 5 6 7 8 9 10 11] | [3 1 3 3 4 5 6 7 8 9 10 11]
dag_shortest_paths
task_scheduling: d: [2 2 8 8 1 11 3 7 11 11 7], w: [0.626 0.24 0.326 0.242 0.725 0.789 0.71 0.256 0.417 0.394 0.919], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 1 0 0 0 0 1], [0 0 0 0 0 1 0 0 0 0 1], [0 0 0 0 0 1 1 0 0 0 1], [0 0 0 0 0 1 1 0 0 0 1], [0 0 0 0 0 1 1 0 1 0 1], [0 0 0 0 0 1 1 0 1 1 1], [0 0 1 0 0 1 1 0 1 1 1], [0 0 1 0 0 1 1 1 1 1 1], [0 0 1 1 0 1 1 1 1 1 1] | [0 0 1 1 0 1 1 1 1 1 1]
task_scheduling
find_maximum_subarray_kadane: key: [-0.747 -0.22 0.176 0.155 -0.487 0.434 -0.816 -0.873 0.529 -0.79 -0.569 0.875 -0.279 0.648 -0.896 0.387 0.659 0.475 0.208], initial_trace: (0, 0) trace | (best_low, best_high):
(1, 1), (2, 2), (2, 3), (2, 3), (5, 5), (5, 5), (5, 5), (8, 8), (8, 8), (8, 8), (11, 11), (11, 11), (11, 13), (11, 13), (11, 13), (11, 16), (11, 17) | (11, 18)
find_maximum_subarray_kadane
bellman_ford: s: 1, A: [[0 0 0 0 0 0 0 0.561 0.314 0 0], [0 0 0 0 0.23 0 0.79 0 0 0 0.234], [0 0 0 0 0 0.058 0 0.215 0.276 0 0], [0 0 0 0.967 0 0 0 0 0 0 0], [0 0.23 0 0 0 0.477 0 0 0.528 0 0], [0 0 0.058 0 0.477 0.339 0.648 0 0.249 0.635 0.584], [0 0.79 0 0 0 0.648 0.814 0 0 0.632 0], [0.561 0 0.215 0 0 0 0 0.888 0 0.761 0], [0.314 0 0.276 0 0.528 0.249 0 0 0.786 0.781 0], [0 0 0 0 0 0.635 0.632 0.761 0.781 0 0], [0 0.234 0 0 0 0.584 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 1 2 3 1 5 1 7 8 9 1], [0 1 2 3 1 4 1 7 4 6 1], [8 1 5 3 1 4 1 9 4 5 1] | [8 1 5 3 1 4 1 2 4 5 1]
bellman_ford
matrix_chain_order: p: [0.786 0.919 0.55 0.173], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] trace | s:
[[0 0 0 0], [0 0 1 0], [0 0 0 2], [0 0 0 0]] | [[0 0 0 0], [0 0 1 1], [0 0 0 2], [0 0 0 0]]
matrix_chain_order
dag_shortest_paths: s: 3, A: [[0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0.0532 0.787 0 0 0 0.834 0.0843 0 0.609 0.863 0], [0 0.46 0 0 0 0.966 0.639 0.75 0 0 0], [0.481 0 0 0 0 0.219 0.837 0 0.0226 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0.168 0 0 0 0.41 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.326 0 0 0], [0.453 0 0 0 0 0 0.541 0 0.492 0 0.959], [0 0.521 0 0.275 0.375 0.585 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 3 2 3 4 3 3 3 8 9 10], [0 3 2 3 4 3 3 3 8 9 10], [0 3 2 3 4 3 3 3 8 9 10] | [0 3 2 3 4 3 3 3 8 9 10]
dag_shortest_paths
minimum: key: [0.315 0.524 0.891 0.611 0.523 0.433 0.276 0.512 0.282 0.069], initial_trace: 0 trace | min:
0, 0, 0, 0, 0, 6, 6, 6 | 9
minimum
bfs: s: 15, A: [[1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0], [0 0 0 0 1 0 1 1 0 1 0 1 0 0 0 0 0 0 0], [0 0 0 1 0 0 1 0 0 1 1 0 0 1 1 0 0 1 0], [0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0], [0 1 0 1 1 1 1 0 0 0 0 1 0 0 1 1 0 0 0], [0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 0 0], [0 1 1 0 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0], [0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0], [0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1], [0 1 0 0 1 0 1 0 1 0 0 1 0 0 1 0 0 0 0], [0 0 0 1 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1], [1 0 1 0 1 1 0 1 0 0 1 1 0 0 1 1 0 0 0], [1 0 0 0 1 1 0 0 0 1 0 0 0 0 1 1 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0], [1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[15 1 2 3 15 15 6 7 8 15 10 11 12 13 15 15 16 17 18], [15 4 9 4 15 15 4 14 5 15 14 4 12 5 15 15 16 0 18] | [15 4 9 4 15 15 4 14 5 15 14 4 3 5 15 15 17 0 10]
bfs
optimal_bst: p: [0.052 0.134 0.025 0.097 0], q: [0.182 0.139 0.175 0.185 0.011], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | root:
[[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 1 0 0], [0 0 1 1 0], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 1 1 0], [0 0 1 1 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 1 1 1], [0 0 1 1 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]]
optimal_bst
mst_prim: s: 16, A: [[0.305 0 0 0 0 0 0 0 0 0.411 0 0 0 0 0 0 0.679 0 0.561 0 0 0.095 0], [0 0.713 0 0 0 0 0 0.424 0 0.405 0 0 0 0 0 0 0 0 0 0.196 0 0.075 0], [0 0 0 0 0 0 0 0 0.473 0 0 0 0 0 0 0 0 0 0 0.512 0 0 0.497], [0 0 0 0.19 0 0.168 0 0.231 0 0 0 0.674 0 0 0 0 0.581 0.352 0 0 0 0.921 0], [0 0 0 0 0 0.19 0 0 0 0.25 0 0 0.531 0 0.612 0 0 0.73 0 0 0 0.295 0.279], [0 0 0 0.168 0.19 0.791 0 0 0 0 0 0 0.767 0.25 0.335 0 0 0 0 0.26 0 0 0.349], [0 0 0 0 0 0 0.291 0 0.717 0 0.962 0 0 0 0 0 0 0 0 0 0 0 0], [0 0.424 0 0.231 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.782 0.516 0.692], [0 0 0.473 0 0 0 0.717 0 0 0.199 0.539 0 0.085 0 0 0.494 0.412 0 0 0 0 0 0], [0.411 0.405 0 0 0.25 0 0 0 0.199 0.725 0 0 0.696 0 0 0.338 0.474 0.581 0 0 0.505 0 0], [0 0 0 0 0 0 0.962 0 0.539 0 0.035 0.272 0.328 0.324 0 0.284 0 0 0 0 0 0 0], [0 0 0 0.674 0 0 0 0 0 0 0.272 0 0 0 0.835 0 0 0.583 0 0 0 0.636 0], [0 0 0 0 0.531 0.767 0 0 0.085 0.696 0.328 0 0 0 0 0.165 0 0 0.076 0 0 0 0], [0 0 0 0 0 0.25 0 0 0 0 0.324 0 0 0.727 0 0 0 0 0 0.596 0 0 0], [0 0 0 0 0.612 0.335 0 0 0 0 0 0.835 0 0 0.945 0.601 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.494 0.338 0.284 0 0.165 0 0.601 0 0 0 0 0 0.721 0 0], [0.679 0 0 0.581 0 0 0 0 0.412 0.474 0 0 0 0 0 0 0 0 0.179 0 0.181 0 0], [0 0 0 0.352 0.73 0 0 0 0 0.581 0 0.583 0 0 0 0 0 0.042 0 0 0.239 0 0], [0.561 0 0 0 0 0 0 0 0 0 0 0 0.076 0 0 0 0.179 0 0 0 0 0 0], [0 0.196 0.512 0 0 0.26 0 0 0 0 0 0 0 0.596 0 0 0 0 0 0 0.506 0 0], [0 0 0 0 0 0 0 0.782 0 0.505 0 0 0 0 0 0.721 0.181 0.239 0 0.506 0 0 0], [0.095 0.075 0 0.921 0.295 0 0 0.516 0 0 0 0.636 0 0 0 0 0 0 0 0 0 0.881 0], [0 0 0.497 0 0.279 0.349 0 0.692 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22] trace | pi:
[16 1 2 16 4 5 6 7 16 16 10 11 12 13 14 15 16 17 16 19 16 21 22], [18 1 2 16 4 5 6 7 16 16 10 11 18 13 14 15 16 17 16 19 16 21 22], [18 1 2 16 12 12 6 7 12 16 12 11 18 13 14 12 16 17 16 19 16 21 22], [18 1 8 16 12 12 8 7 12 8 12 11 18 13 14 12 16 17 16 19 16 21 22], [18 1 8 16 12 12 8 7 12 8 15 11 18 13 15 12 16 17 16 19 16 21 22], [18 1 8 16 12 12 8 20 12 8 15 11 18 13 15 12 16 20 16 20 16 21 22], [9 9 8 16 9 12 8 20 12 8 15 11 18 13 15 12 16 20 16 20 16 21 22], [9 9 8 17 9 12 8 20 12 8 15 17 18 13 15 12 16 20 16 20 16 21 22], [9 9 8 17 9 4 8 20 12 8 15 17 18 13 15 12 16 20 16 20 16 4 4], [9 9 8 5 9 4 8 20 12 8 15 17 18 5 5 12 16 20 16 5 16 4 4], [9 9 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 4 4], [9 9 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 4 4], [9 9 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 4 4], [9 19 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 4 4], [9 19 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 17 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 10 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 10 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 10 18 5 5 12 16 20 16 5 16 1 4], [21 19 8 5 9 4 8 3 12 8 15 10 18 5 5 12 16 20 16 5 16 1 4] | [21 19 8 5 9 4 8 3 12 8 15 10 18 5 5 12 16 20 16 5 16 1 4]
mst_prim
minimum: key: [0.82 0.161 0.298 0.225 0.634 0.853 0.79 0.507 0.342 0.696 0.048], initial_trace: 0 trace | min:
1, 1, 1, 1, 1, 1, 1, 1, 1 | 10
minimum
quickselect: key: [0.404 0.895 0.28 0.697 0.214 0.909 0.467 0.299 0.429 0.74], initial_trace: 9 trace | pivot:
9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 6 | 6
quickselect
dijkstra: s: 0, A: [[0 0 0 0.675 0 0 0 0 0 0.77 0 0], [0 0 0 0.079 0 0 0 0.101 0.347 0.452 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.371], [0.675 0.079 0 0 0 0 0 0 0 0.326 0 0.699], [0 0 0 0 0.647 0 0.72 0 0.177 0.251 0 0], [0 0 0 0 0 0.222 0.327 0 0.173 0 0 0.254], [0 0 0 0 0.72 0.327 0 0.649 0 0 0.173 0], [0 0.101 0 0 0 0 0.649 0.336 0 0 0 0], [0 0.347 0 0 0.177 0.173 0 0 0.43 0.419 0 0], [0.77 0.452 0 0.326 0.251 0 0 0 0.419 0 0 0], [0 0 0 0 0 0 0.173 0 0 0 0.25 0.553], [0 0 0.371 0.699 0 0.254 0 0 0 0 0.553 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 0 4 5 6 7 8 0 10 11], [0 3 2 0 4 5 6 7 8 0 10 3], [0 3 2 0 4 5 6 1 1 0 10 3], [0 3 2 0 9 5 6 1 1 0 10 3], [0 3 2 0 9 5 7 1 1 0 10 3], [0 3 2 0 9 5 7 1 1 0 10 3], [0 3 2 0 9 8 7 1 1 0 10 3], [0 3 2 0 9 8 7 1 1 0 10 3], [0 3 11 0 9 8 7 1 1 0 11 3], [0 3 11 0 9 8 7 1 1 0 6 3], [0 3 11 0 9 8 7 1 1 0 6 3] | [0 3 11 0 9 8 7 1 1 0 6 3]
dijkstra
topological_sort: A: [[0 0 0 1 1 0 0 0 1 0 0 1], [0 0 1 0 0 0 0 1 0 0 0 1], [0 0 0 0 0 0 0 0 0 0 0 0], [0 1 1 0 0 1 0 0 1 1 0 1], [0 0 1 0 0 1 1 1 0 0 0 1], [0 0 0 0 0 0 1 1 0 0 0 0], [0 0 1 0 0 0 0 1 1 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0], [0 0 1 0 0 0 1 1 0 0 0 0], [0 0 1 0 1 0 1 0 0 1 0 0], [0 0 1 0 0 0 0 1 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 2, [0 1 2 3 4 5 6 7 8 9 10 11], 2, [0 1 2 3 4 5 6 2 8 9 10 11], 7, [0 1 2 3 4 5 6 2 8 9 10 11], 7, [0 1 2 3 4 5 6 2 8 9 10 7], 11, [0 11 2 3 4 5 6 2 8 9 10 7], 1, [0 11 2 3 4 5 6 2 8 9 10 7], 1, [0 11 2 3 4 5 6 2 8 9 10 7], 1, [0 11 2 3 4 5 6 2 8 9 10 7], 1, [0 11 2 3 4 5 6 2 1 9 10 7], 8, [0 11 2 3 4 5 8 2 1 9 10 7], 6, [0 11 2 3 4 6 8 2 1 9 10 7], 5, [0 11 2 3 4 6 8 2 1 9 10 7], 5, [0 11 2 3 4 6 8 2 1 5 10 7], 9, [0 11 2 9 4 6 8 2 1 5 10 7], 3, [0 11 2 9 4 6 8 2 1 5 10 7], 3, [0 11 2 9 3 6 8 2 1 5 10 7], 4, [4 11 2 9 3 6 8 2 1 5 10 7], 0, [4 11 2 9 3 6 8 2 1 5 10 7], 0, [4 11 2 9 3 6 8 2 1 5 10 7], 0 | [4 11 2 9 3 6 8 2 1 5 0 7], 10
topological_sort
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1], key: [2 3 1 1 0 2 0 2 2 0 1 1 2 1 0 3 2 2 0 1 2 2 0 2 1 2 0 1 1 2 1], initial_trace: 0 trace | s:
0, 1, 2, 3, 4, 5, 5, 5, 6, 7, 7, 8, 8, 8, 8, 8 | 8
naive_string_matcher
jarvis_march: x: [-0.276 0.49 -1.66 -1.35], y: [-1.54 -1.76 -0.688 0.346], initial_trace: [0 0 0 0] trace | in_hull:
[0 1 0 0], [0 1 0 0], [0 1 0 0], [0 1 0 0], [0 1 0 0], [0 1 0 1], [0 1 0 1], [0 1 0 1], [0 1 0 1], [0 1 0 1], [0 1 1 1], [0 1 1 1], [0 1 1 1], [0 1 1 1], [0 1 1 1], [1 1 1 1], [1 1 1 1], [1 1 1 1], [1 1 1 1] | [1 1 1 1]
jarvis_march
matrix_chain_order: p: [0.358 0.457 0.32 0.908], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] trace | s:
[[0 0 0 0], [0 0 1 0], [0 0 0 2], [0 0 0 0]] | [[0 0 0 0], [0 0 1 2], [0 0 0 2], [0 0 0 0]]
matrix_chain_order
strongly_connected_components: A: [[1 0 0 0 0 0 0 0 1 0], [0 1 0 0 1 0 0 0 0 0], [0 1 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 1 0 0 0], [0 1 0 0 1 0 0 1 0 0], [1 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3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1 2 3 1 5 6 7 0 9] | [0 1 2 3 1 5 6 7 0 9]
strongly_connected_components
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1], key: [2 3 3 2 0 0 0 0 1 3 2 2 3 0 2 3 0 0 3 2 3 0 0], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 11, 12, 13 | 14
kmp_matcher
dfs: A: [[0 0 0 1 1], [1 0 1 1 1], [1 0 0 1 0], [1 0 0 0 1], [0 0 1 0 0]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 1 2 0 4], [0 1 2 0 4], [0 1 2 0 3], [0 1 2 0 3], [0 1 4 0 3], [0 1 4 0 3], [0 1 4 0 3], [0 1 4 0 3], [0 1 4 0 3], [0 1 4 0 3], [0 1 4 0 3], [0 1 4 0 3] | [0 1 4 0 3]
dfs
bfs: s: 11, A: [[0 0 1 1 1 1 0 1 0 1 0 0 0 0 1 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0], [1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0], [1 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0], [1 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 1 0 1], [1 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0], [1 0 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0], [0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 1], [1 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 1 0 1], [0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0], [0 1 1 0 1 1 0 0 0 0 1 1 0 0 0 1 0 1 0], [0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0], [0 1 1 1 0 1 1 1 1 0 0 0 1 1 0 0 0 0 1], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 1 0 0 1], [0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 0 1], [0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0], [0 0 0 0 1 0 0 0 1 1 0 0 0 1 0 1 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[0 11 11 3 11 11 6 7 8 9 11 11 12 13 14 11 16 11 18], [2 11 11 4 11 11 15 10 4 2 11 11 12 1 14 11 4 11 4] | [2 11 11 4 11 11 15 10 4 2 11 11 3 1 0 11 4 11 4]
bfs
lcs_length: string: [0 0 0 0 0 1 1 1 1 1], key: [2 2 0 3 1 1 0 1 2 1], initial_trace: [[-1 -1 -1 -1 -1 1 1 1 0 2], [-1 -1 -1 -1 -1 1 0 0 0 0], [-1 -1 -1 -1 -1 1 0 0 0 0], [-1 -1 -1 -1 -1 1 0 0 0 0], [-1 -1 -1 -1 -1 0 0 0 0 0], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]] trace | b:
[[-1 -1 -1 -1 -1 1 1 1 0 2], [-1 -1 -1 -1 -1 1 1 1 0 1], [-1 -1 -1 -1 -1 1 0 1 1 1], [-1 -1 -1 -1 -1 1 1 1 1 1], [-1 -1 -1 -1 -1 0 2 0 1 0], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]], [[-1 -1 -1 -1 -1 1 1 1 0 2], [-1 -1 -1 -1 -1 1 1 1 0 1], [-1 -1 -1 -1 -1 1 0 2 1 1], [-1 -1 -1 -1 -1 1 1 1 1 1], [-1 -1 -1 -1 -1 0 2 0 2 0], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]], [[-1 -1 -1 -1 -1 1 1 1 0 2], [-1 -1 -1 -1 -1 1 1 1 0 1], [-1 -1 -1 -1 -1 1 0 2 1 1], [-1 -1 -1 -1 -1 1 1 1 1 1], [-1 -1 -1 -1 -1 0 1 0 2 0], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]] | [[-1 -1 -1 -1 -1 1 1 1 0 2], [-1 -1 -1 -1 -1 1 1 1 0 1], [-1 -1 -1 -1 -1 1 0 2 1 1], [-1 -1 -1 -1 -1 1 1 1 1 1], [-1 -1 -1 -1 -1 0 1 0 2 0], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]]
lcs_length
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 1 1], key: [3 2 2 0 3 2 0 2 3 2 0], initial_trace: 0 trace | s:
1, 1, 2 | 2
naive_string_matcher
mst_prim: s: 17, A: [[0.931 0.628 0 0 0.496 0 0 0 0.541 0 0 0 0 0 0.836 0.484 0 0.73 0 0.272 0.979 0.303 0], [0.628 0 0 0 0 0.342 0 0 0 0 0.442 0 0 0 0.144 0 0.481 0.498 0.077 0 0 0 0], [0 0 0 0 0 0.352 0 0 0 0.276 0.309 0 0 0 0.682 0 0.367 0 0.31 0.134 0 0 0], [0 0 0 0 0.213 0.759 0 0.115 0 0 0 0 0 0 0.314 0.71 0 0 0.112 0 0 0 0], [0.496 0 0 0.213 0 0 0 0 0.161 0 0 0.256 0.036 0 0 0 0 0 0 0.388 0 0 0], [0 0.342 0.352 0.759 0 0 0 0 0 0 0.412 0 0 0 0 0 0 0 0 0 0 0 0.668], [0 0 0 0 0 0 0 0 0 0 0 0.616 0 0 0 0 0.557 0.675 0.056 0 0 0 0.476], [0 0 0 0.115 0 0 0 0 0.285 0.704 0.791 0 0.758 0 0 0 0 0.502 0 0 0.26 0.592 0], [0.541 0 0 0 0.161 0 0 0.285 0 0 0 0 0 0 0.636 0 0 0 0 0 0 0.76 0], [0 0 0.276 0 0 0 0 0.704 0 0.779 0.246 0 0 0 0 0.834 0 0.313 0.755 0 0 0.091 0], [0 0.442 0.309 0 0 0.412 0 0.791 0 0.246 0.987 0.612 0.255 0 0 0.588 0 0 0 0 0 0.242 0], [0 0 0 0 0.256 0 0.616 0 0 0 0.612 0.599 0.287 0.437 0 0.928 0 0 0 0 0 0.415 0], [0 0 0 0 0.036 0 0 0.758 0 0 0.255 0.287 0.386 0.819 0 0 0.072 0 0 0.472 0.733 0.247 0], [0 0 0 0 0 0 0 0 0 0 0 0.437 0.819 0.347 0 0 0.232 0 0 0.325 0 0 0], [0.836 0.144 0.682 0.314 0 0 0 0 0.636 0 0 0 0 0 0 0.86 0.08 0 0 0 0 0 0], [0.484 0 0 0.71 0 0 0 0 0 0.834 0.588 0.928 0 0 0.86 0 0 0.361 0 0 0.709 0.204 0], [0 0.481 0.367 0 0 0 0.557 0 0 0 0 0 0.072 0.232 0.08 0 0.106 0.145 0 0 0 0 0.92], [0.73 0.498 0 0 0 0 0.675 0.502 0 0.313 0 0 0 0 0 0.361 0.145 0 0.479 0 0 0 0], [0 0.077 0.31 0.112 0 0 0.056 0 0 0.755 0 0 0 0 0 0 0 0.479 0.629 0 0.145 0.401 0], [0.272 0 0.134 0 0.388 0 0 0 0 0 0 0 0.472 0.325 0 0 0 0 0 0 0 0.305 0], [0.979 0 0 0 0 0 0 0.26 0 0 0 0 0.733 0 0 0.709 0 0 0.145 0 0.347 0 0], [0.303 0 0 0 0 0 0 0.592 0.76 0.091 0.242 0.415 0.247 0 0 0.204 0 0 0.401 0.305 0 0.177 0], [0 0 0 0 0 0.668 0.476 0 0 0 0 0 0 0 0 0 0.92 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22] trace | pi:
[17 17 2 3 4 5 17 17 8 17 10 11 12 13 14 17 17 17 17 19 20 21 22], [17 16 16 3 4 5 16 17 8 17 10 11 16 16 16 17 17 17 17 19 20 21 16], [17 16 16 3 12 5 16 17 8 17 12 12 16 16 16 17 17 17 17 12 12 12 16], [4 16 16 4 12 5 16 17 4 17 12 4 16 16 16 17 17 17 17 4 12 12 16], [4 14 16 4 12 5 16 17 4 17 12 4 16 16 16 17 17 17 17 4 12 12 16], [4 14 16 4 12 1 16 17 4 17 12 4 16 16 16 17 17 17 1 4 12 12 16], [4 14 18 18 12 1 18 17 4 17 12 4 16 16 16 17 17 17 1 4 18 12 16], [4 14 18 18 12 1 18 17 4 17 12 4 16 16 16 17 17 17 1 4 18 12 6], [4 14 18 18 12 1 18 3 4 17 12 4 16 16 16 17 17 17 1 4 18 12 6], [4 14 18 18 12 1 18 3 4 17 12 4 16 16 16 17 17 17 1 4 18 12 6], [4 14 18 18 12 1 18 3 4 17 12 4 16 16 16 17 17 17 1 4 18 12 6], [4 14 18 18 12 1 18 3 4 17 12 4 16 16 16 17 17 17 1 4 18 12 6], [4 14 18 18 12 1 18 3 4 17 12 4 16 16 16 17 17 17 1 13 18 12 6], [21 14 18 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 21 18 12 6], [21 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 21 18 12 6], [21 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 21 18 12 6], [21 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 21 18 12 6], [21 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 21 18 12 6], [21 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 2 18 12 6], [19 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 2 18 12 6], [19 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 2 18 12 6], [19 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 2 18 12 6] | [19 14 9 18 12 1 18 3 4 21 21 4 16 16 16 21 17 17 1 2 18 12 6]
mst_prim
naive_string_matcher: string: [0 0 0 0 1], key: [2 2 0 1 0], initial_trace: 0 trace | s:
1 | 2
naive_string_matcher
binary_search: key: [0.158 0.261 0.262 0.342 0.457 0.518 0.589 0.661 0.752 0.941 0.956], target: 0.189, initial_trace: (0, 10) trace | (low, high):
(0, 5), (0, 2), (0, 1) | (1, 1)
binary_search
dfs: A: [[0 0 0 0 1 0 1 1 0 0 0 0], [0 1 0 0 0 1 0 0 1 0 0 1], [0 1 0 1 1 1 1 1 0 0 1 1], [1 1 0 0 0 1 1 0 1 0 0 1], [1 0 0 1 1 0 1 0 1 0 0 0], [1 1 1 1 1 1 1 1 0 1 0 0], [0 0 0 0 1 1 0 1 1 0 1 0], [0 1 0 1 0 1 1 1 0 0 0 1], [1 1 0 0 0 0 1 0 0 1 0 0], [1 1 1 0 0 1 0 1 1 1 1 1], [1 0 1 1 1 1 0 0 0 0 1 0], [1 0 1 1 1 1 1 0 1 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 0 5 6 7 8 9 10 11], [0 1 2 3 0 5 6 7 8 9 10 11], [0 1 2 4 0 5 6 7 8 9 10 11], [0 1 2 4 0 5 6 7 8 9 10 11], [0 3 2 4 0 5 6 7 8 9 10 11], [0 3 2 4 0 5 6 7 8 9 10 11], [0 3 2 4 0 1 6 7 8 9 10 11], [0 3 2 4 0 1 6 7 8 9 10 11], [0 3 5 4 0 1 6 7 8 9 10 11], [0 3 5 4 0 1 6 7 8 9 10 11], [0 3 5 4 0 1 2 7 8 9 10 11], [0 3 5 4 0 1 2 7 8 9 10 11], [0 3 5 4 0 1 2 6 8 9 10 11], [0 3 5 4 0 1 2 6 8 9 10 11], [0 3 5 4 0 1 2 6 8 9 10 7], [0 3 5 4 0 1 2 6 8 9 10 7], [0 3 5 4 0 1 2 6 11 9 10 7], [0 3 5 4 0 1 2 6 11 9 10 7], [0 3 5 4 0 1 2 6 11 8 10 7], [0 3 5 4 0 1 2 6 11 8 10 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7], [0 3 5 4 0 1 2 6 11 8 9 7] | [0 3 5 4 0 1 2 6 11 8 9 7]
dfs
segments_intersect: x: [0.966 0.035 0.286 0.058], y: [0.267 0.55 0.555 0.583] intersect:
0
segments_intersect
quicksort: key: [0.285 0.384 0.803 0.056 0.754 0.868 0.16 0.132 0.626 0.59], initial_trace: [0.285 0.384 0.803 0.056 0.754 0.868 0.16 0.132 0.626 0.59] trace | pred:
[0.285 0.384 0.803 0.056 0.754 0.868 0.16 0.132 0.626 0.59], [0.285 0.384 0.803 0.056 0.754 0.868 0.16 0.132 0.626 0.59], [0.285 0.384 0.056 0.803 0.754 0.868 0.16 0.132 0.626 0.59], [0.285 0.384 0.056 0.803 0.754 0.868 0.16 0.132 0.626 0.59], [0.285 0.384 0.056 0.803 0.754 0.868 0.16 0.132 0.626 0.59], [0.285 0.384 0.056 0.16 0.754 0.868 0.803 0.132 0.626 0.59], [0.285 0.384 0.056 0.16 0.132 0.868 0.803 0.754 0.626 0.59], [0.285 0.384 0.056 0.16 0.132 0.868 0.803 0.754 0.626 0.59], [0.285 0.384 0.056 0.16 0.132 0.59 0.803 0.754 0.626 0.868], [0.285 0.384 0.056 0.16 0.132 0.59 0.803 0.754 0.626 0.868], [0.285 0.384 0.056 0.16 0.132 0.59 0.803 0.754 0.626 0.868], [0.056 0.384 0.285 0.16 0.132 0.59 0.803 0.754 0.626 0.868], [0.056 0.384 0.285 0.16 0.132 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.285 0.16 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.285 0.16 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.285 0.16 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.285 0.16 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.285 0.16 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.803 0.754 0.626 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.626 0.754 0.803 0.868], [0.056 0.132 0.16 0.285 0.384 0.59 0.626 0.754 0.803 0.868] | [0.056 0.132 0.16 0.285 0.384 0.59 0.626 0.754 0.803 0.868]
quicksort
floyd_warshall: A: [[0.632 0 0 0.688 0.144 0 0.399 0 0 0.55], [0 0 0 0 0 0 0 0 0.172 0], [0 0 0 0 0.513 0 0 0 0 0], [0.688 0 0 0.882 0 0 0 0 0.27 0], [0.144 0 0.513 0 0 0 0 0 0 0.482], [0 0 0 0 0 0.382 0 0 0 0.042], [0.399 0 0 0 0 0 0 0 0 0.075], [0 0 0 0 0 0 0 0.94 0 0.436], [0 0.172 0 0.27 0 0 0 0 0.907 0], [0.55 0 0 0 0.482 0.042 0.075 0.436 0 0.371]], initial_trace: [[0 0 0 0 0 0 0 0 0 0], [1 1 1 1 1 1 1 1 1 1], [2 2 2 2 2 2 2 2 2 2], [3 3 3 3 3 3 3 3 3 3], [4 4 4 4 4 4 4 4 4 4], [5 5 5 5 5 5 5 5 5 5], [6 6 6 6 6 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 8 8 8 8 8 8], [9 9 9 9 9 9 9 9 9 9]] trace | Pi:
[[0 0 0 0 0 0 0 0 0 0], [1 1 1 1 1 1 1 1 1 1], [2 2 2 2 2 2 2 2 2 2], [3 3 3 3 0 3 0 3 3 0], [4 4 4 0 4 4 0 4 4 4], [5 5 5 5 5 5 5 5 5 5], [6 6 6 0 0 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 8 8 8 8 8 8], [9 9 9 0 9 9 9 9 9 9]], [[0 0 0 0 0 0 0 0 0 0], [1 1 1 1 1 1 1 1 1 1], [2 2 2 2 2 2 2 2 2 2], [3 3 3 3 0 3 0 3 3 0], [4 4 4 0 4 4 0 4 4 4], [5 5 5 5 5 5 5 5 5 5], [6 6 6 0 0 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7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4 0 0 6 6 6 3 6], [7 7 7 7 7 7 7 7 7 7], [3 8 4 8 0 8 0 8 1 6], [6 9 4 0 9 9 9 9 3 5]], [[4 0 4 0 0 0 0 0 3 6], [1 1 1 1 1 1 1 1 1 1], [4 2 2 0 2 2 0 2 3 4], [3 3 4 3 0 3 0 3 3 6], [4 4 4 0 4 4 0 4 3 4], [5 5 5 5 5 5 5 5 5 5], [6 6 4 0 0 6 6 6 3 6], [7 7 7 7 7 7 7 7 7 7], [3 8 4 8 0 8 0 8 1 6], [6 9 4 0 9 9 9 9 3 5]] | [[4 8 4 0 0 9 0 9 3 6], [3 1 4 8 0 9 0 9 1 6], [4 8 2 0 2 9 0 9 3 4], [3 8 4 8 0 9 0 9 3 6], [4 8 4 0 4 9 0 9 3 4], [6 8 4 0 9 9 9 9 3 5], [6 8 4 0 0 9 6 9 3 6], [6 8 4 0 9 9 9 9 3 7], [3 8 4 8 0 9 0 9 1 6], [6 8 4 0 9 9 9 9 3 5]]
floyd_warshall
mst_prim: s: 2, A: [[0.136 0 0 0], [0 0 0 0], [0 0 0.757 0], [0 0 0 0]], initial_trace: [0 1 2 3] trace | pi:
| [0 1 2 3]
mst_prim
activity_selector: s: [0.328 0.263 0.663 0.154 0.162 0.005 0.011 0.61 0.591 0.474 0.912 0.675 0.587 0.022 0.195 0.393 0.18 0.119 0.239 0.225 0.326 0.775 0.518], f: [0.387 0.727 0.886 0.481 0.269 0.012 0.608 0.911 0.779 0.746 0.965 0.73 0.758 0.758 0.993 0.423 0.594 0.225 0.247 0.75 0.768 0.952 0.73], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 1 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 1 0] | [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 1 0]
activity_selector
bubble_sort: key: [0.508 0.024 0.1 0.208], initial_trace: [0.508 0.024 0.1 0.208] trace | pred:
[0.508 0.024 0.1 0.208], [0.508 0.024 0.1 0.208], [0.024 0.508 0.1 0.208], [0.024 0.508 0.1 0.208], [0.024 0.1 0.508 0.208] | [0.024 0.1 0.208 0.508]
bubble_sort
activity_selector: s: [0.77 0.372 0.124 0.509 0.159 0.061 0.015 0.607 0.096 0.247 0.644 0.651 0.176 0.27 0.209 0.645 0.766 0.031 0.259 0.441 0.634 0.663 0.719 0.324 0.073 0.811 0.341 0.125 0.308 0.481 0.631], f: [0.861 0.933 0.586 0.975 0.94 0.362 0.736 0.953 0.683 0.389 0.778 0.809 0.482 0.491 0.257 0.909 0.847 0.959 0.579 0.469 0.923 0.734 0.792 0.722 0.917 0.855 0.541 0.503 0.618 0.555 0.773], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 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