Datasets:

question
stringlengths
65
3.42k
answer
stringlengths
3
5.8k
algo_name
stringclasses
30 values
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: [0 3 2 3 1 3 3 1 2 2 1 1 2 2 1 2 2 3 1 1 2 2 1], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 6 | 7
kmp_matcher
quicksort: key: [0.798 0.544 0.221 0.585 0.947], initial_trace: [0.798 0.544 0.221 0.585 0.947] trace | pred:
[0.798 0.544 0.221 0.585 0.947], [0.798 0.544 0.221 0.585 0.947], [0.798 0.544 0.221 0.585 0.947], [0.798 0.544 0.221 0.585 0.947], [0.798 0.544 0.221 0.585 0.947], [0.544 0.798 0.221 0.585 0.947], [0.544 0.221 0.798 0.585 0.947], [0.544 0.221 0.585 0.798 0.947], [0.544 0.221 0.585 0.798 0.947] | [0.221 0.544 0.585 0.798 0.947]
quicksort
naive_string_matcher: string: [0 0 0 0 0 0 0 0 1 1], key: [1 2 3 0 3 0 2 2 0 3], initial_trace: 0 trace | s:
1, 2, 3 | 3
naive_string_matcher
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [1 1 2 2 0 1 3 3 2 1 3 2], initial_trace: 0 trace | s:
0, 0, 0, 1, 2, 3, 4, 5, 6, 6 | 7
kmp_matcher
floyd_warshall: A: [[0 0.845 0.394 0 0], [0.845 0.924 0 0 0.211], [0.394 0 0 0 0.364], [0 0 0 0 0], [0 0.211 0.364 0 0.703]], initial_trace: [[0 0 0 0 0], [1 1 1 1 1], [2 2 2 2 2], [3 3 3 3 3], [4 4 4 4 4]] trace | Pi:
[[0 0 0 0 0], [1 1 0 1 1], [2 0 2 2 2], [3 3 3 3 3], [4 4 4 4 4]], [[0 0 0 0 1], [1 1 0 1 1], [2 0 2 2 2], [3 3 3 3 3], [1 4 4 4 1]], [[0 0 0 0 2], [1 1 0 1 1], [2 0 2 2 2], [3 3 3 3 3], [2 4 4 4 1]] | [[0 0 0 0 2], [1 4 4 1 1], [2 4 2 2 2], [3 3 3 3 3], [2 4 4 4 1]]
floyd_warshall
task_scheduling: d: [25 7 15 13 20 22 8 20 25 8 11 3 21 21 27 11 8 26 12 12 12 18 11 9 23 4 28 13], w: [0.752 0.721 0.972 0.093 0.026 0.492 0.842 0.686 0.935 0.752 0.429 0.314 0.59 0.639 0.789 0.922 0.952 0.321 0.495 0.351 0.568 0.553 0.151 0.689 0.379 0.825 0.134 0.753], 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] 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 0 0 0], [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 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 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 1 1 0 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 1 1 0 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 1 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1], [1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1], [1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1], [1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1], [1 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0.831 0.335 0.39 0.908 0.124 0.976 0.722], initial_trace: [0.053 0.717 0.767 0.356 0.516 0.782 0.55 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722] trace | pred:
[0.053 0.717 0.767 0.356 0.516 0.782 0.55 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.717 0.767 0.356 0.516 0.782 0.55 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.717 0.767 0.516 0.782 0.55 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.516 0.717 0.767 0.782 0.55 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.516 0.717 0.767 0.782 0.55 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.516 0.55 0.717 0.767 0.782 0.53 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.516 0.53 0.55 0.717 0.767 0.782 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.516 0.53 0.55 0.717 0.767 0.782 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.356 0.516 0.53 0.55 0.717 0.767 0.782 0.816 0.948 0.21 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.356 0.516 0.53 0.55 0.717 0.767 0.782 0.816 0.948 0.449 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.356 0.449 0.516 0.53 0.55 0.717 0.767 0.782 0.816 0.948 0.325 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.325 0.356 0.449 0.516 0.53 0.55 0.717 0.767 0.782 0.816 0.948 0.541 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.325 0.356 0.449 0.516 0.53 0.541 0.55 0.717 0.767 0.782 0.816 0.948 0.499 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.717 0.767 0.782 0.816 0.948 0.279 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.279 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.717 0.767 0.782 0.816 0.948 0.58 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.279 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.717 0.767 0.782 0.816 0.948 0.837 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.21 0.279 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.717 0.767 0.782 0.816 0.837 0.948 0.079 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.079 0.21 0.279 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.717 0.767 0.782 0.816 0.837 0.948 0.655 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.079 0.21 0.279 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.837 0.948 0.185 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.079 0.185 0.21 0.279 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.837 0.948 0.303 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.837 0.948 0.869 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.837 0.869 0.948 0.003 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.003 0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.837 0.869 0.948 0.831 0.335 0.39 0.908 0.124 0.976 0.722], [0.003 0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.831 0.837 0.869 0.948 0.335 0.39 0.908 0.124 0.976 0.722], [0.003 0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.335 0.356 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.831 0.837 0.869 0.948 0.39 0.908 0.124 0.976 0.722], [0.003 0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.335 0.356 0.39 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.831 0.837 0.869 0.948 0.908 0.124 0.976 0.722], [0.003 0.053 0.079 0.185 0.21 0.279 0.303 0.325 0.335 0.356 0.39 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.831 0.837 0.869 0.908 0.948 0.124 0.976 0.722], [0.003 0.053 0.079 0.124 0.185 0.21 0.279 0.303 0.325 0.335 0.356 0.39 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.831 0.837 0.869 0.908 0.948 0.976 0.722], [0.003 0.053 0.079 0.124 0.185 0.21 0.279 0.303 0.325 0.335 0.356 0.39 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.767 0.782 0.816 0.831 0.837 0.869 0.908 0.948 0.976 0.722] | [0.003 0.053 0.079 0.124 0.185 0.21 0.279 0.303 0.325 0.335 0.356 0.39 0.449 0.499 0.516 0.53 0.541 0.55 0.58 0.655 0.717 0.722 0.767 0.782 0.816 0.831 0.837 0.869 0.908 0.948 0.976]
insertion_sort
task_scheduling: d: [8 15 9 9 8 11 10 19 6 9 8 11 23 10 23 27 9 3 8 6 7 21 14 19 21 4 14 16], w: [0.452 0.361 0.212 0.12 0.862 0.954 0.704 0.955 0.519 0.622 0.17 0.484 0.957 0.693 0.252 0.301 0.384 0.207 0.182 0.075 0.983 0.362 0.956 0.637 0.558 0.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 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1], [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1] | [0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1]
task_scheduling
graham_scan: x: [-1.29 1.21 -1 1.11 -1.3 -0.99 -1.01 0.372 0.236 0.167 -1.94], y: [0.594 0.514 -0.942 0.243 1.44 -0.812 0.651 -1.48 -0.173 -1.31 0.287], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[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 1 0 0 0 1 0 0 0], [0 1 0 1 0 0 0 1 0 0 0], [0 1 0 1 0 0 0 1 1 0 0], [0 1 0 1 0 0 0 1 0 0 0], [0 1 0 1 1 0 0 1 0 0 0], [0 1 0 1 1 0 1 1 0 0 0], [0 1 0 1 1 0 0 1 0 0 0], [1 1 0 1 1 0 0 1 0 0 0], [1 1 0 1 1 0 0 1 0 1 0], [1 1 0 1 1 0 0 1 0 0 0], [0 1 0 1 1 0 0 1 0 0 0], [0 1 0 1 1 0 0 1 0 0 1], [0 1 0 1 1 1 0 1 0 0 1], [0 1 0 1 1 0 0 1 0 0 1] | [0 1 1 1 1 0 0 1 0 0 1]
graham_scan
bridges: A: [[1 0 0 0 0], [0 1 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]], initial_trace: [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]] trace | is_bridge:
[[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]] | [[0 -1 -1 -1 -1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]]
bridges
task_scheduling: d: [19 5 26 3 6 13 11 26 22 7 10 19 16 12 12 2 9 20 6 14 10 7 7 16 15 4 28 1], w: [0.495 0.522 0.986 0.497 0.97 0.008 0.469 0.726 0.352 0.577 0.322 0.902 0.322 0.892 0.251 0.033 0.684 0.993 0.415 0.826 0.623 0.29 0.137 0.93 0.362 0.29 0.092 0.78], 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] trace | selected:
[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 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 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 0 0 0 0 1 0 0 0 0], [0 0 1 0 1 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 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0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 0 1 1 0 1 1 0 0 1 1 0 0 0], [1 0 1 0 1 0 0 1 1 0 0 1 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 0], [1 0 1 0 1 0 0 1 1 0 0 1 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 0] | [1 0 1 0 1 0 0 1 1 0 0 1 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 0]
task_scheduling
graham_scan: x: [-0.676 0.338 -1.41 0.797 -0.547 -1.55 1.23 -1.12 -0.327 0.889 -1.92 -1.3 -1.21 -0.916 1.31 -0.834 -0.423 -1.39 1.34 -0.473 -0.322 -0.588 -1.04], y: [-0.304 0.432 -0.759 -0.121 -1.37 -0.235 -0.574 0.226 -1.95 -1.07 -0.103 -0.115 -1.47 0.413 -1 -0.831 -0.6 0.595 -0.617 0.091 0.576 -0.569 -1.25], 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 | in_hull:
[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 1 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 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 0 0 0 0 1 0 0 0 0 0 1 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 0 0 0], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0], [0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0], [0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0], [0 1 0 0 0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[0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 0], [0 1 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 0], [0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 0], [0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 1], [0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 1 0 1 0 0] | [0 1 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 0]
graham_scan
topological_sort: A: [[0 1 0 1 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 0], [0 0 0 0 1 0 0 1 0 0 0 0 0 0 0], [0 1 1 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 1 0 1 0 1 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 1 0 0 0 1 0 1 0 1 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 1 1 1 1 1 0 1 0 0 1 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 0 0 0 0], [1 0 0 1 1 0 1 0 0 1 0 0 0 1 0], [1 0 0 0 0 1 1 0 0 0 0 0 0 1 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 1 1 1 1 0 0 1 0 0 0 1 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], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 1 8 9 10 11 12 13 14], 7, [0 1 2 3 4 5 6 1 8 7 10 11 12 13 14], 9, [0 1 2 3 4 9 6 1 8 7 10 11 12 13 14], 5, [0 1 2 3 4 9 6 1 8 7 10 11 12 13 14], 5, [0 1 2 3 4 9 6 1 8 7 10 11 12 5 14], 13, [0 1 2 3 13 9 6 1 8 7 10 11 12 5 14], 4, [0 1 4 3 13 9 6 1 8 7 10 11 12 5 14], 2, [0 1 4 2 13 9 6 1 8 7 10 11 12 5 14], 3, [3 1 4 2 13 9 6 1 8 7 10 11 12 5 14], 0, [3 1 4 2 13 9 6 1 8 7 10 11 12 5 14], 0, [3 1 4 2 13 9 6 1 8 7 10 11 12 5 14], 0, [3 1 4 2 13 9 0 1 8 7 10 11 12 5 14], 6, [3 1 4 2 13 9 0 1 8 7 10 11 12 5 14], 6, [3 1 4 2 13 9 0 1 8 7 10 11 12 5 14], 6, [3 1 4 2 13 9 0 1 8 7 10 11 12 5 14], 6, [3 1 4 2 13 9 0 1 8 7 10 11 12 5 14], 6, [3 1 4 2 13 9 0 1 8 7 10 11 12 5 6], 14, [3 1 4 2 13 9 0 1 8 7 10 11 14 5 6], 12, [3 1 4 2 13 9 0 1 12 7 10 11 14 5 6], 8, [3 1 4 2 13 9 0 1 12 7 10 11 14 5 6], 8, [3 1 4 2 13 9 0 1 12 7 10 11 14 5 6], 8, [3 1 4 2 13 9 0 1 12 7 8 11 14 5 6], 10, [3 1 4 2 13 9 0 1 12 7 8 11 14 5 6], 10, [3 1 4 2 13 9 0 1 12 7 8 11 14 5 6], 10 | [3 1 4 2 13 9 0 1 12 7 8 10 14 5 6], 11
topological_sort
quickselect: key: [0.066 0.434 0.26 0.832 0.549 0.801 0.989 0.941 0.547 0.254 0.898 0.159 0.739 0.89 0.585 0.524 0.159 0.099 0.331 0.756 0.107 0.802 0.519 0.654 0.361 0.824 0.045 0.615], initial_trace: 27 trace | pivot:
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 14, 14 | 4
quickselect
strongly_connected_components: A: [[0 1 0 1 0 0 0 0 0 0 0], [1 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 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 1 0 0 0], [0 1 0 0 0 0 0 1 0 0 0], [0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 1 0 0 0 1 0], [0 0 1 0 0 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | scc_id:
[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 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 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 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 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 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 1 2 3 4 5 6 7 4 9 10], [0 0 2 3 4 5 6 7 4 9 10], [0 0 2 3 4 5 6 0 4 9 10], [0 0 2 0 4 5 6 0 4 9 10], [0 0 2 0 4 5 6 0 4 9 10], [0 0 2 0 4 5 6 0 4 9 10] | [0 0 2 0 4 5 6 0 4 9 10]
strongly_connected_components
task_scheduling: d: [9 3 10 9 5 6 8 1 6 10 11], w: [0.886 0.398 0.884 0.496 0.867 0.703 0.769 0.275 0.897 0.984 0.911], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 1 1], [0 0 0 0 0 0 0 0 1 1 1], [1 0 0 0 0 0 0 0 1 1 1], [1 0 1 0 0 0 0 0 1 1 1], [1 0 1 0 0 0 0 0 1 1 1], [1 0 1 0 0 0 1 0 1 1 1], [1 0 1 0 0 0 1 0 1 1 1], [1 0 1 1 0 0 1 0 1 1 1], [1 0 1 1 0 0 1 0 1 1 1] | [1 0 1 1 0 0 1 0 1 1 1]
task_scheduling
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [3 3 3 0 3 3 1 0 3 0 0 0 3 0 0 1 3 3 3], initial_trace: 0 trace | s:
0, 0, 0, 0 | 0
kmp_matcher
activity_selector: s: [0.23 0.02 0.057 0.096 0.284 0.924 0.74 0.321 0.194 0.395 0.091 0.013 0.017 0.336 0.162 0.333 0.308 0.247 0.505], f: [0.457 0.379 0.807 0.959 0.759 0.952 0.979 0.888 0.963 0.675 0.436 0.086 0.792 0.405 0.606 0.739 0.748 0.91 0.963], initial_trace: [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 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 1 0 0 0 0 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 0 0 0 0 1 0 1 0 0 0 0 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 0 0 0 0 1 0 1 0 0 0 0 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 0 0 0 0 1 0 1 0 0 0 0 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 0 0 0 0 1 0 1 0 0 0 0 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 0 0 0 0 1 0 1 0 0 0 0 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 1 0 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0] | [0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0]
activity_selector
dijkstra: s: 13, A: [[0.129 0 0.443 0 0 0 0 0 0 0 0 0 0 0 0.346 0 0 0 0.565 0 0.414 0.19 0 0.659 0 0 0 0.673], [0 0.316 0 0 0.167 0 0 0 0 0 0 0 0.21 0 0.318 0 0 0.755 0 0 0 0 0 0 0 0 0 0], [0.443 0 0 0 0 0.389 0.112 0 0 0 0.178 0.16 0 0 0.182 0 0 0 0.547 0 0 0 0 0 0 0 0 0.213], [0 0 0 0.762 0 0 0 0 0 0 0.113 0 0 0 0 0 0 0.215 0 0 0 0 0 0.186 0 0 0.701 0], [0 0.167 0 0 0.469 0 0.561 0 0 0 0 0.698 0 0.661 0 0 0.12 0 0 0.7 0 0 0 0.398 0 0 0 0], [0 0 0.389 0 0 0 0 0 0 0 0.712 0.262 0 0 0 0.46 0 0.914 0 0 0 0 0.33 0 0 0 0 0], [0 0 0.112 0 0.561 0 0 0 0.907 0.767 0 0 0 0.385 0.335 0 0.678 0 0 0 0 0 0 0 0 0 0.351 0], [0 0 0 0 0 0 0 0.271 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.769 0.372], [0 0 0 0 0 0 0.907 0 0.478 0 0 0 0.755 0 0 0.136 0 0 0.535 0 0 0 0 0.444 0 0.383 0.099 0], [0 0 0 0 0 0 0.767 0 0 0.932 0 0.556 0.277 0 0 0 0 0.689 0 0 0 0 0 0 0 0 0 0], [0 0 0.178 0.113 0 0.712 0 0 0 0 0 0 0.233 0 0.344 0 0.365 0 0 0 0.758 0.558 0.204 0 0 0.665 0 0], [0 0 0.16 0 0.698 0.262 0 0 0 0.556 0 0 0 0 0 0.562 0 0 0 0 0 0 0 0 0 0 0 0.417], [0 0.21 0 0 0 0 0 0 0.755 0.277 0.233 0 0 0 0 0 0 0 0 0 0.26 0 0.118 0 0.499 0 0.218 0], [0 0 0 0 0.661 0 0.385 0 0 0 0 0 0 0.537 0.672 0.871 0.535 0 0 0 0 0 0.741 0 0 0.319 0 0], [0.346 0.318 0.182 0 0 0 0.335 0 0 0 0.344 0 0 0.672 0.932 0 0 0.509 0 0 0 0 0.563 0 0.453 0 0.658 0.443], [0 0 0 0 0 0.46 0 0 0.136 0 0 0.562 0 0.871 0 0.99 0 0.565 0 0.626 0 0 0 0 0.507 0 0 0.954], [0 0 0 0 0.12 0 0.678 0 0 0 0.365 0 0 0.535 0 0 0 0 0 0 0 0 0.624 0.305 0.451 0 0 0.824], [0 0.755 0 0.215 0 0.914 0 0 0 0.689 0 0 0 0 0.509 0.565 0 0.8 0 0 0 0 0.174 0.763 0 0 0 0], [0.565 0 0.547 0 0 0 0 0 0.535 0 0 0 0 0 0 0 0 0 0 0.092 0 0 0.427 0 0.282 0 0 0], [0 0 0 0 0.7 0 0 0 0 0 0 0 0 0 0 0.626 0 0 0.092 0 0 0 0.395 0 0 0 0 0], [0.414 0 0 0 0 0 0 0 0 0 0.758 0 0.26 0 0 0 0 0 0 0 0.779 0 0 0 0.153 0.475 0 0], [0.19 0 0 0 0 0 0 0 0 0 0.558 0 0 0 0 0 0 0 0 0 0 0.237 0 0.282 0 0 0 0.034], [0 0 0 0 0 0.33 0 0 0 0 0.204 0 0.118 0.741 0.563 0 0.624 0.174 0.427 0.395 0 0 0.907 0 0 0 0 0], [0.659 0 0 0.186 0.398 0 0 0 0.444 0 0 0 0 0 0 0 0.305 0.763 0 0 0 0.282 0 0.323 0.353 0.039 0 0.837], [0 0 0 0 0 0 0 0 0 0 0 0 0.499 0 0.453 0.507 0.451 0 0.282 0 0.153 0 0 0.353 0 0 0 0], [0 0 0 0 0 0 0 0 0.383 0 0.665 0 0 0.319 0 0 0 0 0 0 0.475 0 0 0.039 0 0.038 0 0], [0 0 0 0.701 0 0 0.351 0.769 0.099 0 0 0 0.218 0 0.658 0 0 0 0 0 0 0 0 0 0 0 0.892 0], [0.673 0 0.213 0 0 0 0 0.372 0 0 0 0.417 0 0 0.443 0.954 0.824 0 0 0 0 0.034 0 0.837 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 23 24 25 26 27] trace | pi:
[0 1 2 3 13 5 13 7 8 9 10 11 12 13 13 13 13 17 18 19 20 21 13 23 24 13 26 27], [0 1 2 3 13 5 13 7 25 9 25 11 12 13 13 13 13 17 18 19 25 21 13 25 24 13 26 27], [23 1 2 23 13 5 13 7 25 9 25 11 12 13 13 13 13 23 18 19 25 23 13 25 23 13 26 23], [23 1 6 23 13 5 13 7 25 6 25 11 12 13 13 13 13 23 18 19 25 23 13 25 23 13 6 23], [2 1 6 23 13 2 13 7 25 6 2 2 12 13 13 13 13 23 2 19 25 23 13 25 23 13 6 2], [2 1 6 23 16 2 13 7 25 6 2 2 12 13 13 13 13 23 2 19 25 23 13 25 23 13 6 2], [2 1 6 23 16 2 13 7 25 6 3 2 12 13 13 13 13 3 2 19 25 23 13 25 23 13 6 2], [21 1 6 23 16 2 13 7 25 6 3 2 12 13 13 13 13 3 2 19 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 7 25 6 3 2 12 13 13 13 13 3 2 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 7 25 6 3 2 12 13 13 13 13 3 2 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 7 25 6 3 2 10 13 13 13 13 3 2 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 7 25 6 3 2 10 13 13 13 13 3 2 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 10 13 13 13 13 3 2 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 10 13 13 8 13 3 2 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 10 13 13 8 13 3 24 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 10 13 13 8 13 3 24 4 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 6 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 12 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 12 3 2 22 13 13 8 13 3 24 22 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 12 3 2 22 13 13 8 13 3 24 18 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 12 3 2 22 13 13 8 13 3 24 18 25 23 13 25 23 13 6 21], [21 4 6 23 16 2 13 27 25 12 3 2 22 13 13 8 13 3 24 18 25 23 13 25 23 13 6 21] | [21 4 6 23 16 2 13 27 25 12 3 2 22 13 13 8 13 3 24 18 25 23 13 25 23 13 6 21]
dijkstra
quicksort: key: [0.626 0.843 0.343 0.021], initial_trace: [0.626 0.843 0.343 0.021] trace | pred:
[0.626 0.843 0.343 0.021], [0.626 0.843 0.343 0.021], [0.021 0.843 0.343 0.626], [0.021 0.843 0.343 0.626], [0.021 0.343 0.843 0.626] | [0.021 0.343 0.626 0.843]
quicksort
dfs: A: [[1 1 0 0], [0 0 0 0], [0 0 1 0], [1 1 1 1]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 3] | [0 0 2 3]
dfs
dag_shortest_paths: s: 2, A: [[0 0 0 0], [0 0 0 0], [0.817 0.732 0 0], [0 0 0 0]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [2 2 2 3] | [2 2 2 3]
dag_shortest_paths
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [2 0 3 0 1 1 0 0 0 2 1 0], initial_trace: 0 trace | s:
1, 2, 3, 4, 4, 5 | 5
naive_string_matcher
activity_selector: s: [0.281 0.327 0.594 0.004], f: [0.857 0.755 0.889 0.23], initial_trace: [0 0 0 0] trace | selected:
[0 0 0 1], [0 1 0 1], [0 1 0 1] | [0 1 0 1]
activity_selector
bridges: A: [[1 0 0 0 1], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [1 0 0 0 0]], initial_trace: [[0 -1 -1 -1 0], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [0 -1 -1 -1 0]] trace | is_bridge:
[[0 -1 -1 -1 0], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [0 -1 -1 -1 0]], [[0 -1 -1 -1 0], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [0 -1 -1 -1 0]], [[0 -1 -1 -1 0], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [0 -1 -1 -1 0]], [[0 -1 -1 -1 0], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [0 -1 -1 -1 0]], [[0 -1 -1 -1 0], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [0 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]], [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]] | [[0 -1 -1 -1 1], [-1 0 -1 -1 -1], [-1 -1 0 -1 -1], [-1 -1 -1 0 -1], [1 -1 -1 -1 0]]
bridges
kmp_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 1 1 1 1 1], key: [1 2 0 0 3 0 3 3 0 3 0 3 1 3 1 1 3 1 3 1 0 3 2 0 3 3 0 3], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4 | 5
kmp_matcher
insertion_sort: key: [0.527 0.957 0.796 0.498 0.264 0.66 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], initial_trace: [0.527 0.957 0.796 0.498 0.264 0.66 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125] trace | pred:
[0.527 0.957 0.796 0.498 0.264 0.66 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.527 0.796 0.957 0.498 0.264 0.66 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.498 0.527 0.796 0.957 0.264 0.66 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.264 0.498 0.527 0.796 0.957 0.66 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.264 0.498 0.527 0.66 0.796 0.957 0.08 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.498 0.527 0.66 0.796 0.957 0.695 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.498 0.527 0.66 0.695 0.796 0.957 0.432 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.432 0.498 0.527 0.66 0.695 0.796 0.957 0.592 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.432 0.498 0.527 0.592 0.66 0.695 0.796 0.957 0.607 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.432 0.498 0.527 0.592 0.607 0.66 0.695 0.796 0.957 0.29 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.29 0.432 0.498 0.527 0.592 0.607 0.66 0.695 0.796 0.957 0.586 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.796 0.957 0.927 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.796 0.927 0.957 0.731 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.08 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.927 0.957 0.013 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.08 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.927 0.957 0.109 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.08 0.109 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.927 0.957 0.052 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.927 0.957 0.841 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.264 0.29 0.432 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.927 0.957 0.492 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.264 0.29 0.432 0.492 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.927 0.957 0.921 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.264 0.29 0.432 0.492 0.498 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.921 0.927 0.957 0.518 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.264 0.29 0.432 0.492 0.498 0.518 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.921 0.927 0.957 0.188 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.188 0.264 0.29 0.432 0.492 0.498 0.518 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.921 0.927 0.957 0.316 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.188 0.264 0.29 0.316 0.432 0.492 0.498 0.518 0.527 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.921 0.927 0.957 0.565 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.188 0.264 0.29 0.316 0.432 0.492 0.498 0.518 0.527 0.565 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.921 0.927 0.957 0.841 0.547 0.125], [0.013 0.052 0.08 0.109 0.188 0.264 0.29 0.316 0.432 0.492 0.498 0.518 0.527 0.565 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.841 0.921 0.927 0.957 0.547 0.125], [0.013 0.052 0.08 0.109 0.188 0.264 0.29 0.316 0.432 0.492 0.498 0.518 0.527 0.547 0.565 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.841 0.921 0.927 0.957 0.125] | [0.013 0.052 0.08 0.109 0.125 0.188 0.264 0.29 0.316 0.432 0.492 0.498 0.518 0.527 0.547 0.565 0.586 0.592 0.607 0.66 0.695 0.731 0.796 0.841 0.841 0.921 0.927 0.957]
insertion_sort
segments_intersect: x: [0.68 0.392 0.496 0.646], y: [0.145 0.263 0.758 0.854] intersect:
0
segments_intersect
bellman_ford: s: 11, A: [[0.062 0 0 0 0 0 0.156 0 0 0.541 0 0 0 0.484 0 0 0.584 0.453 0], [0 0.756 0 0.429 0.373 0 0 0 0.35 0.56 0 0 0 0 0 0 0.607 0 0.14], [0 0 0 0 0 0 0 0.597 0 0.422 0 0.519 0.42 0 0 0 0.139 0 0], [0 0.429 0 0.636 0 0 0 0 0 0 0 0 0.208 0 0 0 0 0 0], [0 0.373 0 0 0 0 0 0 0 0 0.352 0 0 0 0 0.082 0 0 0], [0 0 0 0 0 0 0 0 0 0.218 0 0 0 0.64 0 0 0.613 0 0], [0.156 0 0 0 0 0 0 0.622 0 0.567 0 0.28 0 0 0 0 0.724 0.616 0.153], [0 0 0.597 0 0 0 0.622 0.428 0 0.643 0 0 0 0 0 0 0 0.305 0], [0 0.35 0 0 0 0 0 0 0.589 0 0.402 0 0 0 0 0 0.613 0 0], [0.541 0.56 0.422 0 0 0.218 0.567 0.643 0 0.972 0 0.378 0 0 0.197 0 0 0 0], [0 0 0 0 0.352 0 0 0 0.402 0 0 0.491 0.511 0.272 0 0 0 0 0], [0 0 0.519 0 0 0 0.28 0 0 0.378 0.491 0.22 0 0 0 0 0 0 0.386], [0 0 0.42 0.208 0 0 0 0 0 0 0.511 0 0.473 0.617 0 0 0 0 0], [0.484 0 0 0 0 0.64 0 0 0 0 0.272 0 0.617 0 0 0 0 0.41 0], [0 0 0 0 0 0 0 0 0 0.197 0 0 0 0 0.515 0 0 0 0.594], [0 0 0 0 0.082 0 0 0 0 0 0 0 0 0 0 0 0 0.754 0.095], [0.584 0.607 0.139 0 0 0.613 0.724 0 0.613 0 0 0 0 0 0 0 0.117 0 0.407], [0.453 0 0 0 0 0 0.616 0.305 0 0 0 0 0 0.41 0 0.754 0 0 0], [0 0.14 0 0 0 0 0.153 0 0 0 0 0.386 0 0 0.594 0.095 0.407 0 0.754]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[0 1 11 3 4 5 11 7 8 11 11 11 12 13 14 15 16 17 11], [6 18 11 3 10 9 11 6 10 11 11 11 2 10 9 18 2 6 11] | [6 18 11 1 15 9 11 6 1 11 11 11 2 10 9 18 2 0 11]
bellman_ford
dag_shortest_paths: s: 7, A: [[0 0 0 0.381 0 0 0 0.00825 0.71 0 0], [0.628 0 0 0 0.265 0 0.132 0 0 0 0], [0.243 0.837 0 0.0295 0.585 0.673 0 0.155 0 0 0], [0 0 0 0 0 0.75 0 0.986 0 0 0], [0.904 0 0 0.104 0 0.199 0 0 0.174 0 0.416], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.462 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.475 0 0 0 0.0646], [0 0 0.812 0.978 0 0 0.529 0.362 0 0 0.429], [0 0 0 0.312 0 0 0.661 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]
dag_shortest_paths
bellman_ford: s: 0, A: [[0 0.235 0.088 0 0], [0.235 0.758 0.7 0 0], [0.088 0.7 0 0 0], [0 0 0 0.598 0], [0 0 0 0 0.842]], initial_trace: [0 1 2 3 4] trace | pi:
| [0 0 0 3 4]
bellman_ford
naive_string_matcher: string: [0 0 0 1], key: [1 2 3 1], initial_trace: 0 trace | s:
| 0
naive_string_matcher
find_maximum_subarray_kadane: key: [-0.282 -0.351 0.041 0.434 0.593 -0.688 0.123 -0.317 -0.26 0.15], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (2, 2), (2, 3), (2, 4), (2, 4), (2, 4), (2, 4), (2, 4) | (2, 4)
find_maximum_subarray_kadane
graham_scan: x: [1.44 1.35 1.51 -0.316 -0.854 0.945 -0.601 0.929 -0.595 1.58], y: [0.495 -1.41 0.05 -0.315 -1.01 -1.08 1.79 -1.35 0.056 0.77], initial_trace: [0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 1 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 1], [1 1 1 0 0 0 0 0 0 1], [0 1 1 0 0 0 0 0 0 1], [0 1 1 0 0 0 1 0 0 1], [0 1 1 0 0 1 1 0 0 1], [0 1 1 0 0 0 1 0 0 1], [0 1 1 0 0 0 1 0 1 1], [0 1 1 1 0 0 1 0 1 1], [0 1 1 0 0 0 1 0 1 1], [0 1 1 0 0 0 1 0 0 1], [0 1 1 0 1 0 1 0 0 1] | [0 1 1 0 1 0 1 1 0 1]
graham_scan
strongly_connected_components: 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 1 0 0], [0 0 1 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], [0 0 0 0 1 0 0 0 1 0 0 1 0 0 1], [0 0 0 0 0 1 0 1 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 0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 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 0 0 0 1 0 0 0 1 0 1 1 0 0 1], [0 0 0 0 0 0 0 0 1 0 1 1 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 0 0 0 0 0 0 0 1 1 0 1 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 4 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 4 9 4 11 12 13 14], [0 1 2 3 4 5 6 7 4 9 4 4 12 13 14], [0 1 2 3 4 5 6 7 4 9 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 9 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 9 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 9 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 9 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 3 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4], [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4] | [0 1 2 13 4 5 6 7 4 4 4 4 12 13 4]
strongly_connected_components
topological_sort: A: [[0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1], [0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0], [0 1 0 1 0 0 1 0 0 0 0 0 1 0 1 0 1 0 0 1 1 0 1], [0 0 0 0 0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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], 16, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 16, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 19 20 21 22], 18, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 19 20 21 22], 18, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 18 20 21 22], 19, [0 1 2 3 19 5 6 7 8 9 10 11 12 13 14 15 16 17 16 18 20 21 22], 4, [0 1 2 3 19 5 6 7 8 9 10 11 12 13 14 15 16 17 16 18 20 21 22], 4, [0 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 20 21 22], 7, [0 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 20 21 22], 7, [0 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 22], 20, [0 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 22], 20, [0 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 22, [22 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 0, [22 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 0, [22 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 0, [22 1 2 3 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 0, [22 1 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 3, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 13 14 15 16 17 16 18 7 21 20], 1, [22 3 2 0 19 5 6 4 8 9 10 11 12 1 14 15 16 17 16 18 7 21 20], 13, [22 3 2 0 19 5 6 4 8 9 10 13 12 1 14 15 16 17 16 18 7 21 20], 11, [22 3 2 0 19 5 6 4 11 9 10 13 12 1 14 15 16 17 16 18 7 21 20], 8, [22 3 2 0 19 5 6 4 11 9 10 13 12 1 14 15 16 17 16 18 7 21 20], 8, [22 3 2 0 19 5 6 4 11 9 10 13 8 1 14 15 16 17 16 18 7 21 20], 12, [22 3 2 0 19 5 12 4 11 9 10 13 8 1 14 15 16 17 16 18 7 21 20], 6, [22 3 2 0 19 5 12 4 11 9 10 13 8 1 14 15 16 17 16 18 7 21 20], 6, [22 3 2 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 21 20], 14, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 21 20], 2, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 21 20], 2, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 21 20], 2, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 21 20], 2, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 21 20], 2, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 17 16 18 7 2 20], 21, [22 3 14 0 19 5 12 4 11 9 10 13 8 1 6 15 16 21 16 18 7 2 20], 17, [22 3 14 0 19 17 12 4 11 9 10 13 8 1 6 15 16 21 16 18 7 2 20], 5, [22 3 14 0 19 17 12 4 11 9 10 13 8 1 6 15 16 21 16 18 7 2 20], 5, [22 3 14 0 19 17 12 4 11 9 10 13 8 1 6 15 16 21 16 18 7 2 20], 5, [22 3 14 0 19 17 12 4 11 9 10 13 8 1 6 15 16 21 16 18 7 2 20], 5, [22 3 14 0 19 17 12 4 11 9 10 13 8 1 6 5 16 21 16 18 7 2 20], 15, [22 3 14 0 19 17 12 4 11 15 10 13 8 1 6 5 16 21 16 18 7 2 20], 9, [22 3 14 0 19 17 12 4 11 15 10 13 8 1 6 5 16 21 16 18 7 2 20], 9, [22 3 14 0 19 17 12 4 11 15 10 13 8 1 6 5 16 21 16 18 7 2 20], 9 | [22 3 14 0 19 17 12 4 11 15 9 13 8 1 6 5 16 21 16 18 7 2 20], 10
topological_sort
dijkstra: s: 4, A: [[0 0 0.281 0 0], [0 0.038 0 0 0.55], [0.281 0 0 0 0], [0 0 0 0 0], [0 0.55 0 0 0]], initial_trace: [0 1 2 3 4] trace | pi:
[0 4 2 3 4] | [0 4 2 3 4]
dijkstra
find_maximum_subarray_kadane: key: [-0.632 -0.96 0.261 0.113 -0.887 -0.708 -0.98 -0.375 0.29 -0.341 0.456 -0.474], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (2, 2), (2, 3), (2, 3), (2, 3), (2, 3), (2, 3), (2, 3), (2, 3), (10, 10) | (10, 10)
find_maximum_subarray_kadane
bfs: s: 5, A: [[1 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 0 0 0 1 0 0 0], [0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 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 1 0 1], [0 0 1 0 0 0 1 1 0 0 0], [0 0 0 0 0 0 1 0 0 1 0], [0 1 0 0 0 0 0 0 1 1 0], [0 1 0 0 1 0 1 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
| [0 1 2 5 4 5 6 7 8 9 10]
bfs
kmp_matcher: string: [0 0 0 0 0 0 0 0 1 1], key: [1 0 1 3 3 2 2 2 3 3], initial_trace: 0 trace | s:
0, 0, 0, 1, 2 | 3
kmp_matcher
binary_search: key: [0.137 0.15 0.164 0.292 0.318 0.371 0.586 0.701 0.855 0.977], target: 0.083, initial_trace: (0, 9) trace | (low, high):
(0, 4), (0, 2), (0, 1) | (0, 0)
binary_search
insertion_sort: key: [0.857 0.104 0.006 0.19 0.895 0.626 0.535 0.7 0.653 0.518 0.076], initial_trace: [0.857 0.104 0.006 0.19 0.895 0.626 0.535 0.7 0.653 0.518 0.076] trace | pred:
[0.104 0.857 0.006 0.19 0.895 0.626 0.535 0.7 0.653 0.518 0.076], [0.006 0.104 0.857 0.19 0.895 0.626 0.535 0.7 0.653 0.518 0.076], [0.006 0.104 0.19 0.857 0.895 0.626 0.535 0.7 0.653 0.518 0.076], [0.006 0.104 0.19 0.857 0.895 0.626 0.535 0.7 0.653 0.518 0.076], [0.006 0.104 0.19 0.626 0.857 0.895 0.535 0.7 0.653 0.518 0.076], [0.006 0.104 0.19 0.535 0.626 0.857 0.895 0.7 0.653 0.518 0.076], [0.006 0.104 0.19 0.535 0.626 0.7 0.857 0.895 0.653 0.518 0.076], [0.006 0.104 0.19 0.535 0.626 0.653 0.7 0.857 0.895 0.518 0.076], [0.006 0.104 0.19 0.518 0.535 0.626 0.653 0.7 0.857 0.895 0.076] | [0.006 0.076 0.104 0.19 0.518 0.535 0.626 0.653 0.7 0.857 0.895]
insertion_sort
dijkstra: s: 9, A: [[0.105 0.41 0 0.326 0.263 0 0 0.779 0 0 0 0], [0.41 0.146 0 0 0 0.387 0 0 0 0 0 0.535], [0 0 0.566 0.79 0 0.497 0.469 0.25 0.159 0 0 0], [0.326 0 0.79 0 0 0.708 0 0 0.68 0 0 0], [0.263 0 0 0 0 0 0 0.365 0 0.481 0 0.434], [0 0.387 0.497 0.708 0 0.147 0.636 0 0 0 0.468 0.26], [0 0 0.469 0 0 0.636 0.201 0.126 0 0 0 0.215], [0.779 0 0.25 0 0.365 0 0.126 0.76 0 0 0 0], [0 0 0.159 0.68 0 0 0 0 0.651 0 0 0], [0 0 0 0 0.481 0 0 0 0 0 0 0], [0 0 0 0 0 0.468 0 0 0 0 0 0], [0 0.535 0 0 0.434 0.26 0.215 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 9 5 6 7 8 9 10 11], [4 1 2 3 9 5 6 4 8 9 10 4], [4 0 2 0 9 5 6 4 8 9 10 4], [4 0 7 0 9 5 7 4 8 9 10 4], [4 0 7 0 9 11 7 4 8 9 10 4], [4 0 7 0 9 11 7 4 8 9 10 4], [4 0 7 0 9 11 7 4 3 9 10 4], [4 0 7 0 9 11 7 4 2 9 10 4], [4 0 7 0 9 11 7 4 2 9 10 4], [4 0 7 0 9 11 7 4 2 9 5 4], [4 0 7 0 9 11 7 4 2 9 5 4] | [4 0 7 0 9 11 7 4 2 9 5 4]
dijkstra
minimum: key: [0.74 0.384 0.95 0.994 0.299 0.106 0.65 0.572 0.313 0.737 0.319 0.249 0.992 0.209 0.906 0.37 0.035 0.169 0.265 0.961 0.884 0.378 0.448], initial_trace: 0 trace | min:
1, 1, 1, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 16, 16, 16, 16, 16, 16 | 16
minimum
strongly_connected_components: A: [[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 0], [0 0 0 0 0 0 0 1 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 1 0 0 0], [1 0 0 1 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 1]], 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 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 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 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 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 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 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 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9], [0 1 2 3 4 5 6 3 8 9] | [0 1 2 3 4 5 6 3 8 9]
strongly_connected_components
mst_prim: s: 11, A: [[0.857 0 0.24 0 0 0 0 0 0.701 0.16 0.816 0], [0 0.833 0.203 0 0 0 0 0 0.149 0 0 0.415], [0.24 0.203 0.316 0.254 0 0 0 0.547 0.394 0 0.887 0], [0 0 0.254 0 0 0.512 0 0.387 0.414 0 0 0], [0 0 0 0 0.625 0 0.067 0 0.659 0 0.541 0.394], [0 0 0 0.512 0 0 0 0 0 0 0 0], [0 0 0 0 0.067 0 0.992 0.298 0 0 0.762 0], [0 0 0.547 0.387 0 0 0.298 0 0 0 0 0], [0.701 0.149 0.394 0.414 0.659 0 0 0 0 0 0 0.656], [0.16 0 0 0 0 0 0 0 0 0.797 0 0], [0.816 0 0.887 0 0.541 0 0.762 0 0 0 0 0], [0 0.415 0 0 0.394 0 0 0 0.656 0 0 0.688]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 11 2 3 11 5 6 7 11 9 10 11], [0 11 2 3 11 5 4 7 11 9 4 11], [0 11 2 3 11 5 4 6 11 9 4 11], [0 11 7 7 11 5 4 6 11 9 4 11], [0 11 3 7 11 3 4 6 3 9 4 11], [2 2 3 7 11 3 4 6 2 9 4 11], [2 2 3 7 11 3 4 6 1 9 4 11], [2 2 3 7 11 3 4 6 1 9 4 11], [2 2 3 7 11 3 4 6 1 0 4 11], [2 2 3 7 11 3 4 6 1 0 4 11], [2 2 3 7 11 3 4 6 1 0 4 11] | [2 2 3 7 11 3 4 6 1 0 4 11]
mst_prim
quickselect: key: [0.34 0.774 0.618 0.95 0.883 0.356 0.738 0.21 0.021 0.686 0.063 0.586 0.2 0.423 0.728 0.553 0.299 0.754 0.245 0.712 0.581 0.269 0.546], initial_trace: 22 trace | pivot:
22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 20, 20, 20, 20 | 15
quickselect
mst_kruskal: A: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]], initial_trace: [[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]]
mst_kruskal
task_scheduling: d: [7 3 9 2 2 13 10 13 14 9 6 1 6 10 1], w: [0.39 0.059 0.35 0.827 0.608 0.608 0.861 0.925 0.616 0.649 0.716 0.502 0.677 0.567 0.703], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 1 0 1 1 0 1 0 0], [0 0 0 0 0 0 1 1 1 1 1 0 1 0 0], [0 0 0 0 0 0 1 1 1 1 1 0 1 0 0], [0 0 0 0 0 1 1 1 1 1 1 0 1 0 0], [0 0 0 0 0 1 1 1 1 1 1 0 1 1 0], [0 0 0 0 0 1 1 1 1 1 1 0 1 1 0], [0 0 0 0 0 1 1 1 1 1 1 0 1 1 0], [0 0 1 0 0 1 1 1 1 1 1 0 1 1 0] | [0 0 1 0 0 1 1 1 1 1 1 0 1 1 0]
task_scheduling
insertion_sort: key: [0.306 0.614 0.071 0.588 0.261 0.937 0.661 0.189 0.574 0.519 0.996], initial_trace: [0.306 0.614 0.071 0.588 0.261 0.937 0.661 0.189 0.574 0.519 0.996] trace | pred:
[0.306 0.614 0.071 0.588 0.261 0.937 0.661 0.189 0.574 0.519 0.996], [0.071 0.306 0.614 0.588 0.261 0.937 0.661 0.189 0.574 0.519 0.996], [0.071 0.306 0.588 0.614 0.261 0.937 0.661 0.189 0.574 0.519 0.996], [0.071 0.261 0.306 0.588 0.614 0.937 0.661 0.189 0.574 0.519 0.996], [0.071 0.261 0.306 0.588 0.614 0.937 0.661 0.189 0.574 0.519 0.996], [0.071 0.261 0.306 0.588 0.614 0.661 0.937 0.189 0.574 0.519 0.996], [0.071 0.189 0.261 0.306 0.588 0.614 0.661 0.937 0.574 0.519 0.996], [0.071 0.189 0.261 0.306 0.574 0.588 0.614 0.661 0.937 0.519 0.996], [0.071 0.189 0.261 0.306 0.519 0.574 0.588 0.614 0.661 0.937 0.996] | [0.071 0.189 0.261 0.306 0.519 0.574 0.588 0.614 0.661 0.937 0.996]
insertion_sort
dijkstra: s: 1, A: [[0.862 0 0 0 0], [0 0 0 0 0], [0 0 0.178 0 0], [0 0 0 0 0], [0 0 0 0 0.163]], initial_trace: [0 1 2 3 4] trace | pi:
| [0 1 2 3 4]
dijkstra
mst_prim: s: 7, A: [[0 0 0 0 0.678 0.281 0 0 0 0 0 0.412], [0 0 0.33 0.377 0 0 0.099 0.692 0 0 0 0], [0 0.33 0 0.749 0 0 0 0 0 0 0 0], [0 0.377 0.749 0 0 0 0.133 0 0 0 0 0], [0.678 0 0 0 0.035 0 0 0.121 0 0 0.6 0], [0.281 0 0 0 0 0 0 0.488 0 0 0 0], [0 0.099 0 0.133 0 0 0 0 0 0 0 0], [0 0.692 0 0 0.121 0.488 0 0 0.264 0.555 0 0], [0 0 0 0 0 0 0 0.264 0.729 0 0 0], [0 0 0 0 0 0 0 0.555 0 0.523 0.427 0], [0 0 0 0 0.6 0 0 0 0 0.427 0.281 0], [0.412 0 0 0 0 0 0 0 0 0 0 0.855]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 7 2 3 7 7 6 7 7 7 10 11], [4 7 2 3 7 7 6 7 7 7 4 11], [4 7 2 3 7 7 6 7 7 7 4 11], [5 7 2 3 7 7 6 7 7 7 4 11], [5 7 2 3 7 7 6 7 7 7 4 0], [5 7 2 3 7 7 6 7 7 7 4 0], [5 7 2 3 7 7 6 7 7 7 9 0], [5 7 2 3 7 7 6 7 7 7 9 0], [5 7 1 1 7 7 1 7 7 7 9 0], [5 7 1 6 7 7 1 7 7 7 9 0], [5 7 1 6 7 7 1 7 7 7 9 0] | [5 7 1 6 7 7 1 7 7 7 9 0]
mst_prim
quickselect: key: [0.768 0.028 0.036 0.034 0.159 0.619 0.729 0.599 0.53 0.171 0.501 0.788 0.843 0.178 0.666 0.26 0.008 0.633 0.56 0.523 0.429 0.537 0.031 0.142 0.842 0.048 0.125 0.747], initial_trace: 27 trace | pivot:
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 20, 20, 20, 20, 20, 20, 20, 10, 10 | 19
quickselect
articulation_points: A: [[1 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 1 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 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]], initial_trace: [0 0 0 0 0 0 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 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 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 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 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], [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 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 0 0]
articulation_points
segments_intersect: x: [0.726 0.191 0.251 0.977], y: [0.426 0.044 0.976 0.173] intersect:
0
segments_intersect
quickselect: key: [0.866 0.885 0.942 0.238 0.338 0.633 0.322 0.144 0.76 0.55 0.537], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 9, 9, 9 | 9
quickselect
bfs: s: 3, A: [[0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 1 1], [0 0 0 0 1 0 0 0 0 0], [0 1 0 1 0 1 0 0 0 0], [0 0 1 0 0 0 0 1 0 0], [0 0 0 1 0 1 0 0 0 1], [0 0 0 0 0 0 1 0 0 1], [0 0 0 0 1 0 0 1 0 0], [0 1 0 0 0 0 0 0 0 0], [0 1 0 0 0 1 1 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | pi:
[0 3 2 3 4 3 6 7 8 9], [0 3 2 3 4 3 6 7 1 1] | [0 3 2 3 4 3 9 7 1 1]
bfs
mst_prim: s: 3, A: [[0.556 0 0 0], [0 0 0 0], [0 0 0.976 0.587], [0 0 0.587 0]], initial_trace: [0 1 2 3] trace | pi:
[0 1 3 3] | [0 1 3 3]
mst_prim
activity_selector: s: [0.423 0.163 0.234 0.108 0.244 0.503 0.247 0.892 0.266 0.518 0.098 0.097 0.394 0.04 0.09 0.126 0.571 0.566 0.478 0.393 0.573 0.503 0.014 0.126 0.084 0.036 0.11 0.047 0.2 0.242 0.25], f: [0.772 0.29 0.985 0.745 0.488 0.708 0.839 0.938 0.364 0.854 0.767 0.947 0.672 0.256 0.544 0.541 0.954 0.628 0.998 0.804 0.723 0.676 0.055 0.743 0.784 0.188 0.696 0.178 0.375 0.591 0.977], 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 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 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 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 0 0 0 0 0 1 0 0 0 0 0 0 0 0],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 1 1], [0 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 1 0 1 1 1], [1 0 0 0 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 0 0 0 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 19 20 21 22 23 24 25 26 27] trace | pi:
[0 1 2 19 4 5 6 7 8 19 10 11 12 19 19 19 16 17 18 19 19 19 22 23 24 25 26 27], [14 9 15 19 13 14 6 3 20 19 9 21 13 19 19 19 21 14 3 19 19 19 20 9 13 9 3 13] | [14 9 15 19 13 14 8 3 20 19 9 21 13 19 19 19 21 14 3 19 19 19 20 9 13 9 3 13]
bfs
segments_intersect: x: [0.175 0.472 0.41 0.569], y: [0.509 0.311 0.357 0.838] intersect:
0
segments_intersect
dijkstra: s: 6, A: [[0.562 0 0 0.36 0 0.068 0 0 0 0 0 0 0.565 0.23 0 0 0 0 0 0 0.293 0 0], [0 0.935 0 0 0 0 0 0.73 0.862 0.325 0 0 0.2 0.591 0 0 0 0 0.597 0.816 0 0 0], [0 0 0.064 0 0.408 0.426 0 0 0 0 0 0 0 0.58 0 0 0 0.31 0 0 0 0.112 0], [0.36 0 0 0.557 0 0 0.233 0 0 0 0.572 0.281 0 0 0 0 0 0.247 0 0 0.107 0 0], [0 0 0.408 0 0.911 0.433 0 0 0 0 0.575 0 0 0 0 0.764 0 0 0 0.52 0 0 0.585], [0.068 0 0.426 0 0.433 0 0 0 0 0 0 0.083 0 0 0 0 0 0.46 0 0.227 0 0 0], [0 0 0 0.233 0 0 0 0 0 0 0.82 0 0 0 0 0 0 0 0 0 0 0 0], [0 0.73 0 0 0 0 0 0.087 0.759 0.533 0.867 0 0 0.594 0 0 0 0 0 0.723 0 0 0], [0 0.862 0 0 0 0 0 0.759 0.379 0 0.753 0 0 0 0 0 0 0.203 0 0 0 0 0], [0 0.325 0 0 0 0 0 0.533 0 0.194 0 0.612 0.437 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.572 0.575 0 0.82 0.867 0.753 0 0.897 0 0 0 0 0 0 0 0 0 0 0.229 0], [0 0 0 0.281 0 0.083 0 0 0 0.612 0 0 0.702 0 0.434 0 0 0 0 0.387 0 0.32 0], [0.565 0.2 0 0 0 0 0 0 0 0.437 0 0.702 0.776 0 0 0.405 0 0 0 0 0 0.222 0.313], [0.23 0.591 0.58 0 0 0 0 0.594 0 0 0 0 0 0 0 0 0.318 0 0 0 0.37 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.434 0 0 0 0 0 0 0 0 0.723 0 0], [0 0 0 0 0.764 0 0 0 0 0 0 0 0.405 0 0 0.762 0.636 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0.318 0 0.636 0 0 0 0 0.785 0 0], [0 0 0.31 0.247 0 0.46 0 0 0.203 0 0 0 0 0 0 0 0 0 0 0 0.412 0 0], [0 0.597 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.588 0 0 0 0], [0 0.816 0 0 0.52 0.227 0 0.723 0 0 0 0.387 0 0 0 0 0 0 0 0.698 0 0 0], [0.293 0 0 0.107 0 0 0 0 0 0 0 0 0 0.37 0.723 0 0.785 0.412 0 0 0.312 0 0.267], [0 0 0.112 0 0 0 0 0 0 0 0.229 0.32 0.222 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.585 0 0 0 0 0 0 0 0.313 0 0 0 0 0 0 0 0.267 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 6 4 5 6 7 8 9 6 11 12 13 14 15 16 17 18 19 20 21 22], [3 1 2 6 4 5 6 7 8 9 3 3 12 13 14 15 16 3 18 19 3 21 22], [3 1 2 6 4 5 6 7 8 9 3 3 12 20 20 15 20 3 18 19 3 21 20], [3 1 17 6 4 17 6 7 17 9 3 3 12 20 20 15 20 3 18 19 3 21 20], [3 1 17 6 4 11 6 7 17 11 3 3 11 20 11 15 20 3 18 11 3 11 20], [3 1 17 6 4 11 6 7 17 11 3 3 0 20 11 15 20 3 18 11 3 11 20], [3 1 17 6 5 11 6 7 17 11 3 3 0 20 11 15 20 3 18 5 3 11 20], [3 1 17 6 5 11 6 7 17 11 3 3 22 20 11 15 20 3 18 5 3 11 20], [3 8 17 6 5 11 6 8 17 11 3 3 22 20 11 15 20 3 18 5 3 11 20], [3 13 17 6 5 11 6 13 17 11 3 3 22 20 11 15 13 3 18 5 3 11 20], [3 13 17 6 5 11 6 13 17 11 3 3 22 20 11 15 13 3 18 5 3 11 20], [3 13 17 6 5 11 6 13 17 11 3 3 22 20 11 15 13 3 18 5 3 11 20], [3 13 17 6 5 11 6 13 17 11 3 3 22 20 11 15 13 3 18 5 3 11 20], [3 13 17 6 5 11 6 13 17 11 3 3 22 20 11 15 13 3 18 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 18 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 18 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 18 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 18 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 1 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 1 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 1 5 3 11 20], [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 1 5 3 11 20] | [3 12 17 6 5 11 6 13 17 11 3 3 22 20 11 12 13 3 1 5 3 11 20]
dijkstra
insertion_sort: key: [0.751 0.402 0.599 0.961 0.941 0.88 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], initial_trace: [0.751 0.402 0.599 0.961 0.941 0.88 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12] trace | pred:
[0.402 0.751 0.599 0.961 0.941 0.88 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.402 0.599 0.751 0.961 0.941 0.88 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.402 0.599 0.751 0.961 0.941 0.88 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.402 0.599 0.751 0.941 0.961 0.88 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.402 0.599 0.751 0.88 0.941 0.961 0.561 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.402 0.561 0.599 0.751 0.88 0.941 0.961 0.073 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.073 0.402 0.561 0.599 0.751 0.88 0.941 0.961 0.455 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.073 0.402 0.455 0.561 0.599 0.751 0.88 0.941 0.961 0.064 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.073 0.402 0.455 0.561 0.599 0.751 0.88 0.941 0.961 0.071 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.455 0.561 0.599 0.751 0.88 0.941 0.961 0.724 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.455 0.561 0.599 0.724 0.751 0.88 0.941 0.961 0.515 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.455 0.515 0.561 0.599 0.724 0.751 0.88 0.941 0.961 0.42 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.515 0.561 0.599 0.724 0.751 0.88 0.941 0.961 0.735 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.515 0.561 0.599 0.724 0.735 0.751 0.88 0.941 0.961 0.717 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.515 0.561 0.599 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.548 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.515 0.548 0.561 0.599 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.526 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.515 0.526 0.548 0.561 0.599 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.455 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.455 0.515 0.526 0.548 0.561 0.599 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.53 0.013 0.663 0.12], [0.064 0.071 0.073 0.402 0.42 0.455 0.455 0.515 0.526 0.53 0.548 0.561 0.599 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.013 0.663 0.12], [0.013 0.064 0.071 0.073 0.402 0.42 0.455 0.455 0.515 0.526 0.53 0.548 0.561 0.599 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.663 0.12], [0.013 0.064 0.071 0.073 0.402 0.42 0.455 0.455 0.515 0.526 0.53 0.548 0.561 0.599 0.663 0.717 0.724 0.735 0.751 0.88 0.941 0.961 0.12] | [0.013 0.064 0.071 0.073 0.12 0.402 0.42 0.455 0.455 0.515 0.526 0.53 0.548 0.561 0.599 0.663 0.717 0.724 0.735 0.751 0.88 0.941 0.961]
insertion_sort
bfs: s: 9, A: [[1 0 0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 1 1 0 1 0 0 0], [0 0 1 1 0 0 0 0 0 0 1 0], [0 0 1 1 0 0 0 0 1 0 0 0], [0 0 0 0 1 1 0 0 0 0 1 0], [0 1 0 0 1 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 0 1 0], [0 1 0 1 0 0 1 0 0 1 1 0], [0 0 0 0 0 0 0 0 1 1 0 0], [0 0 1 0 1 0 0 1 1 0 0 1], [1 0 0 0 0 0 0 0 0 0 1 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 9 9 10 11], [0 8 2 8 4 5 8 7 9 9 8 11], [0 8 3 8 10 1 8 10 9 9 8 10] | [11 8 3 8 10 1 8 10 9 9 8 10]
bfs
graham_scan: x: [-1.25 -0.454 -0.526 0.609 0.06 0.358 -0.359 1.59 -0.946 0.133 1.23], y: [-0.799 -0.38 0.068 -1.25 -0.682 0.009 -0.818 0.003 1.35 -1.82 0.869], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[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 1 0 0 0 0 0 1 0], [0 0 0 1 0 0 0 1 0 1 0], [0 0 0 1 0 0 0 1 0 1 1], [0 0 0 1 0 1 0 1 0 1 1], [0 0 0 1 1 1 0 1 0 1 1], [0 0 0 1 0 1 0 1 0 1 1], [0 0 0 1 0 0 0 1 0 1 1], [0 0 0 1 0 0 0 1 1 1 1], [0 0 1 1 0 0 0 1 1 1 1], [0 0 0 1 0 0 0 1 1 1 1], [0 1 0 1 0 0 0 1 1 1 1], [0 0 0 1 0 0 0 1 1 1 1], [0 0 0 1 0 0 1 1 1 1 1], [0 0 0 1 0 0 0 1 1 1 1] | [1 0 0 1 0 0 0 1 1 1 1]
graham_scan
task_scheduling: d: [28 7 22 2 11 14 31 2 21 6 17 12 18 1 26 9 19 9 29 30 7 2 30 24 3 31 18 14 31 16 25], w: [0.826 0.377 0.017 0.576 0.578 0.492 0.172 0.186 0.656 0.516 0.258 0.954 0.908 0.523 0.026 0.77 0.422 0.253 0.693 0.95 0.474 0.879 0.448 0.34 0.1 0.199 0.503 0.338 0.465 0.842 0.333], 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 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 1 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 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 1 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 1 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 0 1 1 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 0 1 1 0 0 1 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 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0], [1 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0], [1 0 0 0 1 0 0 0 1 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0], [1 0 0 0 1 0 0 0 1 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0], [1 0 0 0 1 0 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0 1 1 0 1 1 0 0 1 1 0 1 1 0 1 1 1], [1 0 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 1 0 1 1 1], [1 0 0 0 1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 1 0 0 1 1 0 1 1 0 1 1 1] | [1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 1 0 0 1 1 0 1 1 0 1 1 1]
task_scheduling
segments_intersect: x: [0.886 0.696 0.298 0.963], y: [0.06 0.012 0.015 0.535] intersect:
0
segments_intersect
dag_shortest_paths: s: 0, A: [[0 0 0 0.78 0 0 0 0 0 0], [0.985 0 0 0 0 0 0 0 0 0], [0.619 0 0 0.148 0.084 0.58 0 0 0 0.822], [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.961 0 0.344 0 0 0], [0.69 0.998 0 0 0.519 0 0 0.974 0 0], [0.597 0.702 0 0 0.773 0 0 0 0 0], [0.958 0.0708 0 0 0 0 0.842 0 0 0], [0.438 0.086 0 0 0 0.419 0 0.911 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | pi:
[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 0 4 5 6 7 8 9]
dag_shortest_paths
strongly_connected_components: A: [[0 0 0 0], [0 1 0 0], [0 0 1 0], [0 0 0 1]], initial_trace: [0 1 2 3] trace | scc_id:
[0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3] | [0 1 2 3]
strongly_connected_components
topological_sort: A: [[0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 1 1 1 1 1 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 1 0 0 0 1 0 1], [0 0 1 0 0 0 0 1 1 1 1 0], [0 0 0 0 1 0 0 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 0 0 0], [0 0 1 0 0 0 1 1 0 0 0 0], [0 0 0 0 0 0 1 0 1 0 0 0], [0 0 1 0 0 0 0 0 1 1 0 0], [1 0 0 0 0 1 0 0 1 0 1 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], 2, [0 1 2 3 4 5 6 7 8 9 10 11], 2, [0 1 2 3 4 5 2 7 8 9 10 11], 6, [0 1 2 3 4 5 2 7 8 9 10 11], 6, [0 1 2 3 4 5 2 6 8 9 10 11], 7, [0 1 2 3 4 5 2 6 7 9 10 11], 8, [8 1 2 3 4 5 2 6 7 9 10 11], 0, [8 1 2 3 4 5 2 6 7 9 10 11], 0, [8 1 2 3 4 5 2 6 7 9 10 11], 0, [8 1 2 3 4 5 2 6 7 9 10 11], 0, [8 1 2 3 4 5 2 6 7 9 10 11], 0, [8 1 2 3 4 5 2 6 7 0 10 11], 9, [8 1 2 3 4 5 2 6 7 0 10 11], 9, [8 1 2 3 4 5 2 6 7 0 9 11], 10, [8 1 2 3 10 5 2 6 7 0 9 11], 4, [8 1 2 3 10 5 2 6 7 0 9 11], 4, [8 1 2 3 10 4 2 6 7 0 9 11], 5, [8 5 2 3 10 4 2 6 7 0 9 11], 1, [8 5 2 3 10 4 2 6 7 0 9 11], 1, [8 5 2 3 10 4 2 6 7 0 9 11], 1, [8 5 2 3 10 4 2 6 7 0 9 11], 1, [8 5 2 3 10 4 2 6 7 0 9 1], 11 | [8 5 2 11 10 4 2 6 7 0 9 1], 3
topological_sort
dfs: A: [[1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 1], [0 1 1 1 1 1 0 1 1 0 1 0 0 0 1 1 0 1 1], [1 0 0 0 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0], [1 1 1 1 1 1 1 1 1 0 1 1 0 1 0 0 1 0 0], [0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1 0 0], [1 1 0 1 1 0 0 0 0 0 1 0 1 1 0 1 1 0 0], [0 0 1 1 1 1 1 0 1 0 0 0 0 0 0 1 1 0 1], [1 1 0 0 0 0 1 1 0 1 0 0 0 0 0 1 1 1 0], [0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0], [0 1 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 1 0], [1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1], [1 0 0 1 0 1 1 1 1 1 0 0 1 0 0 1 1 0 0], [0 1 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1], [0 0 0 0 1 1 1 0 1 1 0 1 1 0 1 0 1 1 1], [1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 1 1 1 1], [1 1 1 1 1 1 1 1 1 0 0 0 0 1 0 1 0 1 0], [0 1 0 1 1 0 1 0 0 1 1 0 1 1 0 1 1 0 1], [1 1 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 0], [0 1 0 1 1 0 1 0 0 1 0 1 1 1 0 1 0 1 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 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 2 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 2 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 2 4 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 2 4 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 3 2 4 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 3 2 4 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 6 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 6 9 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 6 8 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 6 8 10 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 6 8 9 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 7 6 8 9 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 11 12 13 14 15 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 11 12 13 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 11 12 13 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 11 12 15 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 11 12 15 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 12 15 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 12 15 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 14 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 16 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 17 18], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 17 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 17 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16], [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16] | [0 5 0 1 2 4 3 10 6 8 9 13 11 15 12 7 14 18 16]
dfs
bellman_ford: s: 9, A: [[0.659 0 0.605 0 0 0 0 0 0 0 0.228 0], [0 0.996 0 0 0 0 0 0.454 0 0 0 0], [0.605 0 0.363 0 0 0 0 0 0.229 0 0 0.14], [0 0 0 0.278 0 0 0 0.523 0 0.584 0 0], [0 0 0 0 0.897 0 0 0 0 0 0 0], [0 0 0 0 0 0.846 0 0 0 0.257 0 0], [0 0 0 0 0 0 0 0 0 0.233 0 0], [0 0.454 0 0.523 0 0 0 0.451 0 0 0 0.076], [0 0 0.229 0 0 0 0 0 0 0 0 0], [0 0 0 0.584 0 0.257 0.233 0 0 0 0 0], [0.228 0 0 0 0 0 0 0 0 0 0 0], [0 0 0.14 0 0 0 0 0.076 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 9 4 9 9 7 8 9 10 11], [0 1 2 9 4 9 9 3 8 9 10 11], [0 7 2 9 4 9 9 3 8 9 10 7], [0 7 11 9 4 9 9 3 8 9 10 7], [2 7 11 9 4 9 9 3 2 9 10 7] | [2 7 11 9 4 9 9 3 2 9 0 7]
bellman_ford
graham_scan: x: [-0.409 -0.797 -0.59 0.767 0.301 0.596 0.136 -0.544 0.894 0.664 0.885 1.6 0.506 0.499 0.037 1.46 -0.239 0.152 0.254 0.248 -0.533 -1.01 1.52 -0.771 -1.35 -1.81 1.12 -0.914 1.35 -1.05 -0.678], y: [1.17 -0.837 1.06 0.57 -0.821 0.748 1.82 0.785 -1.51 -0.729 -1.78 -0.044 -0.164 -1.86 0.314 -0.489 0.46 1.03 -0.949 0.034 -1 -1.23 -1.21 -0.871 0.883 0.399 1.08 1.35 -0.972 0.217 -0.97], 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 | in_hull:
[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 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 1 0 1 0 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 1], [0 0 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 0], [0 0 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0 0] | [0 0 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 1 1 0 0 1 1 1 0 0 0]
graham_scan
bellman_ford: s: 10, A: [[0 0 0 0.205 0.66 0 0.342 0 0 0.044 0 0], [0 0.462 0 0 0.488 0 0 0 0 0 0.502 0], [0 0 0 0 0 0.262 0 0 0.648 0 0 0], [0.205 0 0 0.462 0 0.971 0.475 0 0 0 0 0], [0.66 0.488 0 0 0 0 0.785 0 0.622 0 0 0], [0 0 0.262 0.971 0 0.874 0.404 0 0 0 0 0], [0.342 0 0 0.475 0.785 0.404 0.959 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.777], [0 0 0.648 0 0.622 0 0 0 0.726 0 0 0], [0.044 0 0 0 0 0 0 0 0 0.145 0 0], [0 0.502 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.777 0 0 0 0.089]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 10 2 3 4 5 6 7 8 9 10 11], [0 10 2 3 1 5 6 7 8 9 10 11], [4 10 2 3 1 5 4 7 4 9 10 11] | [4 10 8 0 1 6 4 7 4 0 10 11]
bellman_ford
binary_search: key: [0.031 0.171 0.196 0.356 0.418 0.463 0.479 0.588 0.588 0.675 0.678 0.753 0.762 0.812 0.949], target: 0.482, initial_trace: (0, 14) trace | (low, high):
(0, 7), (4, 7), (6, 7) | (7, 7)
binary_search
task_scheduling: d: [5 8 3 6 8 14 6 15 1 9 6 15 12 7 4], w: [0.609 0.381 0.844 0.604 0.409 0.706 0.428 0.328 0.484 0.159 0.566 0.876 0.995 0.434 0.814], initial_trace: [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 1 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 1 1 0 0], [0 0 1 0 0 0 0 0 0 0 0 1 1 0 1], [0 0 1 0 0 1 0 0 0 0 0 1 1 0 1], [0 0 1 0 0 1 0 0 0 0 0 1 1 0 1], [0 0 1 1 0 1 0 0 0 0 0 1 1 0 1], [0 0 1 1 0 1 0 0 0 0 0 1 1 0 1], [0 0 1 1 0 1 0 0 0 0 0 1 1 0 1], [0 0 1 1 0 1 0 0 0 0 0 1 1 1 1], [0 0 1 1 0 1 0 0 0 0 0 1 1 1 1], [0 0 1 1 1 1 0 0 0 0 0 1 1 1 1], [0 0 1 1 1 1 0 0 0 0 0 1 1 1 1], [0 0 1 1 1 1 0 1 0 0 0 1 1 1 1] | [0 0 1 1 1 1 0 1 0 0 0 1 1 1 1]
task_scheduling
dijkstra: s: 24, A: [[0 0 0 0 0 0 0 0.484 0.626 0 0 0 0.13 0 0 0 0 0.491 0 0 0 0 0 0.628 0 0 0 0], [0 0 0.069 0 0 0 0 0.695 0 0 0 0 0.336 0 0 0 0.281 0 0.597 0 0 0 0 0 0.522 0 0 0], [0 0.069 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.949 0.487 0.398 0 0 0.82 0 0.192 0 0 0 0.306], [0 0 0 0.21 0.235 0 0 0 0.266 0 0 0 0 0 0.508 0 0.718 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.235 0.893 0 0 0.505 0 0.399 0 0.298 0 0.12 0.102 0 0 0.246 0 0.691 0 0 0 0 0.911 0 0 0.334], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.062 0 0 0.1 0 0.209 0 0 0 0.643 0 0], [0 0 0 0 0 0 0 0 0.35 0 0 0 0 0.553 0 0 0 0 0.511 0 0 0 0 0.339 0 0 0 0], [0.484 0.695 0 0 0.505 0 0 0 0 0 0 0 0 0 0 0.251 0 0 0 0 0 0 0 0 0 0 0 0], [0.626 0 0 0.266 0 0 0.35 0 0 0 0 0 0 0 0.574 0 0.699 0 0.255 0 0 0 0 0 0 0 0.166 0], [0 0 0 0 0.399 0 0 0 0 0 0 0 0.417 0.532 0 0 0 0 0.134 0 0 0.319 0 0 0.402 0 0 0], [0 0 0 0 0 0 0 0 0 0 0.043 0 0 0 0.903 0.366 0.82 0 0 0 0.311 0 0 0 0 0 0 0.069], [0 0 0 0 0.298 0 0 0 0 0 0 0.351 0.756 0 0 0 0 0 0 0.262 0 0 0 0.532 0 0.427 0 0], [0.13 0.336 0 0 0 0 0 0 0 0.417 0 0.756 0.562 0 0 0 0.215 0 0.269 0 0.212 0 0 0 0 0 0 0], [0 0 0 0 0.12 0 0.553 0 0 0.532 0 0 0 0.555 0 0 0 0.28 0 0 0.366 0 0 0 0 0 0 0], [0 0 0 0.508 0.102 0 0 0 0.574 0 0.903 0 0 0 0.189 0 0 0 0 0 0 0 0 0 0.657 0 0 0.493], [0 0 0 0 0 0 0 0.251 0 0 0.366 0 0 0 0 0 0 0.22 0 0.778 0 0 0 0 0 0 0 0], [0 0.281 0.949 0.718 0 0.062 0 0 0.699 0 0.82 0 0.215 0 0 0 0 0.35 0 0 0.228 0 0.455 0 0 0 0 0], [0.491 0 0.487 0 0.246 0 0 0 0 0 0 0 0 0.28 0 0.22 0.35 0 0 0 0.55 0 0 0 0.253 0 0 0], [0 0.597 0.398 0 0 0 0.511 0 0.255 0.134 0 0 0.269 0 0 0 0 0 0.667 0 0 0 0.528 0 0.459 0 0.254 0], [0 0 0 0 0.691 0.1 0 0 0 0 0 0.262 0 0 0 0.778 0 0 0 0 0 0 0 0 0.755 0.938 0 0], [0 0 0 0 0 0 0 0 0 0 0.311 0 0.212 0.366 0 0 0.228 0.55 0 0 0 0.84 0 0.335 0 0 0 0], [0 0 0.82 0 0 0.209 0 0 0 0.319 0 0 0 0 0 0 0 0 0 0 0.84 0.948 0 0 0 0.33 0 0.646], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.455 0 0.528 0 0 0 0.734 0 0.28 0.729 0 0.558], [0.628 0 0.192 0 0 0 0.339 0 0 0 0 0.532 0 0 0 0 0 0 0 0 0.335 0 0 0.201 0 0 0.287 0.525], [0 0.522 0 0 0.911 0 0 0 0 0.402 0 0 0 0 0.657 0 0 0.253 0.459 0.755 0 0 0.28 0 0 0 0 0], [0 0 0 0 0 0.643 0 0 0 0 0 0.427 0 0 0 0 0 0 0 0.938 0 0.33 0.729 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.166 0 0 0 0 0 0 0 0 0 0.254 0 0 0 0 0.287 0 0 0.254 0], [0 0 0.306 0 0.334 0 0 0 0 0 0.069 0 0 0 0.493 0 0 0 0 0 0 0.646 0.558 0.525 0 0 0 0.307]], 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 24 5 6 7 8 24 10 11 12 13 24 15 16 24 24 24 20 21 24 23 24 25 26 27], [17 24 17 3 17 5 6 7 8 24 10 11 12 17 24 17 17 24 24 24 17 21 24 23 24 25 26 27], [17 24 17 3 17 5 6 7 8 24 10 11 12 17 24 17 17 24 24 24 17 21 24 23 24 22 26 22], [17 24 17 3 17 5 6 7 8 24 10 11 9 17 24 17 17 24 24 24 17 9 24 23 24 22 26 22], [17 24 17 3 17 5 18 7 18 24 10 11 18 17 24 17 17 24 24 24 17 9 24 23 24 22 18 22], [17 24 17 3 17 5 18 15 18 24 15 11 18 17 24 17 17 24 24 24 17 9 24 23 24 22 18 22], [17 24 17 4 17 5 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 23 24 22 18 4], [17 24 1 4 17 5 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 23 24 22 18 4], [17 24 1 4 17 5 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 23 24 22 18 4], [17 24 1 4 17 5 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 5 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4], [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4] | [17 24 1 4 17 16 18 15 18 24 15 4 18 17 4 17 17 24 24 24 17 9 24 2 24 22 18 4]
dijkstra
mst_kruskal: A: [[0.712 0 0 0], [0 0.0853 0 0], [0 0 0 0], [0 0 0 0]], initial_trace: [[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]]
mst_kruskal
quickselect: key: [0.039 0.414 0.082 0.043 0.063 0.285 0.137 0.591 0.499 0.847 0.481], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 6, 6, 6, 6, 6, 6, 6, 1, 1 | 5
quickselect
minimum: key: [0.024 0.317 0.267 0.318 0.621 0.105 0.124 0.675 0.351 0.794 0.963], initial_trace: 0 trace | min:
0, 0, 0, 0, 0, 0, 0, 0, 0 | 0
minimum
minimum: key: [0.679 0.751 0.421 0.677], initial_trace: 0 trace | min:
0, 2 | 2
minimum
bfs: s: 9, A: [[0 0 0 1 0 0 0 0 1 1 0 0], [0 1 1 1 1 0 1 0 0 0 0 1], [0 1 0 0 0 0 0 1 1 0 1 0], [1 1 0 0 0 0 0 0 0 1 1 0], [0 1 0 0 1 0 0 0 0 1 0 0], [0 0 0 0 0 0 1 1 0 0 0 0], [0 1 0 0 0 1 0 0 1 0 0 0], [0 0 1 0 0 1 0 0 1 0 1 0], [1 0 1 0 0 0 1 1 0 0 0 0], [1 0 0 1 1 0 0 0 0 0 1 1], [0 0 1 1 0 0 0 1 0 1 0 0], [0 1 0 0 0 0 0 0 0 1 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[9 1 2 9 9 5 6 7 8 9 9 9], [9 3 10 9 9 5 6 10 0 9 9 9] | [9 3 10 9 9 7 1 10 0 9 9 9]
bfs
dfs: A: [[1 0 0 0 0], [1 0 0 1 0], [0 0 1 0 0], [0 0 0 1 0], [1 1 0 1 1]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4], [0 1 2 1 4] | [0 1 2 1 4]
dfs
activity_selector: s: [0.239 0.006 0.618 0.183 0.29 0.386 0.106 0.212 0.502 0.671 0.032 0.27 0.239 0.453 0.744 0.603 0.309 0.26 0.337], f: [0.904 0.059 0.779 0.38 0.582 0.61 0.78 0.379 0.55 0.833 0.345 0.529 0.266 0.763 0.836 0.848 0.601 0.493 0.77], initial_trace: [0 0 0 0 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 0 0 0], [0 1 0 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 0 0 0 1 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 1 0 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 0 0 0 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0] | [0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0]
activity_selector
minimum: key: [0.335 0.453 0.268 0.896 0.59 0.594 0.811 0.357 0.452 0.976 0.641 0.915], initial_trace: 0 trace | min:
0, 2, 2, 2, 2, 2, 2, 2, 2, 2 | 2
minimum
mst_kruskal: A: [[0 0 0 0 0 0 0.681 0 0 0], [0 0 0 0 0 0.684 0 0 0 0], [0 0 0.79 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.69 0 0 0 0.339 0], [0 0.684 0 0 0 0.161 0 0 0 0], [0.681 0 0 0 0 0 0.818 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.339 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]], 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 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 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 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 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 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 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], [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 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 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], [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 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], [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], [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 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 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 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 0 1 0], [0 1 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 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]]
mst_kruskal
bellman_ford: s: 10, A: [[0.436 0 0 0 0 0 0 0 0.157 0.218 0.479 0 0 0.574 0 0 0 0 0 0 0 0 0.842 0 0 0 0 0 0.473 0 0], [0 0 0 0 0 0 0 0 0.294 0 0 0 0 0 0.416 0 0 0 0 0 0 0 0.452 0 0 0.717 0 0 0.546 0.961 0.593], [0 0 0 0 0.226 0.358 0 0 0 0 0.493 0.216 0 0 0 0 0 0.468 0.504 0.221 0 0 0 0 0 0.525 0 0.229 0 0 0], [0 0 0 0 0.574 0 0 0.392 0 0 0 0 0 0 0.507 0.571 0 0 0.382 0 0 0 0 0.65 0 0 0 0 0.686 0 0], [0 0 0.226 0.574 0 0 0 0 0.383 0.785 0 0 0 0 0.697 0 0 0 0 0 0.784 0 0.89 0 0 0.301 0 0.314 0 0 0], [0 0 0.358 0 0 0.064 0 0 0 0 0.155 0.647 0 0 0 0 0 0 0 0 0 0 0 0 0.503 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.388 0 0 0 0 0 0.193 0.919 0 0 0.708 0 0 0 0 0 0 0.1 0 0.339 0 0.116 0 0.379], [0 0 0 0.392 0 0 0.388 0.676 0 0 0 0 0 0 0.252 0.915 0 0.422 0 0.491 0 0 0.152 0 0 0 0 0 0 0 0.436], [0.157 0.294 0 0 0.383 0 0 0 0 0 0 0 0.426 0 0 0 0 0 0 0 0.61 0.246 0 0 0 0 0 0 0.607 0 0], [0.218 0 0 0 0.785 0 0 0 0 0.635 0.544 0.761 0 0.647 0 0 0.513 0 0 0 0 0 0.511 0 0.61 0 0 0 0 0 0], [0.479 0 0.493 0 0 0.155 0 0 0 0.544 0.615 0 0 0 0.174 0.434 0.458 0 0.607 0.174 0 0 0.696 0.333 0.835 0 0 0 0.036 0.436 0], [0 0 0.216 0 0 0.647 0 0 0 0.761 0 0.873 0 0 0 0.136 0 0 0.517 0 0 0 0 0 0.58 0 0.551 0 0 0 0], [0 0 0 0 0 0 0 0 0.426 0 0 0 0 0 0.786 0 0 0 0 0 0 0 0 0 0 0.377 0 0.641 0 0.531 0], [0.574 0 0 0 0 0 0.193 0 0 0.647 0 0 0 0 0 0 0 0 0 0 0 0.295 0 0.193 0 0.509 0 0 0 0 0], [0 0.416 0 0.507 0.697 0 0.919 0.252 0 0 0.174 0 0.786 0 0 0 0 0.594 0 0 0 0.653 0 0 0 0 0 0 0 0 0.6], [0 0 0 0.571 0 0 0 0.915 0 0 0.434 0.136 0 0 0 0.725 0 0 0 0.204 0 0.347 0 0 0 0 0 0.614 0 0.067 0.358], [0 0 0 0 0 0 0 0 0 0.513 0.458 0 0 0 0 0 0 0.732 0 0 0 0 0 0 0.338 0 0 0 0 0 0], [0 0 0.468 0 0 0 0.708 0.422 0 0 0 0 0 0 0.594 0 0.732 0 0.857 0 0 0 0 0 0 0 0 0 0.853 0 0.053], [0 0 0.504 0.382 0 0 0 0 0 0 0.607 0.517 0 0 0 0 0 0.857 0.679 0 0 0 0 0.846 0 0 0 0 0.111 0 0], [0 0 0.221 0 0 0 0 0.491 0 0 0.174 0 0 0 0 0.204 0 0 0 0 0 0 0 0 0.737 0.593 0 0 0 0.241 0], [0 0 0 0 0.784 0 0 0 0.61 0 0 0 0 0 0 0 0 0 0 0 0 0.636 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.246 0 0 0 0 0.295 0.653 0.347 0 0 0 0 0.636 0.849 0.244 0 0 0.978 0 0 0.66 0.749 0], [0.842 0.452 0 0 0.89 0 0 0.152 0 0.511 0.696 0 0 0 0 0 0 0 0 0 0 0.244 0.921 0.336 0 0 0 0.372 0 0.853 0], [0 0 0 0.65 0 0 0 0 0 0 0.333 0 0 0.193 0 0 0 0 0.846 0 0 0 0.336 0.526 0 0.507 0.201 0.605 0 0.6 0.255], [0 0 0 0 0 0.503 0.1 0 0 0.61 0.835 0.58 0 0 0 0 0.338 0 0 0.737 0 0 0 0 0.125 0 0.105 0 0 0.472 0], [0 0.717 0.525 0 0.301 0 0 0 0 0 0 0 0.377 0.509 0 0 0 0 0 0.593 0 0.978 0 0.507 0 0 0.466 0 0 0 0], [0 0 0 0 0 0 0.339 0 0 0 0 0.551 0 0 0 0 0 0 0 0 0 0 0 0.201 0.105 0.466 0 0 0 0 0], [0 0 0.229 0 0.314 0 0 0 0 0 0 0 0.641 0 0 0.614 0 0 0 0 0 0 0.372 0.605 0 0 0 0.236 0.474 0 0], [0.473 0.546 0 0.686 0 0 0.116 0 0.607 0 0.036 0 0 0 0 0 0 0.853 0.111 0 0 0.66 0 0 0 0 0 0.474 0.932 0 0.629], [0 0.961 0 0 0 0 0 0 0 0 0.436 0 0.531 0 0 0.067 0 0 0 0.241 0 0.749 0.853 0.6 0.472 0 0 0 0 0.16 0], [0 0.593 0 0 0 0 0.379 0.436 0 0 0 0 0 0 0.6 0.358 0 0.053 0 0 0 0 0 0.255 0 0 0 0 0.629 0 0.158]], 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 28 29 30] trace | pi:
[10 1 10 3 4 10 6 7 8 10 10 11 12 13 10 10 10 17 10 10 20 21 10 10 10 25 26 27 10 10 30], [10 28 19 14 2 10 28 14 0 10 10 15 14 23 10 19 10 14 28 10 20 28 23 10 5 19 23 28 10 19 23], [10 28 19 18 2 10 28 14 0 10 10 15 29 6 10 19 10 30 28 10 8 28 7 10 6 19 6 28 10 19 6] | [10 28 19 18 2 10 28 14 0 10 10 15 29 6 10 19 10 30 28 10 8 13 7 10 6 19 24 28 10 19 6]
bellman_ford
graham_scan: x: [-0.49 0.933 1.58 1.85 0.568 -0.066 -0.735 -0.942 1.92 -1.37 0.112 1.21], y: [-1.19 -0.516 0.094 -0.688 1.49 0.701 -1.22 -1.52 -0.15 -0.446 0.031 -1.09], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[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 1], [0 0 0 1 0 0 0 1 0 0 0 1], [0 0 0 1 0 0 0 1 1 0 0 1], [0 1 0 1 0 0 0 1 1 0 0 1], [0 0 0 1 0 0 0 1 1 0 0 1], [0 0 1 1 0 0 0 1 1 0 0 1], [1 0 1 1 0 0 0 1 1 0 0 1], [0 0 1 1 0 0 0 1 1 0 0 1], [0 0 1 1 0 0 0 1 1 0 1 1], [0 0 1 1 0 0 1 1 1 0 1 1], [0 0 1 1 0 0 0 1 1 0 1 1], [0 0 1 1 0 0 0 1 1 0 0 1], [0 0 0 1 0 0 0 1 1 0 0 1], [0 0 0 1 1 0 0 1 1 0 0 1], [0 0 0 1 1 1 0 1 1 0 0 1], [0 0 0 1 1 0 0 1 1 0 0 1] | [0 0 0 1 1 0 0 1 1 1 0 1]
graham_scan
minimum: key: [0.836 0.942 0.999 0.177 0.804 0.206 0.58 0.516 0.507 0.358 0.005 0.211 0.022 0.979 0.704 0.963 0.35 0.311 0.263 0.547 0.011 0.501 0.482 0.177 0.301 0.17 0.584 0.384 0.305 0.708 0.247], initial_trace: 0 trace | min:
0, 0, 3, 3, 3, 3, 3, 3, 3, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 | 10
minimum
jarvis_march: x: [0.548 -0.054 -0.113 1.94], y: [1.86 1.41 -1.05 -0.291], initial_trace: [0 0 0 0] trace | in_hull:
[0 0 1 0], [0 0 1 0], [0 0 1 0], [0 0 1 0], [0 0 1 0], [0 0 1 1], [0 0 1 1], [0 0 1 1], [0 0 1 1], [0 0 1 1], [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]
jarvis_march
activity_selector: s: [0.173 0.533 0.328 0.168 0.263 0.667 0.15 0.796 0.156 0.679 0.252 0.925 0.684 0.053 0.002 0.103 0.002 0.739 0.461 0.389 0.283 0.008 0.339 0.577 0.15 0.192 0.113 0.518 0.204 0.472 0.154], f: [0.513 0.621 0.826 0.466 0.905 0.756 0.979 0.999 0.335 0.787 0.709 0.929 0.876 0.568 0.797 0.966 0.598 0.942 0.946 0.849 0.347 0.773 0.965 0.892 0.171 0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 0 0]
activity_selector
dag_shortest_paths: s: 4, A: [[0 0 0.836 0 0], [0 0 0 0.972 0.782], [0 0 0 0 0.642], [0 0 0 0 0], [0 0 0 0 0]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 1 2 3 4] | [0 1 2 3 4]
dag_shortest_paths
dijkstra: s: 3, A: [[0 0 0 0], [0 0 0 0], [0 0 0.752 0], [0 0 0 0]], initial_trace: [0 1 2 3] trace | pi:
| [0 1 2 3]
dijkstra
segments_intersect: x: [0.787 0.157 0.405 0.256], y: [0.935 0.749 0.972 0.584] intersect:
1
segments_intersect
binary_search: key: [0.12 0.331 0.889 0.922 0.926], target: 0.592, initial_trace: (0, 4) trace | (low, high):
(0, 2) | (2, 2)
binary_search
find_maximum_subarray_kadane: key: [0.329 -0.123 0.328 -0.268 0.532 0.243 0.967 0.067 0.454 0.992 -0.978 -0.775 -0.607 0.062 -0.261 0.03 0.027 0.224 0.148 0.447 0.594 0.245 -0.153 0.065 0.579 0.16 0.283 0.973 0.437 -0.638 0.432], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 2), (0, 2), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 9), (0, 26), (0, 27), (0, 28), (0, 28) | (0, 28)
find_maximum_subarray_kadane
dijkstra: s: 3, A: [[0.519 0.187 0 0.835 0], [0.187 0 0.07 0 0], [0 0.07 0.808 0 0], [0.835 0 0 0.243 0.472], [0 0 0 0.472 0.327]], initial_trace: [0 1 2 3 4] trace | pi:
[3 1 2 3 3], [3 1 2 3 3], [3 0 2 3 3], [3 0 1 3 3] | [3 0 1 3 3]
dijkstra
kmp_matcher: string: [0 0 0 1], key: [3 1 3 1], initial_trace: 0 trace | s:
0 | 1
kmp_matcher
topological_sort: A: [[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 1 0 0 0 1 0 1 0 0 0 0], [0 1 0 0 1 1 1 1 1 1 0 1], [0 1 0 0 0 1 1 1 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 0], [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 0 0 0 0 1 1 1 0 0 0 0], [1 0 0 0 0 1 1 1 1 0 0 0], [1 1 0 0 1 0 0 1 0 1 0 0], [0 0 1 0 0 0 0 0 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], 1, [0 1 2 3 4 5 6 7 8 9 10 11], 1, [0 1 2 3 4 5 6 7 8 9 10 11], 1, [0 1 2 3 4 5 6 7 8 9 10 11], 1, [0 1 2 3 4 1 6 7 8 9 10 11], 5, [0 1 2 3 4 1 6 7 8 9 10 11], 5, [0 1 2 3 4 1 6 5 8 9 10 11], 7, [0 1 7 3 4 1 6 5 8 9 10 11], 2, [0 1 7 3 4 1 6 5 8 9 10 11], 2, [0 1 7 3 4 1 6 5 8 9 10 2], 11, [0 1 7 3 4 1 11 5 8 9 10 2], 6, [6 1 7 3 4 1 11 5 8 9 10 2], 0, [6 1 7 3 4 1 11 5 8 9 10 2], 0, [6 1 7 3 4 1 11 5 8 9 10 2], 0, [6 1 7 3 4 1 11 5 8 9 10 2], 0, [6 1 7 3 0 1 11 5 8 9 10 2], 4, [6 1 7 3 0 1 11 5 8 9 10 2], 4, [6 1 7 3 0 1 11 5 4 9 10 2], 8, [6 1 7 3 0 1 11 5 4 9 10 2], 8, [6 1 7 3 0 1 11 5 4 8 10 2], 9, [6 1 7 9 0 1 11 5 4 8 10 2], 3, [6 1 7 9 0 1 11 5 4 8 10 2], 3, [6 1 7 9 0 1 11 5 4 8 10 2], 3 | [6 1 7 9 0 1 11 5 4 8 3 2], 10
topological_sort
insertion_sort: key: [0.078 0.236 0.346 0.524 0.679 0.559 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], initial_trace: [0.078 0.236 0.346 0.524 0.679 0.559 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955] trace | pred:
[0.078 0.236 0.346 0.524 0.679 0.559 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.346 0.524 0.679 0.559 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.346 0.524 0.679 0.559 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.346 0.524 0.679 0.559 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.346 0.524 0.559 0.679 0.269 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.269 0.346 0.524 0.559 0.679 0.483 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.934 0.988 0.088 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.934 0.988 0.766 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.766 0.934 0.988 0.752 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.934 0.988 0.802 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.802 0.934 0.988 0.232 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.232 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.802 0.934 0.988 0.98 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.232 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.802 0.934 0.98 0.988 0.13 0.053 0.135 0.674 0.357 0.873 0.955], [0.078 0.088 0.13 0.232 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.802 0.934 0.98 0.988 0.053 0.135 0.674 0.357 0.873 0.955], [0.053 0.078 0.088 0.13 0.232 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.802 0.934 0.98 0.988 0.135 0.674 0.357 0.873 0.955], [0.053 0.078 0.088 0.13 0.135 0.232 0.236 0.269 0.346 0.483 0.524 0.559 0.679 0.752 0.766 0.802 0.934 0.98 0.988 0.674 0.357 0.873 0.955], [0.053 0.078 0.088 0.13 0.135 0.232 0.236 0.269 0.346 0.483 0.524 0.559 0.674 0.679 0.752 0.766 0.802 0.934 0.98 0.988 0.357 0.873 0.955], [0.053 0.078 0.088 0.13 0.135 0.232 0.236 0.269 0.346 0.357 0.483 0.524 0.559 0.674 0.679 0.752 0.766 0.802 0.934 0.98 0.988 0.873 0.955], [0.053 0.078 0.088 0.13 0.135 0.232 0.236 0.269 0.346 0.357 0.483 0.524 0.559 0.674 0.679 0.752 0.766 0.802 0.873 0.934 0.98 0.988 0.955] | [0.053 0.078 0.088 0.13 0.135 0.232 0.236 0.269 0.346 0.357 0.483 0.524 0.559 0.674 0.679 0.752 0.766 0.802 0.873 0.934 0.955 0.98 0.988]
insertion_sort