question
stringlengths 65
3.42k
| answer
stringlengths 3
5.8k
| algo_name
stringclasses 30
values |
---|---|---|
dag_shortest_paths:
s: 6, A: [[0 0 0 0 0 0 0.799 0 0 0 0], [0.111 0 0 0 0.692 0 0.0839 0 0 0.34 0], [0.104 0.25 0 0.117 0 0 0 0 0.0483 0 0.299], [0.919 0.417 0 0 0.624 0 0.793 0 0 0 0], [0.72 0 0 0 0 0 0.217 0 0 0 0], [0 0.556 0 0.585 0 0 0.648 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0.532 0 0.958 0.829 0.551 0 0 0.294 0.994], [0.448 0 0 0.679 0 0 0.1 0 0 0.00788 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.925 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 |
heapsort:
key: [0.639 0.239 0.107 0.594 0.629], initial_trace: [0.639 0.239 0.107 0.594 0.629]
trace | pred:
| [0.639 0.239 0.107 0.594 0.629], [0.639 0.239 0.107 0.594 0.629], [0.639 0.239 0.107 0.594 0.629], [0.639 0.629 0.107 0.594 0.239], [0.639 0.629 0.107 0.594 0.239], [0.639 0.629 0.107 0.594 0.239], [0.239 0.629 0.107 0.594 0.639], [0.629 0.239 0.107 0.594 0.639], [0.629 0.594 0.107 0.239 0.639], [0.629 0.594 0.107 0.239 0.639], [0.239 0.594 0.107 0.629 0.639], [0.594 0.239 0.107 0.629 0.639], [0.594 0.239 0.107 0.629 0.639], [0.107 0.239 0.594 0.629 0.639], [0.239 0.107 0.594 0.629 0.639], [0.239 0.107 0.594 0.629 0.639], [0.107 0.239 0.594 0.629 0.639] | [0.107 0.239 0.594 0.629 0.639]
| heapsort |
jarvis_march:
x: [1.29 -1.01 1.31 0.932 -0.2 -0.165 -1.18 -0.312 0.849 -1.69], y: [-0.288 1.32 -1.29 -1.27 0.486 -0.143 -0.87 1.42 1.77 0.811], initial_trace: [0 0 0 0 0 0 0 0 0 0]
trace | in_hull:
| [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 0], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 0 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1], [1 1 1 1 0 0 1 0 1 1] | [1 1 1 1 0 0 1 0 1 1]
| jarvis_march |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [3 3 2 3 2 0 3 0 3 1 2 1 2 3 2], initial_trace: 0
trace | s:
| 0, 0, 0, 0, 0, 1 | 2
| kmp_matcher |
quickselect:
key: [0.07 0.069 0.708 0.115 0.316 0.714 0.139 0.531 0.141 0.207 0.362 0.74 0.614 0.089 0.935 0.699 0.842 0.645 0.76 0.892 0.014 0.137 0.58], 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, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 7, 7, 7, 7 | 7
| quickselect |
segments_intersect:
x: [0.525 0.482 0.02 0.764], y: [0.153 0.095 0.202 0.036]
intersect:
| 1
| segments_intersect |
bellman_ford:
s: 10, A: [[0 0 0 0 0.568 0 0 0 0 0.387 0 0], [0 0 0 0 0 0 0.678 0.433 0.264 0 0 0.089], [0 0 0 0.555 0 0 0 0 0.065 0 0 0.456], [0 0 0.555 0.75 0.268 0 0 0 0.342 0 0 0], [0.568 0 0 0.268 0.854 0.232 0 0 0 0 0 0], [0 0 0 0 0.232 0 0.917 0 0 0 0 0.56], [0 0.678 0 0 0 0.917 0.117 0 0.439 0 0 0], [0 0.433 0 0 0 0 0 0.833 0 0 0 0], [0 0.264 0.065 0.342 0 0 0.439 0 0.788 0.343 0 0], [0.387 0 0 0 0 0 0 0 0.343 0 0.215 0], [0 0 0 0 0 0 0 0 0 0.215 0.036 0], [0 0.089 0.456 0 0 0.56 0 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 4 5 6 7 8 10 10 11], [9 1 2 3 4 5 6 7 9 10 10 11], [9 8 8 8 0 5 8 7 9 10 10 11], [9 8 8 8 3 4 8 1 9 10 10 1] | [9 8 8 8 3 4 8 1 9 10 10 1]
| bellman_ford |
optimal_bst:
p: [0.107 0.197 0.154 0.055 0], q: [0.17 0.068 0.074 0.159 0.016], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]]
trace | root:
| [[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 0 0], [0 0 1 2 0], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 1 0], [0 0 1 2 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 0 1 1], [0 0 1 2 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]]
| optimal_bst |
bfs:
s: 7, A: [[0 0 0 0 0 0 1 0 0 1 0 1], [0 0 0 0 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 1 0], [0 0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 1 1 0 0 1 0 1 1], [0 0 0 0 1 0 1 0 0 0 0 0], [1 1 0 0 0 1 0 0 0 0 0 1], [0 0 0 0 0 0 0 1 0 1 1 1], [0 0 0 0 1 0 0 0 1 0 1 1], [1 1 1 0 0 0 0 1 0 0 0 0], [0 0 1 0 1 0 0 1 1 0 1 1], [1 0 0 0 1 0 1 1 1 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 8 7 7 7], [9 9 9 3 10 5 11 7 10 7 7 7] | [9 9 9 3 10 4 11 7 10 7 7 7]
| bfs |
jarvis_march:
x: [0.402 1.5 0.82 -0.147 -0.982 -1.43 -0.797 -0.778 -1.49 -0.156 0.973 -0.637], y: [-0.692 -0.972 -0.146 0.22 -1.73 0.246 -0.209 0.332 -0.977 0.208 -0.327 -0.223], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0]
trace | in_hull:
| [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 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1 1 1 0 1 1 0 1 0], [0 1 1 1 1 1 0 1 1 0 1 0], [0 1 1 1 1 1 0 1 1 0 1 0], [0 1 1 1 1 1 0 1 1 0 1 0], [0 1 1 1 1 1 0 1 1 0 1 0] | [0 1 1 1 1 1 0 1 1 0 1 0]
| jarvis_march |
find_maximum_subarray_kadane:
key: [0.825 -0.306 0.616 0.524 0.305 0.42 0.491 0.981 -0.006 -0.161 0.262 0.899 -0.389 0.006 -0.573 0.069 -0.16 -0.437 -0.788 0.678 0.476 -0.585 0.743 0.311 -0.798 -0.253 0.117 -0.303], initial_trace: (0, 0)
trace | (best_low, best_high):
| (0, 0), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 7), (0, 7), (0, 10), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11), (0, 11) | (0, 11)
| find_maximum_subarray_kadane |
topological_sort:
A: [[0 0 0 1 1 1 1 1 0 1], [0 0 0 0 1 0 1 1 1 0], [0 1 0 0 1 1 0 0 1 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 0 0 0], [0 0 0 0 0 1 0 1 0 1], [0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 1 0 1 0 0], [0 0 0 1 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 3, [0 1 2 3 4 5 6 7 8 9], 3, [0 1 2 3 4 5 6 7 8 9], 3, [0 1 2 3 4 5 6 7 8 3], 9, [0 1 2 3 9 5 6 7 8 3], 4, [0 1 2 3 9 5 6 7 8 3], 4, [0 1 2 3 9 4 6 7 8 3], 5, [0 1 2 3 9 4 6 7 8 3], 5, [0 1 2 3 9 4 6 7 8 3], 5, [0 1 2 3 9 4 6 5 8 3], 7, [0 1 2 3 9 4 7 5 8 3], 6, [6 1 2 3 9 4 7 5 8 3], 0, [6 1 2 3 9 4 7 5 8 3], 0, [6 1 2 3 9 4 7 5 8 3], 0, [6 1 2 3 9 4 7 5 8 3], 0, [6 1 2 3 9 4 7 5 0 3], 8, [6 8 2 3 9 4 7 5 0 3], 1, [6 8 2 3 9 4 7 5 0 3], 1, [6 8 2 3 9 4 7 5 0 3], 1 | [6 8 1 3 9 4 7 5 0 3], 2
| topological_sort |
topological_sort:
A: [[0 0 1 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 0 0 1 0 0 1 1 0 1 0 1 1 1], [0 1 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 1 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 0 0 0], [1 1 1 0 1 0 1 0 1 0 1 0 0 0 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 1 1 0 0 0 0 0 1 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 1 0 0 1 0 0 1], [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 0 0 0 0 0], [0 1 0 0 1 1 1 1 0 1 1 0 0 0 0], [0 0 1 0 0 1 1 0 1 0 0 1 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 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], 8, [0 1 2 3 4 5 8 7 8 9 10 11 12 13 14], 6, [0 1 2 3 4 5 8 7 8 9 10 11 12 13 14], 6, [0 1 2 3 4 5 8 7 8 9 10 11 6 13 14], 12, [0 1 12 3 4 5 8 7 8 9 10 11 6 13 14], 2, [2 1 12 3 4 5 8 7 8 9 10 11 6 13 14], 0, [2 1 12 3 4 5 8 7 8 9 10 11 6 13 14], 0, [2 1 12 3 4 5 8 7 8 9 10 11 6 13 14], 0, [2 1 12 3 4 5 8 7 8 9 10 11 6 13 14], 0, [2 1 12 3 4 5 8 7 8 9 10 0 6 13 14], 11, [2 11 12 3 4 5 8 7 8 9 10 0 6 13 14], 1, [2 11 12 3 4 5 8 7 8 9 10 0 6 13 14], 1, [2 11 12 3 4 5 8 7 8 9 10 0 6 13 14], 1, [2 11 12 3 4 5 8 7 8 9 10 0 6 13 14], 1, [2 11 12 3 1 5 8 7 8 9 10 0 6 13 14], 4, [2 11 12 3 1 5 8 7 8 9 10 0 6 13 14], 4, [2 11 12 3 1 5 8 7 8 9 10 0 6 13 14], 4, [2 11 12 3 1 5 8 7 8 9 10 0 6 13 14], 4, [2 11 12 3 1 5 8 7 8 9 10 0 6 13 14], 4, [2 11 12 3 1 4 8 7 8 9 10 0 6 13 14], 5, [2 11 12 3 1 4 8 7 8 9 10 0 6 13 5], 14, [2 11 12 3 1 4 8 7 8 9 14 0 6 13 5], 10, [2 11 12 3 1 4 8 10 8 9 14 0 6 13 5], 7, [2 11 12 3 1 4 8 10 8 9 14 0 6 13 5], 7, [2 11 12 3 1 4 8 10 8 9 14 0 6 13 5], 7, [2 11 12 3 1 4 8 10 8 7 14 0 6 13 5], 9, [2 11 12 3 1 4 8 10 8 7 14 0 6 9 5], 13 | [2 11 12 13 1 4 8 10 8 7 14 0 6 9 5], 3
| topological_sort |
mst_prim:
s: 9, A: [[0 0.643 0 0 0.529 0 0.663 0 0.457 0.411 0 0 0 0 0 0 0 0 0.526 0 0.222 0 0], [0.643 0 0 0 0 0 0 0 0 0 0 0.627 0 0 0 0 0 0 0 0 0 0 0], [0 0 0.873 0.423 0 0 0.681 0 0 0 0 0 0.643 0.749 0 0 0 0.525 0.347 0 0 0 0.55], [0 0 0.423 0.568 0.789 0 0.169 0 0 0 0.303 0 0 0 0.397 0 0 0 0.452 0 0.496 0 0.366], [0.529 0 0 0.789 0.5 0 0.376 0.458 0.254 0 0 0 0 0 0 0 0 0 0 0 0 0 0.183], [0 0 0 0 0 0 0 0.415 0 0.379 0 0 0 0 0 0 0 0 0 0 0 0 0.633], [0.663 0 0.681 0.169 0.376 0 0.79 0 0 0 0 0 0 0.863 0.598 0 0 0 0 0 0.576 0 0.701], [0 0 0 0 0.458 0.415 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0.457 0 0 0 0.254 0 0 0 0.67 0.861 0 0 0 0 0 0.483 0 0 0 0 0 0 0.1], [0.411 0 0 0 0 0.379 0 0 0.861 0.256 0.728 0 0.388 0.413 0.33 0 0.076 0.322 0 0 0.067 0.613 0], [0 0 0 0.303 0 0 0 0 0 0.728 0.986 0.109 0 0 0 0.853 0.356 0 0 0.434 0 0.065 0.408], [0 0.627 0 0 0 0 0 0 0 0 0.109 0 0 0 0 0 0.692 0 0 0 0 0 0], [0 0 0.643 0 0 0 0 0 0 0.388 0 0 0 0.341 0 0 0 0.314 0 0 0 0 0], [0 0 0.749 0 0 0 0.863 0 0 0.413 0 0 0.341 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.397 0 0 0.598 0 0 0.33 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.483 0 0.853 0 0 0 0 0.919 0 0 0.448 0.322 0 0 0.459], [0 0 0 0 0 0 0 0 0 0.076 0.356 0.692 0 0 0 0 0.472 0 0 0 0 0 0], [0 0 0.525 0 0 0 0 0 0 0.322 0 0 0.314 0 0 0 0 0.156 0 0 0 0 0], [0.526 0 0.347 0.452 0 0 0 0 0 0 0 0 0 0 0 0.448 0 0 0.637 0 0.376 0 0], [0 0 0 0 0 0 0 0 0 0 0.434 0 0 0 0 0.322 0 0 0 0 0 0.162 0], [0.222 0 0 0.496 0 0 0.576 0 0 0.067 0 0 0 0 0 0 0 0 0.376 0 0 0.296 0], [0 0 0 0 0 0 0 0 0 0.613 0.065 0 0 0 0 0 0 0 0 0.162 0.296 0.143 0], [0 0 0.55 0.366 0.183 0.633 0.701 0 0.1 0 0.408 0 0 0 0 0.459 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22]
trace | pi:
| [9 1 2 3 4 9 6 7 9 9 9 11 9 9 9 15 9 9 18 19 9 9 22], [20 1 2 20 4 9 20 7 9 9 9 11 9 9 9 15 9 9 20 19 9 20 22], [20 1 2 20 4 9 20 7 9 9 16 16 9 9 9 15 9 9 20 19 9 20 22], [20 0 2 20 0 9 20 7 0 9 16 16 9 9 9 15 9 9 20 19 9 20 22], [20 0 2 20 0 9 20 7 0 9 21 16 9 9 9 15 9 9 20 21 9 20 22], [20 0 2 10 0 9 20 7 0 9 21 10 9 9 9 10 9 9 20 21 9 20 10], [20 11 2 10 0 9 20 7 0 9 21 10 9 9 9 10 9 9 20 21 9 20 10], [20 11 2 10 0 9 20 7 0 9 21 10 9 9 9 19 9 9 20 21 9 20 10], [20 11 3 10 0 9 3 7 0 9 21 10 9 9 9 19 9 9 20 21 9 20 3], [20 11 3 10 6 9 3 7 0 9 21 10 9 9 9 19 9 9 20 21 9 20 3], [20 11 3 10 6 9 3 7 0 9 21 10 9 9 9 19 9 9 20 21 9 20 3], [20 11 3 10 6 9 3 7 0 9 21 10 17 9 9 19 9 9 20 21 9 20 3], [20 11 3 10 6 9 3 7 0 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 3 10 6 9 3 7 0 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 3 10 6 9 3 7 0 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 3 10 22 9 3 7 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 3 10 22 9 3 7 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 3 10 22 9 3 4 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 18 10 22 9 3 4 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 18 10 22 9 3 4 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 18 10 22 9 3 5 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3], [20 11 18 10 22 9 3 5 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3] | [20 11 18 10 22 9 3 5 22 9 21 10 17 12 9 19 9 9 20 21 9 20 3]
| mst_prim |
lcs_length:
string: [0 0 1 1], key: [2 1 2 3], initial_trace: [[-1 -1 0 2], [-1 -1 1 0], [-1 -1 -1 -1], [-1 -1 -1 -1]]
trace | b:
| | [[-1 -1 0 2], [-1 -1 1 1], [-1 -1 -1 -1], [-1 -1 -1 -1]]
| lcs_length |
activity_selector:
s: [0.147 0.293 0.881 0.211 0.437 0.029 0.164 0.792 0.012 0.44 0.635 0.109 0.089 0.229 0.732 0.255 0.056 0.518 0.101 0.412 0 0.6 0.396 0.004 0.735 0.263 0.801 0.165 0.043 0.478 0.196], f: [0.869 0.857 0.933 0.65 0.923 0.286 0.553 0.956 0.14 0.841 0.899 0.996 0.151 0.67 0.807 0.698 0.628 0.953 0.717 0.469 0.769 0.93 0.889 0.476 0.958 0.686 0.955 0.973 0.586 0.82 0.699], 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 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 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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 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 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 1 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 1 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 1 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 1 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 1 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 1 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 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0]
| activity_selector |
bellman_ford:
s: 5, A: [[0 0 0 0 0 0.688 0 0 0 0.473 0.383 0 0.2 0 0.456 0 0 0 0], [0 0 0 0 0 0.266 0 0.211 0.284 0 0.289 0.697 0 0.254 0.426 0 0 0.106 0.6], [0 0 0.039 0 0.696 0 0 0 0 0 0.133 0 0.474 0 0 0 0 0 0], [0 0 0 0.302 0.877 0 0 0.592 0 0 0 0.274 0 0 0.365 0 0 0 0], [0 0 0.696 0.877 0.724 0 0 0 0 0.311 0 0 0.068 0.207 0 0 0 0.456 0], [0.688 0.266 0 0 0 0 0 0.16 0 0 0 0 0 0 0 0.876 0.612 0 0], [0 0 0 0 0 0 0.49 0 0 0.262 0.636 0 0 0.456 0.372 0 0 0 0.561], [0 0.211 0 0.592 0 0.16 0 0.072 0 0.511 0.756 0 0 0 0 0.266 0 0.634 0], [0 0.284 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.235], [0.473 0 0 0 0.311 0 0.262 0.511 0 0 0 0 0.37 0.627 0.215 0 0.67 0 0], [0.383 0.289 0.133 0 0 0 0.636 0.756 0 0 0 0 0 0.536 0 0 0.702 0 0], [0 0.697 0 0.274 0 0 0 0 0 0 0 0.327 0 0 0.528 0 0 0 0.418], [0.2 0 0.474 0 0.068 0 0 0 0 0.37 0 0 0 0 0 0 0 0 0], [0 0.254 0 0 0.207 0 0.456 0 0 0.627 0.536 0 0 0.314 0 0.247 0 0 0], [0.456 0.426 0 0.365 0 0 0.372 0 0 0.215 0 0.528 0 0 0.138 0 0.671 0 0.044], [0 0 0 0 0 0.876 0 0.266 0 0 0 0 0 0.247 0 0 0 0 0], [0 0 0 0 0 0.612 0 0 0 0.67 0.702 0 0 0 0.671 0 0.678 0.742 0], [0 0.106 0 0 0.456 0 0 0.634 0 0 0 0 0 0 0 0 0.742 0 0.4], [0 0.6 0 0 0 0 0.561 0 0.235 0 0 0.418 0 0 0.044 0 0 0.4 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
trace | pi:
| [5 5 2 3 4 5 6 5 8 9 10 11 12 13 14 5 5 17 18], [5 5 2 7 4 5 6 5 1 7 1 1 0 1 1 7 5 1 1], [5 5 10 7 13 5 9 5 1 7 1 1 0 1 1 7 5 1 14] | [5 5 10 7 13 5 9 5 1 7 1 1 4 1 1 7 5 1 14]
| bellman_ford |
topological_sort:
A: [[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 1 1 1 0 0 1 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 1 1 0 0 1 0 0 0 0], [1 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 1 1 0 1 0 0 0 0], [1 0 0 0 1 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 1 0 0 1 1 0 1 0 0], [1 0 1 1 0 1 0 1 1 0 1 0 0 0 0], [0 0 0 0 1 1 1 1 0 1 0 0 0 0 0], [1 0 0 1 0 0 0 0 1 0 0 1 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14], 2, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14], 2, [0 1 0 3 2 5 6 7 8 9 10 11 12 13 14], 4, [0 1 0 3 2 5 6 7 8 9 10 11 12 13 14], 4, [0 1 0 3 2 5 6 7 8 9 4 11 12 13 14], 10, [0 1 0 3 2 5 6 10 8 9 4 11 12 13 14], 7, [0 1 0 3 2 5 6 10 8 9 4 11 12 13 14], 7, [0 1 0 3 2 5 6 10 8 9 4 11 12 13 14], 7, [0 1 0 3 2 5 6 10 7 9 4 11 12 13 14], 8, [0 1 0 3 2 5 6 10 7 8 4 11 12 13 14], 9, [0 9 0 3 2 5 6 10 7 8 4 11 12 13 14], 1, [0 9 0 3 2 5 6 10 7 8 4 11 12 13 14], 1, [0 9 0 3 2 5 6 10 7 8 4 11 12 13 14], 1, [0 9 0 3 2 5 6 10 7 8 4 11 12 13 14], 1, [0 9 0 3 2 5 6 10 7 8 4 11 12 13 14], 1, [0 9 0 3 2 5 6 10 7 8 4 11 12 13 14], 1, [0 9 0 3 2 5 1 10 7 8 4 11 12 13 14], 6, [0 9 0 3 2 6 1 10 7 8 4 11 12 13 14], 5, [0 9 0 3 2 6 1 10 7 8 4 11 12 5 14], 13, [0 9 0 13 2 6 1 10 7 8 4 11 12 5 14], 3, [0 9 0 13 2 6 1 10 7 8 4 11 12 5 14], 3, [0 9 0 13 2 6 1 10 7 8 4 11 12 5 14], 3, [0 9 0 13 2 6 1 10 7 8 4 11 12 5 14], 3, [0 9 0 13 2 6 1 10 7 8 4 11 3 5 14], 12, [0 9 0 13 2 6 1 10 7 8 4 12 3 5 14], 11, [0 9 0 13 2 6 1 10 7 8 4 12 3 5 14], 11, [0 9 0 13 2 6 1 10 7 8 4 12 3 5 14], 11 | [0 9 0 13 2 6 1 10 7 8 4 12 3 5 11], 14
| topological_sort |
segments_intersect:
x: [0.728 0.149 0.213 0.481], y: [0.737 0.813 0.87 0.041]
intersect:
| 1
| segments_intersect |
minimum:
key: [0.445 0.359 0.052 0.637 0.629], initial_trace: 0
trace | min:
| 1, 2, 2 | 2
| minimum |
activity_selector:
s: [0.021 0.105 0.816 0.018 0.038], f: [0.245 0.649 0.905 0.908 0.462], initial_trace: [0 0 0 0 0]
trace | selected:
| [1 0 0 0 0], [1 0 0 0 0], [1 0 0 0 0], [1 0 1 0 0] | [1 0 1 0 0]
| activity_selector |
binary_search:
key: [0.046 0.179 0.736 0.985], target: 0.419, initial_trace: (0, 3)
trace | (low, high):
| (2, 3) | (2, 2)
| binary_search |
topological_sort:
A: [[0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0], [1 1 0 0 0 0 1 1 0 0], [1 1 0 0 0 0 0 0 0 1], [1 0 0 0 0 0 1 0 0 0], [1 1 1 0 0 0 0 1 1 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 0 0], [0 0 0 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 8, [8 1 2 3 4 5 6 7 8 9], 0, [8 1 2 3 4 5 6 7 8 9], 0, [8 1 2 3 4 5 6 7 8 9], 0, [8 0 2 3 4 5 6 7 8 9], 1, [8 0 2 3 4 5 6 7 8 9], 1, [8 0 2 3 4 5 6 7 8 9], 1, [8 0 2 3 4 5 6 7 8 9], 1, [8 0 2 3 4 5 6 7 8 9], 1, [8 0 2 3 4 5 6 7 8 1], 9, [8 0 2 3 4 5 9 7 8 1], 6, [8 0 2 3 4 5 9 7 8 1], 6, [8 0 2 3 4 5 9 6 8 1], 7, [8 0 7 3 4 5 9 6 8 1], 2, [8 0 7 3 4 5 9 6 8 1], 2, [8 0 7 3 4 5 9 6 8 1], 2, [8 0 7 2 4 5 9 6 8 1], 3, [8 0 7 2 4 5 9 6 8 1], 3, [8 0 7 2 4 5 9 6 8 1], 3, [8 0 7 2 3 5 9 6 8 1], 4, [8 0 7 2 3 5 9 6 8 1], 4, [8 0 7 2 3 5 9 6 8 1], 4 | [8 0 7 2 3 4 9 6 8 1], 5
| topological_sort |
bellman_ford:
s: 1, A: [[0 0.314 0 0.415], [0.314 0.489 0 0], [0 0 0 0], [0.415 0 0 0]], initial_trace: [0 1 2 3]
trace | pi:
| [1 1 2 3] | [1 1 2 0]
| bellman_ford |
naive_string_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1], key: [3 3 3 3 0 3 3 2 0 1 0 0 2 3 1 0 2 1 2 1 3 1 0 3 2 3 3 3 0 3 3], initial_trace: 0
trace | s:
| 0, 0, 0, 1, 1, 1, 1, 1 | 1
| naive_string_matcher |
minimum:
key: [0.972 0.017 0.04 0.146 0.241 0.833 0.759 0.292 0.829 0.161 0.795 0.818 0.663 0.313 0.366 0.563 0.039 0.762 0.113 0.277 0.077 0.261 0.224 0.568 0.488 0.369 0.835 0.535], initial_trace: 0
trace | min:
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 | 1
| minimum |
dfs:
A: [[0 0 0 1 0 1 0 1 1 1 0 1 0 0 0 0 1 1 0], [1 1 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 1 1], [1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0], [1 0 0 0 0 1 1 0 1 0 0 1 0 0 0 1 1 1 1], [0 1 0 0 1 1 1 0 1 0 0 0 1 1 1 0 0 0 1], [0 1 0 1 1 1 0 0 1 1 1 1 0 0 1 0 0 1 0], [0 0 0 1 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1], [1 0 0 1 0 1 1 1 1 0 0 1 1 1 0 1 1 1 1], [1 1 0 1 0 0 0 0 1 0 1 1 1 1 0 0 0 0 0], [0 0 1 0 0 1 0 1 1 1 0 0 0 1 1 1 0 1 0], [0 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0], [1 0 1 1 1 1 1 0 1 1 1 0 1 1 0 1 0 1 1], [1 1 0 0 1 1 0 1 0 0 0 0 1 1 1 0 0 1 1], [0 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 1], [1 1 0 0 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0], [0 1 1 0 1 1 0 0 0 1 0 1 1 1 0 0 0 0 0], [1 1 1 1 0 0 1 1 1 1 0 0 1 1 0 1 0 0 1], [1 0 1 0 0 1 1 0 1 1 0 0 0 1 0 1 0 1 1], [1 0 1 0 1 0 1 1 1 1 1 0 0 0 0 0 0 1 1]], 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 2 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 0 4 3 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 0 4 3 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 4 3 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 4 3 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 4 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 4 7 8 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 4 7 6 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 4 7 6 9 10 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 4 7 6 9 8 11 12 13 14 15 16 17 18], [0 5 2 0 1 3 4 7 6 9 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 7 6 9 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 7 6 9 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 7 6 2 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 7 6 2 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 11 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 12 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 13 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 14 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 15 16 17 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 15 16 13 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 15 16 13 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 18], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 16 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17], [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17] | [0 5 10 0 1 3 4 9 6 2 8 7 11 12 13 17 7 13 17]
| dfs |
naive_string_matcher:
string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [0 1 3 2 0 2 0 1 2 2 0 1], initial_trace: 0
trace | s:
| | 0
| naive_string_matcher |
minimum:
key: [0.048 0.407 0.623 0.453 0.644 0.9 0.382 0.421 0.795 0.044], initial_trace: 0
trace | min:
| 0, 0, 0, 0, 0, 0, 0, 0 | 9
| minimum |
mst_prim:
s: 4, A: [[0.299 0 0 0 0.398 0 0 0 0 0.739 0], [0 0 0.35 0 0.164 0.259 0 0 0.638 0 0], [0 0.35 0 0 0 0 0 0.763 0 0 0], [0 0 0 0.127 0.342 0 0 0.707 0 0.57 0.703], [0.398 0.164 0 0.342 0 0 0 0 0 0 0.665], [0 0.259 0 0 0 0.961 0 0 0.58 0.164 0], [0 0 0 0 0 0 0 0 0 0.218 0], [0 0 0.763 0.707 0 0 0 0.665 0 0 0], [0 0.638 0 0 0 0.58 0 0 0 0 0], [0.739 0 0 0.57 0 0.164 0.218 0 0 0.916 0], [0 0 0 0.703 0.665 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [4 4 2 4 4 5 6 7 8 9 4], [4 4 1 4 4 1 6 7 1 9 4], [4 4 1 4 4 1 6 7 5 5 4], [4 4 1 4 4 1 9 7 5 5 4], [4 4 1 4 4 1 9 7 5 5 4], [4 4 1 4 4 1 9 3 5 5 4], [4 4 1 4 4 1 9 3 5 5 4], [4 4 1 4 4 1 9 3 5 5 4], [4 4 1 4 4 1 9 3 5 5 4], [4 4 1 4 4 1 9 3 5 5 4] | [4 4 1 4 4 1 9 3 5 5 4]
| mst_prim |
optimal_bst:
p: [0.229 0.064 0.214 0.206 0], q: [0.027 0.116 0.006 0.055 0.083], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]]
trace | root:
| [[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 0 0], [0 0 1 2 0], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 2 0], [0 0 1 2 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 0 2 2], [0 0 1 2 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]]
| optimal_bst |
dijkstra:
s: 17, A: [[0 0 0 0 0 0 0 0 0 0.358 0 0 0 0.703 0 0.327 0 0.442 0 0 0 0 0], [0 0.348 0 0.246 0 0 0 0 0 0 0 0 0.498 0 0 0 0 0 0.248 0 0 0 0], [0 0 0.372 0.459 0.569 0.202 0 0 0 0 0 0 0 0 0.331 0 0.157 0 0 0 0 0 0], [0 0.246 0.459 0 0 0 0 0 0 0.434 0 0 0 0 0 0.168 0.45 0 0 0 0.502 0 0], [0 0 0.569 0 0 0 0 0 0.162 0 0 0 0 0.662 0 0 0 0.394 0 0 0 0.907 0], [0 0 0.202 0 0 0 0 0 0.668 0 0.609 0 0 0 0 0.53 0 0 0 0 0.272 0 0], [0 0 0 0 0 0 0.991 0 0.496 0.333 0 0 0 0 0 0.083 0 0.369 0 0.604 0 0.122 0], [0 0 0 0 0 0 0 0.664 0.359 0 0 0 0.29 0.275 0.802 0 0 0 0.499 0 0 0.161 0.602], [0 0 0 0 0.162 0.668 0.496 0.359 0 0 0 0.141 0.493 0 0 0 0 0.335 0.309 0 0 0.286 0.448], [0.358 0 0 0.434 0 0 0.333 0 0 0 0 0 0 0 0 0.271 0 0 0 0.127 0.09 0 0], [0 0 0 0 0 0.609 0 0 0 0 0 0.166 0 0 0 0 0.3 0.354 0 0.417 0 0 0], [0 0 0 0 0 0 0 0 0.141 0 0.166 0.485 0 0 0 0 0.058 0 0 0 0 0 0], [0 0.498 0 0 0 0 0 0.29 0.493 0 0 0 0.832 0 0 0 0.185 0 0.141 0 0 0 0], [0.703 0 0 0 0.662 0 0 0.275 0 0 0 0 0 0.886 0 0.392 0 0 0 0 0 0 0], [0 0 0.331 0 0 0 0 0.802 0 0 0 0 0 0 0 0 0 0 0.247 0 0.283 0 0.221], [0.327 0 0 0.168 0 0.53 0.083 0 0 0.271 0 0 0 0.392 0 0 0 0 0.433 0 0 0 0.55], [0 0 0.157 0.45 0 0 0 0 0 0 0.3 0.058 0.185 0 0 0 0 0 0 0 0 0 0], [0.442 0 0 0 0.394 0 0.369 0 0.335 0 0.354 0 0 0 0 0 0 0 0.245 0.215 0 0 0], [0 0.248 0 0 0 0 0 0.499 0.309 0 0 0 0.141 0 0.247 0.433 0 0.245 0.204 0 0 0 0], [0 0 0 0 0 0 0.604 0 0 0.127 0.417 0 0 0 0 0 0 0.215 0 0 0 0.262 0], [0 0 0 0.502 0 0.272 0 0 0 0.09 0 0 0 0 0.283 0 0 0 0 0 0 0 0], [0 0 0 0 0.907 0 0.122 0.161 0.286 0 0 0 0 0 0 0 0 0 0 0.262 0 0.631 0], [0 0 0 0 0 0 0 0.602 0.448 0 0 0 0 0 0.221 0.55 0 0 0 0 0 0 0.891]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22]
trace | pi:
| [17 1 2 3 17 5 17 7 17 9 17 11 12 13 14 15 16 17 17 17 20 21 22], [17 1 2 3 17 5 17 7 17 19 17 11 12 13 14 15 16 17 17 17 20 19 22], [17 18 2 3 17 5 17 18 17 19 17 11 18 13 18 18 16 17 17 17 20 19 22], [17 18 2 3 17 8 17 8 17 19 17 8 18 13 18 18 16 17 17 17 20 19 8], [17 18 2 9 17 8 17 8 17 19 17 8 18 13 18 9 16 17 17 17 9 19 8], [17 18 2 9 17 10 17 8 17 19 17 8 18 13 18 9 10 17 17 17 9 19 8], [17 18 2 9 17 10 17 8 17 19 17 8 18 13 18 6 10 17 17 17 9 19 8], [17 18 2 9 17 10 17 12 17 19 17 8 18 13 18 6 12 17 17 17 9 19 8], [17 18 4 9 17 10 17 12 17 19 17 8 18 4 18 6 12 17 17 17 9 19 8], [17 18 4 9 17 20 17 12 17 19 17 8 18 4 18 6 12 17 17 17 9 19 8], [17 18 4 9 17 20 17 12 17 19 17 8 18 4 18 6 12 17 17 17 9 19 8], [17 18 4 15 17 20 17 12 17 19 17 8 18 15 18 6 12 17 17 17 9 19 8], [17 18 4 15 17 20 17 12 17 19 17 8 18 15 18 6 11 17 17 17 9 19 8], [17 18 4 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 8], [17 18 14 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 14 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14], [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14] | [17 18 16 15 17 20 17 21 17 19 17 8 18 15 18 6 11 17 17 17 9 19 14]
| dijkstra |
quickselect:
key: [0.775 0.361 0.511 0.394 0.535], initial_trace: 4
trace | pivot:
| 4, 4, 4, 4, 3, 3, 3 | 2
| quickselect |
mst_prim:
s: 2, A: [[0.885 0 0 0.904 0 0 0.241 0 0 0 0 0 0.447 0 0], [0 0 0 0 0 0 0 0 0.84 0.56 0 0 0.839 0 0], [0 0 0 0 0 0 0 0 0 0.519 0 0.437 0 0 0], [0.904 0 0 0 0 0.507 0 0 0.139 0 0.609 0.795 0 0.815 0], [0 0 0 0 0.172 0 0 0.526 0 0.559 0 0 0.415 0.319 0], [0 0 0 0.507 0 0.972 0.209 0 0.4 0 0 0 0.682 0 0], [0.241 0 0 0 0 0.209 0.816 0.725 0 0 0 0 0.252 0 0], [0 0 0 0 0.526 0 0.725 0.348 0.12 0 0.163 0 0 0 0], [0 0.84 0 0.139 0 0.4 0 0.12 0.22 0 0 0 0.312 0 0], [0 0.56 0.519 0 0.559 0 0 0 0 0 0 0 0 0 0.47], [0 0 0 0.609 0 0 0 0.163 0 0 0 0 0 0 0], [0 0 0.437 0.795 0 0 0 0 0 0 0 0.28 0 0 0], [0.447 0.839 0 0 0.415 0.682 0.252 0 0.312 0 0 0 0.584 0 0], [0 0 0 0.815 0.319 0 0 0 0 0 0 0 0 0.348 0], [0 0 0 0 0 0 0 0 0 0.47 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14]
trace | pi:
| [0 1 2 3 4 5 6 7 8 2 10 2 12 13 14], [0 1 2 11 4 5 6 7 8 2 10 2 12 13 14], [0 9 2 11 9 5 6 7 8 2 10 2 12 13 9], [0 9 2 11 9 5 6 7 8 2 10 2 12 13 9], [0 9 2 11 9 5 6 4 8 2 10 2 4 4 9], [0 9 2 11 9 5 6 4 8 2 10 2 4 4 9], [12 9 2 11 9 12 12 4 12 2 10 2 4 4 9], [6 9 2 11 9 6 12 4 12 2 10 2 4 4 9], [6 9 2 5 9 6 12 4 12 2 10 2 4 4 9], [6 9 2 5 9 6 12 4 12 2 10 2 4 4 9], [6 9 2 8 9 6 12 8 12 2 10 2 4 4 9], [6 9 2 8 9 6 12 8 12 2 7 2 4 4 9], [6 9 2 8 9 6 12 8 12 2 7 2 4 4 9], [6 9 2 8 9 6 12 8 12 2 7 2 4 4 9] | [6 9 2 8 9 6 12 8 12 2 7 2 4 4 9]
| mst_prim |
find_maximum_subarray_kadane:
key: [-0.023 0.171 0.15 -0.724 0.365 -0.665 -0.16 -0.032 0.069 -0.298 -0.756 -0.85 0.997 0.884 0.84 0.938 0.056 0.612 0.233 0.455 0.383 0.439 -0.75], initial_trace: (0, 0)
trace | (best_low, best_high):
| (1, 1), (1, 2), (1, 2), (4, 4), (4, 4), (4, 4), (4, 4), (4, 4), (4, 4), (4, 4), (4, 4), (12, 12), (12, 13), (12, 14), (12, 15), (12, 16), (12, 17), (12, 18), (12, 19), (12, 20), (12, 21) | (12, 21)
| find_maximum_subarray_kadane |
quicksort:
key: [0.121 0.721 0.424 0.746], initial_trace: [0.121 0.721 0.424 0.746]
trace | pred:
| [0.121 0.721 0.424 0.746], [0.121 0.721 0.424 0.746], [0.121 0.721 0.424 0.746], [0.121 0.721 0.424 0.746], [0.121 0.721 0.424 0.746] | [0.121 0.424 0.721 0.746]
| quicksort |
dfs:
A: [[0 1 1 0 1 0 0 0 1 0], [0 0 1 0 1 0 1 0 1 1], [0 1 0 0 1 0 1 1 0 1], [1 0 0 0 1 1 0 1 0 0], [1 0 0 0 0 0 1 1 0 0], [0 0 0 1 0 0 0 1 0 1], [0 0 1 0 0 1 0 0 0 1], [0 0 0 1 1 0 0 0 1 0], [1 1 0 1 0 1 1 0 1 0], [0 0 1 1 1 0 0 0 1 1]], 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 0 2 3 4 5 6 7 8 9], [0 0 2 3 4 5 6 7 8 9], [0 0 1 3 4 5 6 7 8 9], [0 0 1 3 4 5 6 7 8 9], [0 0 1 3 2 5 6 7 8 9], [0 0 1 3 2 5 6 7 8 9], [0 0 1 3 2 5 4 7 8 9], [0 0 1 3 2 5 4 7 8 9], [0 0 1 3 2 6 4 7 8 9], [0 0 1 3 2 6 4 7 8 9], [0 0 1 5 2 6 4 7 8 9], [0 0 1 5 2 6 4 7 8 9], [0 0 1 5 2 6 4 3 8 9], [0 0 1 5 2 6 4 3 8 9], [0 0 1 5 2 6 4 3 7 9], [0 0 1 5 2 6 4 3 7 9], [0 0 1 5 2 6 4 3 7 9], [0 0 1 5 2 6 4 3 7 9], [0 0 1 5 2 6 4 3 7 9], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5], [0 0 1 5 2 6 4 3 7 5] | [0 0 1 5 2 6 4 3 7 5]
| dfs |
strongly_connected_components:
A: [[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 1 1 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 1 0 1 0], [0 0 0 0 1 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 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 0 0 0 0 1 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]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11]
trace | scc_id:
| [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 8 11], [0 1 2 3 4 5 6 7 8 9 8 11], [0 1 2 3 4 5 6 7 8 9 8 11], [0 1 2 3 4 5 6 7 8 9 8 11], [0 1 2 3 4 5 6 7 8 9 8 11], [0 1 2 3 4 5 6 1 8 9 8 11], [0 1 2 3 4 5 6 1 8 9 8 11], [0 1 2 3 4 5 6 1 8 9 8 11], [0 1 2 3 4 5 6 1 8 9 8 11] | [0 1 2 3 4 5 6 1 8 9 8 11]
| strongly_connected_components |
mst_prim:
s: 2, A: [[0.499 0 0 0.882 0 0 0 0 0.572 0.408 0.337], [0 0 0.204 0 0 0.545 0.649 0.126 0.567 0.583 0], [0 0.204 0 0.812 0.191 0 0 0 0.77 0 0], [0.882 0 0.812 0.043 0 0 0.567 0 0 0.601 0], [0 0 0.191 0 0.371 0 0 0 0.583 0 0], [0 0.545 0 0 0 0.221 0 0.472 0 0 0], [0 0.649 0 0.567 0 0 0 0 0 0 0.72], [0 0.126 0 0 0 0.472 0 0 0 0 0], [0.572 0.567 0.77 0 0.583 0 0 0 0.197 0 0.302], [0.408 0.583 0 0.601 0 0 0 0 0 0 0], [0.337 0 0 0 0 0 0.72 0 0.302 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [0 2 2 2 2 5 6 7 2 9 10], [0 2 2 2 2 5 6 7 4 9 10], [0 2 2 2 2 1 1 1 1 1 10], [0 2 2 2 2 7 1 1 1 1 10], [0 2 2 2 2 7 1 1 1 1 10], [8 2 2 2 2 7 1 1 1 1 8], [10 2 2 2 2 7 1 1 1 1 8], [10 2 2 2 2 7 1 1 1 0 8], [10 2 2 9 2 7 1 1 1 0 8], [10 2 2 9 2 7 3 1 1 0 8] | [10 2 2 9 2 7 3 1 1 0 8]
| mst_prim |
quickselect:
key: [0.51 0.384 0.568 0.818 0.145 0.515 0.458 0.987 0.547 0.14 0.065 0.945 0.752 0.882 0.264 0.742 0.264 0.023 0.902 0.687 0.445 0.494 0.219], 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | 0
| quickselect |
segments_intersect:
x: [0.069 0.249 0.159 0.833], y: [0.152 0.6 0.944 0.374]
intersect:
| 0
| segments_intersect |
matrix_chain_order:
p: [0.701 0.258 0.784 0.181 0.544 0.556 0.556 0.479 0.515 0.328], 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 | s:
| [[0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0], [0 0 0 2 0 0 0 0 0 0], [0 0 0 0 3 0 0 0 0 0], [0 0 0 0 0 4 0 0 0 0], [0 0 0 0 0 0 5 0 0 0], [0 0 0 0 0 0 0 6 0 0], [0 0 0 0 0 0 0 0 7 0], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]], [[0 0 0 0 0 0 0 0 0 0], [0 0 1 1 2 0 0 0 0 0], [0 0 0 2 3 3 0 0 0 0], [0 0 0 0 3 3 4 0 0 0], [0 0 0 0 0 4 5 5 0 0], [0 0 0 0 0 0 5 5 6 0], [0 0 0 0 0 0 0 6 7 7], [0 0 0 0 0 0 0 0 7 7], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]], [[0 0 0 0 0 0 0 0 0 0], [0 0 1 1 3 3 3 3 4 0], [0 0 0 2 3 3 3 3 5 5], [0 0 0 0 3 3 3 3 5 5], [0 0 0 0 0 4 5 6 7 6], [0 0 0 0 0 0 5 5 7 5], [0 0 0 0 0 0 0 6 7 6], [0 0 0 0 0 0 0 0 7 7], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]], [[0 0 0 0 0 0 0 0 0 0], [0 0 1 1 3 3 3 3 3 3], [0 0 0 2 3 3 3 3 3 3], [0 0 0 0 3 3 3 3 3 3], [0 0 0 0 0 4 5 6 7 7], [0 0 0 0 0 0 5 5 7 5], [0 0 0 0 0 0 0 6 7 6], [0 0 0 0 0 0 0 0 7 7], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]], [[0 0 0 0 0 0 0 0 0 0], [0 0 1 1 3 3 3 3 3 3], [0 0 0 2 3 3 3 3 3 3], [0 0 0 0 3 3 3 3 3 3], [0 0 0 0 0 4 5 6 7 8], [0 0 0 0 0 0 5 5 7 5], [0 0 0 0 0 0 0 6 7 6], [0 0 0 0 0 0 0 0 7 7], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]] | [[0 0 0 0 0 0 0 0 0 0], [0 0 1 1 3 3 3 3 3 3], [0 0 0 2 3 3 3 3 3 3], [0 0 0 0 3 3 3 3 3 3], [0 0 0 0 0 4 5 6 7 8], [0 0 0 0 0 0 5 5 7 5], [0 0 0 0 0 0 0 6 7 6], [0 0 0 0 0 0 0 0 7 7], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]]
| matrix_chain_order |
heapsort:
key: [0.691 0.299 0.811 0.918 0.585], initial_trace: [0.691 0.299 0.811 0.918 0.585]
trace | pred:
| [0.691 0.299 0.811 0.918 0.585], [0.691 0.299 0.811 0.918 0.585], [0.691 0.299 0.811 0.918 0.585], [0.691 0.918 0.811 0.299 0.585], [0.691 0.918 0.811 0.299 0.585], [0.918 0.691 0.811 0.299 0.585], [0.918 0.691 0.811 0.299 0.585], [0.585 0.691 0.811 0.299 0.918], [0.811 0.691 0.585 0.299 0.918], [0.811 0.691 0.585 0.299 0.918], [0.299 0.691 0.585 0.811 0.918], [0.691 0.299 0.585 0.811 0.918], [0.691 0.299 0.585 0.811 0.918], [0.585 0.299 0.691 0.811 0.918], [0.585 0.299 0.691 0.811 0.918], [0.299 0.585 0.691 0.811 0.918] | [0.299 0.585 0.691 0.811 0.918]
| heapsort |
graham_scan:
x: [-1.23 -0.175 -1.05 1.04 0.644 0.058 -0.12 -0.471 0.103 1.04], y: [-1.17 -1.09 1.66 0.27 1.75 -0.342 1.46 -0.581 -0.041 1.38], initial_trace: [0 0 0 0 0 0 0 0 0 0]
trace | in_hull:
| [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 1 0 0 0 0 0 0], [1 1 0 1 0 1 0 0 0 0], [1 1 0 1 0 0 0 0 0 0], [1 1 0 1 0 0 0 1 0 0], [1 1 0 1 0 0 0 0 0 0], [1 1 0 1 0 0 0 0 1 0], [1 1 0 1 0 0 0 0 0 0], [1 1 0 1 0 0 0 0 0 1], [1 1 0 1 1 0 0 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 0 0 0 1] | [1 1 1 1 1 0 0 0 0 1]
| graham_scan |
mst_prim:
s: 4, A: [[0.567 0.402 0.204 0 0 0 0.216 0 0 0], [0.402 0.52 0 0 0 0 0 0 0.694 0], [0.204 0 0.323 0 0 0 0 0 0 0.272], [0 0 0 0 0 0.327 0 0 0 0], [0 0 0 0 0 0.071 0 0 0 0], [0 0 0 0.327 0.071 0 0 0.81 0 0], [0.216 0 0 0 0 0 0 0 0 0.624], [0 0 0 0 0 0.81 0 0 0 0], [0 0.694 0 0 0 0 0 0 0 0.349], [0 0 0.272 0 0 0 0.624 0 0.349 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 1 2 3 4 4 6 7 8 9], [0 1 2 5 4 4 6 5 8 9], [0 1 2 5 4 4 6 5 8 9] | [0 1 2 5 4 4 6 5 8 9]
| mst_prim |
kmp_matcher:
string: [0 0 0 1], key: [0 0 2 0], initial_trace: 0
trace | s:
| | 0
| kmp_matcher |
articulation_points:
A: [[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0], [0 1 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]], 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 |
graham_scan:
x: [-0.874 0.234 -1.9 -0.346], y: [-1.24 1.15 -0.197 1.77], initial_trace: [0 0 0 0]
trace | in_hull:
| [1 0 0 0], [1 0 0 0], [1 1 0 0], [1 1 0 1] | [1 1 1 1]
| graham_scan |
mst_prim:
s: 3, A: [[0.192 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0.305], [0 0 0 0 0.512], [0 0 0.305 0.512 0]], initial_trace: [0 1 2 3 4]
trace | pi:
| [0 1 2 3 3], [0 1 4 3 3] | [0 1 4 3 3]
| mst_prim |
lcs_length:
string: [0 0 0 1 1], key: [3 1 0 1 2], initial_trace: [[-1 -1 -1 1 1], [-1 -1 -1 0 0], [-1 -1 -1 1 0], [-1 -1 -1 -1 -1], [-1 -1 -1 -1 -1]]
trace | b:
| | [[-1 -1 -1 1 1], [-1 -1 -1 0 2], [-1 -1 -1 1 1], [-1 -1 -1 -1 -1], [-1 -1 -1 -1 -1]]
| lcs_length |
graham_scan:
x: [-0.306 -1.4 0.137 -0.965 -0.526 1.82 0.847 -1.77 -1.43 0.71], y: [1.56 0.413 0.446 1.21 0.937 0.592 1.45 0.227 0.972 1.49], initial_trace: [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 1 0 0], [0 0 0 0 0 1 0 1 0 0], [0 0 1 0 0 1 0 1 0 0], [0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 1 1 1 0 0], [0 1 0 0 0 1 1 1 0 0], [0 0 0 0 0 1 1 1 0 0], [0 0 0 0 0 1 1 1 0 1], [0 0 0 0 1 1 1 1 0 1], [0 0 0 0 0 1 1 1 0 1], [1 0 0 0 0 1 1 1 0 1], [1 0 0 1 0 1 1 1 0 1], [1 0 0 0 0 1 1 1 0 1] | [1 0 0 0 0 1 1 1 1 1]
| graham_scan |
bfs:
s: 0, A: [[1 0 0 0], [0 0 1 0], [0 1 1 0], [0 0 0 0]], initial_trace: [0 1 2 3]
trace | pi:
| | [0 1 2 3]
| bfs |
insertion_sort:
key: [0.037 0.472 0.903 0.553 0.956 0.86 0.44 0.926 0.305 0.744 0.222 0.11], initial_trace: [0.037 0.472 0.903 0.553 0.956 0.86 0.44 0.926 0.305 0.744 0.222 0.11]
trace | pred:
| [0.037 0.472 0.903 0.553 0.956 0.86 0.44 0.926 0.305 0.744 0.222 0.11], [0.037 0.472 0.903 0.553 0.956 0.86 0.44 0.926 0.305 0.744 0.222 0.11], [0.037 0.472 0.553 0.903 0.956 0.86 0.44 0.926 0.305 0.744 0.222 0.11], [0.037 0.472 0.553 0.903 0.956 0.86 0.44 0.926 0.305 0.744 0.222 0.11], [0.037 0.472 0.553 0.86 0.903 0.956 0.44 0.926 0.305 0.744 0.222 0.11], [0.037 0.44 0.472 0.553 0.86 0.903 0.956 0.926 0.305 0.744 0.222 0.11], [0.037 0.44 0.472 0.553 0.86 0.903 0.926 0.956 0.305 0.744 0.222 0.11], [0.037 0.305 0.44 0.472 0.553 0.86 0.903 0.926 0.956 0.744 0.222 0.11], [0.037 0.305 0.44 0.472 0.553 0.744 0.86 0.903 0.926 0.956 0.222 0.11], [0.037 0.222 0.305 0.44 0.472 0.553 0.744 0.86 0.903 0.926 0.956 0.11] | [0.037 0.11 0.222 0.305 0.44 0.472 0.553 0.744 0.86 0.903 0.926 0.956]
| insertion_sort |
mst_prim:
s: 4, A: [[0 0 0 0 0 0.909 0 0.796 0 0 0 0 0 0 0.558], [0 0.488 0 0 0.516 0 0.769 0.72 0 0.456 0 0 0 0 0], [0 0 0 0 0 0.409 0 0 0 0.813 0 0 0 0 0], [0 0 0 0 0.15 0 0.517 0 0 0 0 0 0.288 0 0], [0 0.516 0 0.15 0.539 0 0 0 0 0 0.881 0 0 0 0.315], [0.909 0 0.409 0 0 0.523 0 0 0.189 0.056 0 0.619 0.516 0 0], [0 0.769 0 0.517 0 0 0 0 0 0 0 0.504 0 0 0.695], [0.796 0.72 0 0 0 0 0 0.091 0 0 0 0 0 0 0.394], [0 0 0 0 0 0.189 0 0 0.226 0.926 0 0 0.448 0 0], [0 0.456 0.813 0 0 0.056 0 0 0.926 0.694 0 0 0 0 0], [0 0 0 0 0.881 0 0 0 0 0 0.63 0 0 0.172 0], [0 0 0 0 0 0.619 0.504 0 0 0 0 0.549 0 0 0], [0 0 0 0.288 0 0.516 0 0 0.448 0 0 0 0.304 0 0.834], [0 0 0 0 0 0 0 0 0 0 0.172 0 0 0.249 0], [0.558 0 0 0 0.315 0 0.695 0.394 0 0 0 0 0.834 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14]
trace | pi:
| [0 4 2 4 4 5 6 7 8 9 4 11 12 13 4], [0 4 2 4 4 5 3 7 8 9 4 11 3 13 4], [0 4 2 4 4 12 3 7 12 9 4 11 3 13 4], [14 4 2 4 4 12 3 14 12 9 4 11 3 13 4], [14 4 2 4 4 12 3 14 12 9 4 11 3 13 4], [14 4 2 4 4 8 3 14 12 8 4 11 3 13 4], [14 4 5 4 4 8 3 14 12 5 4 5 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 5 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 5 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 5 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 6 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 6 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 6 3 13 4], [14 9 5 4 4 8 3 14 12 5 4 6 3 10 4] | [14 9 5 4 4 8 3 14 12 5 4 6 3 10 4]
| mst_prim |
activity_selector:
s: [0.566 0.606 0.231 0.884 0.091 0.301 0.273 0.431 0.469 0.327 0.456 0.509 0.194 0.174 0.5 0.728 0.124 0.146 0.255 0.123 0.085 0.195 0.281], f: [0.958 0.828 0.854 0.918 0.696 0.656 0.987 0.896 0.94 0.723 0.551 0.763 0.752 0.945 0.648 0.942 0.505 0.608 0.391 0.175 0.826 0.72 0.68], initial_trace: [0 0 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0 0 1 1 0 0 0], [0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0] | [0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0]
| activity_selector |
topological_sort:
A: [[0 0 1 0 0 0 0 1 0 1 1 1 1 0 0 0 0 0 0], [0 0 0 1 0 1 0 0 0 1 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 1 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 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], [1 1 1 0 0 0 0 0 0 1 1 0 0 0 1 0 1 1 0], [0 0 1 0 0 0 0 0 1 0 1 0 1 1 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 1 0 1 0 0 1 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 1 0 0 0 0 1 1 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 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 1 1 1 0 0 1 1 1 1 1 0 0 0 1 0 0], [0 0 1 1 0 0 0 1 1 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], [1 1 0 0 0 0 0 1 0 1 1 1 0 1 1 0 0 0 0], [0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 8, [0 1 8 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 8 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 8 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 8 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 8 3 2 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 4, [0 1 8 3 2 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 4, [0 1 8 3 2 5 6 7 8 9 10 11 12 4 14 15 16 17 18], 13, [0 1 8 3 2 5 6 7 8 9 13 11 12 4 14 15 16 17 18], 10, [0 1 8 3 2 5 6 7 8 9 13 11 12 4 14 15 16 17 18], 10, [0 1 8 3 2 5 6 7 8 9 13 11 10 4 14 15 16 17 18], 12, [0 1 8 3 2 5 6 7 8 9 13 11 10 4 14 15 16 17 18], 12, [0 1 8 3 2 5 6 7 8 9 13 11 10 4 14 15 12 17 18], 16, [0 1 8 3 2 5 6 16 8 9 13 11 10 4 14 15 12 17 18], 7, [0 1 8 3 2 5 6 16 8 9 13 11 10 4 14 15 12 17 18], 7, [0 1 8 3 2 5 6 16 8 7 13 11 10 4 14 15 12 17 18], 9, [0 1 8 3 2 5 6 16 8 7 13 11 10 4 14 15 12 17 18], 9, [0 1 8 3 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 11, [11 1 8 3 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 0, [11 1 8 3 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 0, [11 1 8 3 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 0, [11 1 8 3 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 0, [11 1 8 0 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 3, [11 1 8 0 2 5 6 16 8 7 13 9 10 4 14 15 12 17 18], 3, [11 1 8 0 2 3 6 16 8 7 13 9 10 4 14 15 12 17 18], 5, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 14 15 12 17 18], 1, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 14 15 12 17 18], 1, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 14 15 12 17 18], 1, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 14 15 12 17 18], 1, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 1 15 12 17 18], 14, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 1 15 12 17 18], 14, [11 5 8 0 2 3 6 16 8 7 13 9 10 4 1 15 12 14 18], 17, [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 15 12 14 18], 6, [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 15 12 14 18], 6, [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 15 12 14 18], 6, [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 6 12 14 18], 15, [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 6 12 14 18], 15, [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 6 12 14 18], 15 | [11 5 8 0 2 3 17 16 8 7 13 9 10 4 1 6 12 14 15], 18
| topological_sort |
mst_prim:
s: 8, A: [[0.911 0 0 0.373 0.837 0 0 0 0 0], [0 0.128 0.951 0.596 0 0.061 0 0.203 0 0.168], [0 0.951 0 0.179 0 0.062 0 0 0.734 0], [0.373 0.596 0.179 0.272 0 0 0 0.428 0.967 0], [0.837 0 0 0 0 0 0 0 0 0.829], [0 0.061 0.062 0 0 0.179 0 0 0.17 0.268], [0 0 0 0 0 0 0.896 0.342 0 0.493], [0 0.203 0 0.428 0 0 0.342 0.305 0 0], [0 0 0.734 0.967 0 0.17 0 0 0.811 0.463], [0 0.168 0 0 0.829 0.268 0.493 0 0.463 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 1 8 8 4 8 6 7 8 8], [0 5 5 8 4 8 6 7 8 5], [0 5 5 1 4 8 6 1 8 1], [0 5 5 2 4 8 6 1 8 1], [0 5 5 2 9 8 9 1 8 1], [3 5 5 2 9 8 9 1 8 1], [3 5 5 2 9 8 7 1 8 1], [3 5 5 2 9 8 7 1 8 1], [3 5 5 2 9 8 7 1 8 1] | [3 5 5 2 9 8 7 1 8 1]
| mst_prim |
binary_search:
key: [0.112 0.126 0.137 0.138 0.152 0.162 0.247 0.317 0.347 0.394 0.432 0.743 0.767 0.779 0.83 0.832 0.838 0.841 0.948], target: 0.057, initial_trace: (0, 18)
trace | (low, high):
| (0, 9), (0, 4), (0, 2), (0, 1) | (0, 0)
| binary_search |
jarvis_march:
x: [-1.18 -0.047 0.211 1.68 0.727 0.013 0.856 -1.45 0.019 0.35 -0.142], y: [0.218 0.597 1.18 0.684 0.259 -0.75 -1.8 0.044 -1.97 -0.421 -0.406], initial_trace: [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 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0], [0 0 1 1 0 0 1 1 1 0 0] | [0 0 1 1 0 0 1 1 1 0 0]
| jarvis_march |
naive_string_matcher:
string: [0 0 0 0 0 0 0 0 1 1], key: [3 1 2 1 3 3 3 3 1 2], initial_trace: 0
trace | s:
| 1 | 1
| naive_string_matcher |
bridges:
A: [[0 0 1 0], [0 0 0 0], [1 0 0 0], [0 0 0 0]], initial_trace: [[0 -1 0 -1], [-1 0 -1 -1], [0 -1 0 -1], [-1 -1 -1 0]]
trace | is_bridge:
| [[0 -1 0 -1], [-1 0 -1 -1], [0 -1 0 -1], [-1 -1 -1 0]], [[0 -1 0 -1], [-1 0 -1 -1], [0 -1 0 -1], [-1 -1 -1 0]], [[0 -1 0 -1], [-1 0 -1 -1], [0 -1 0 -1], [-1 -1 -1 0]], [[0 -1 0 -1], [-1 0 -1 -1], [0 -1 0 -1], [-1 -1 -1 0]], [[0 -1 0 -1], [-1 0 -1 -1], [0 -1 0 -1], [-1 -1 -1 0]], [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]] | [[0 -1 1 -1], [-1 0 -1 -1], [1 -1 0 -1], [-1 -1 -1 0]]
| bridges |
segments_intersect:
x: [0.515 0.045 0.063 0.004], y: [0.493 0.295 0.481 0.216]
intersect:
| 0
| segments_intersect |
insertion_sort:
key: [0.551 0.523 0.246 0.314 0.699 0.477 0.082 0.183 0.521 0.209], initial_trace: [0.551 0.523 0.246 0.314 0.699 0.477 0.082 0.183 0.521 0.209]
trace | pred:
| [0.523 0.551 0.246 0.314 0.699 0.477 0.082 0.183 0.521 0.209], [0.246 0.523 0.551 0.314 0.699 0.477 0.082 0.183 0.521 0.209], [0.246 0.314 0.523 0.551 0.699 0.477 0.082 0.183 0.521 0.209], [0.246 0.314 0.523 0.551 0.699 0.477 0.082 0.183 0.521 0.209], [0.246 0.314 0.477 0.523 0.551 0.699 0.082 0.183 0.521 0.209], [0.082 0.246 0.314 0.477 0.523 0.551 0.699 0.183 0.521 0.209], [0.082 0.183 0.246 0.314 0.477 0.523 0.551 0.699 0.521 0.209], [0.082 0.183 0.246 0.314 0.477 0.521 0.523 0.551 0.699 0.209] | [0.082 0.183 0.209 0.246 0.314 0.477 0.521 0.523 0.551 0.699]
| insertion_sort |
topological_sort:
A: [[0 1 0 1], [0 0 0 0], [0 1 0 0], [0 0 0 0]], initial_trace: [0 1 2 3], 0
trace | topo, topo_head:
| [0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 3], 1, [0 1 2 3], 1, [0 1 2 1], 3, [3 1 2 1], 0, [3 1 2 1], 0, [3 1 2 1], 0 | [3 1 0 1], 2
| topological_sort |
segments_intersect:
x: [0.792 0.676 0.768 0.195], y: [0.745 0.072 0.159 0.954]
intersect:
| 1
| segments_intersect |
mst_prim:
s: 5, A: [[0.789 0.703 0.586 0 0 0 0 0 0.59 0], [0.703 0.277 0.315 0.799 0 0.827 0 0 0.632 0], [0.586 0.315 0 0 0 0.359 0 0 0 0], [0 0.799 0 0.769 0 0 0 0.073 0 0], [0 0 0 0 0 0 0.422 0 0 0], [0 0.827 0.359 0 0 0 0 0 0.265 0], [0 0 0 0 0.422 0 0.723 0 0 0], [0 0 0 0.073 0 0 0 0.171 0 0.657], [0.59 0.632 0 0 0 0.265 0 0 0.985 0], [0 0 0 0 0 0 0 0.657 0 0.16]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 5 5 3 4 5 6 7 5 9], [8 8 5 3 4 5 6 7 5 9], [2 2 5 3 4 5 6 7 5 9], [2 2 5 1 4 5 6 7 5 9], [2 2 5 1 4 5 6 7 5 9], [2 2 5 1 4 5 6 3 5 9], [2 2 5 1 4 5 6 3 5 7] | [2 2 5 1 4 5 6 3 5 7]
| mst_prim |
graham_scan:
x: [0.399 -0.205 -0.883 -1.5], y: [-0.569 0.724 1.48 1.25], initial_trace: [0 0 0 0]
trace | in_hull:
| [1 0 0 0], [1 0 0 0], [1 1 0 0], [1 1 1 0] | [1 1 1 1]
| graham_scan |
jarvis_march:
x: [1.12 -1.11 -0.872 -0.644 -0.103], y: [1.56 -0.301 -1.62 0.602 1.3], initial_trace: [0 0 0 0 0]
trace | in_hull:
| [0 0 1 0 0], [0 0 1 0 0], [0 0 1 0 0], [0 0 1 0 0], [0 0 1 0 0], [0 0 1 0 0], [1 0 1 0 0], [1 0 1 0 0], [1 0 1 0 0], [1 0 1 0 0], [1 0 1 0 0], [1 0 1 0 0], [1 0 1 0 1], [1 0 1 0 1], [1 0 1 0 1], [1 0 1 0 1], [1 0 1 0 1], [1 0 1 0 1], [1 0 1 1 1], [1 0 1 1 1], [1 0 1 1 1], [1 0 1 1 1], [1 0 1 1 1], [1 0 1 1 1], [1 1 1 1 1], [1 1 1 1 1], [1 1 1 1 1], [1 1 1 1 1], [1 1 1 1 1] | [1 1 1 1 1]
| jarvis_march |
dfs:
A: [[0 0 1 0 0], [0 1 0 0 0], [0 1 0 1 1], [0 0 0 1 0], [1 0 1 0 1]], initial_trace: [0 1 2 3 4]
trace | pi:
| [0 1 2 3 4], [0 1 0 3 4], [0 1 0 3 4], [0 2 0 3 4], [0 2 0 3 4], [0 2 0 3 4], [0 2 0 2 4], [0 2 0 2 4], [0 2 0 2 4], [0 2 0 2 2], [0 2 0 2 2], [0 2 0 2 2], [0 2 0 2 2] | [0 2 0 2 2]
| dfs |
insertion_sort:
key: [0.774 0.204 0.887 0.268 0.382 0.629 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], initial_trace: [0.774 0.204 0.887 0.268 0.382 0.629 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201]
trace | pred:
| [0.204 0.774 0.887 0.268 0.382 0.629 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.774 0.887 0.268 0.382 0.629 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.268 0.774 0.887 0.382 0.629 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.268 0.382 0.774 0.887 0.629 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.268 0.382 0.629 0.774 0.887 0.208 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.208 0.268 0.382 0.629 0.774 0.887 0.731 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.208 0.268 0.382 0.629 0.731 0.774 0.887 0.739 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.208 0.268 0.382 0.629 0.731 0.739 0.774 0.887 0.235 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.208 0.235 0.268 0.382 0.629 0.731 0.739 0.774 0.887 0.207 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.207 0.208 0.235 0.268 0.382 0.629 0.731 0.739 0.774 0.887 0.464 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.207 0.208 0.235 0.268 0.382 0.464 0.629 0.731 0.739 0.774 0.887 0.339 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.464 0.629 0.731 0.739 0.774 0.887 0.451 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.629 0.731 0.739 0.774 0.887 0.049 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.629 0.731 0.739 0.774 0.887 0.597 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.597 0.629 0.731 0.739 0.774 0.887 0.593 0.04 0.496 0.666 0.693 0.089 0.201], [0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.593 0.597 0.629 0.731 0.739 0.774 0.887 0.04 0.496 0.666 0.693 0.089 0.201], [0.04 0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.593 0.597 0.629 0.731 0.739 0.774 0.887 0.496 0.666 0.693 0.089 0.201], [0.04 0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.496 0.593 0.597 0.629 0.731 0.739 0.774 0.887 0.666 0.693 0.089 0.201], [0.04 0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.496 0.593 0.597 0.629 0.666 0.731 0.739 0.774 0.887 0.693 0.089 0.201], [0.04 0.049 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.496 0.593 0.597 0.629 0.666 0.693 0.731 0.739 0.774 0.887 0.089 0.201], [0.04 0.049 0.089 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.496 0.593 0.597 0.629 0.666 0.693 0.731 0.739 0.774 0.887 0.201] | [0.04 0.049 0.089 0.201 0.204 0.207 0.208 0.235 0.268 0.339 0.382 0.451 0.464 0.496 0.593 0.597 0.629 0.666 0.693 0.731 0.739 0.774 0.887]
| insertion_sort |
minimum:
key: [0.121 0.991 0.828 0.028 0.616 0.071 0.643 0.67 0.241 0.536], initial_trace: 0
trace | min:
| 0, 0, 3, 3, 3, 3, 3, 3 | 3
| minimum |
insertion_sort:
key: [0.478 0.305 0.61 0.637 0.266], initial_trace: [0.478 0.305 0.61 0.637 0.266]
trace | pred:
| [0.305 0.478 0.61 0.637 0.266], [0.305 0.478 0.61 0.637 0.266], [0.305 0.478 0.61 0.637 0.266] | [0.266 0.305 0.478 0.61 0.637]
| insertion_sort |
mst_prim:
s: 5, A: [[0.033 0.405 0 0.689 0 0.582 0 0.434 0 0.688 0], [0.405 0 0.75 0 0 0 0 0 0 0 0], [0 0.75 0.762 0.685 0 0 0.843 0 0 0 0], [0.689 0 0.685 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0.582 0 0 0 0 0 0 0 0 0 0.444], [0 0 0.843 0 0 0 0 0 0 0 0], [0.434 0 0 0 0 0 0 0.564 0 0 0], [0 0 0 0 0 0 0 0 0.032 0 0], [0.688 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.444 0 0 0 0 0.887]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [5 1 2 3 4 5 6 7 8 9 5], [5 1 2 3 4 5 6 7 8 9 5], [5 0 2 0 4 5 6 0 8 0 5], [5 0 1 0 4 5 6 0 8 0 5], [5 0 1 0 4 5 6 0 8 0 5], [5 0 1 0 4 5 6 0 8 0 5], [5 0 3 0 4 5 6 0 8 0 5], [5 0 3 0 4 5 2 0 8 0 5] | [5 0 3 0 4 5 2 0 8 0 5]
| mst_prim |
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 2 2 0 2 1 0 1 3 2 2 1 1 0 0 2 1 1 3 3 0 3 1 0 0 2 1], initial_trace: 0
trace | s:
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 6, 7, 8, 9, 9, 10, 11, 12 | 13
| kmp_matcher |
bellman_ford:
s: 9, A: [[0 0 0 0.099 0.183 0.27 0 0 0 0 0], [0 0.651 0 0.518 0 0 0 0.584 0 0 0], [0 0 0.163 0 0 0.041 0 0 0 0 0], [0.099 0.518 0 0 0 0 0 0 0 0.357 0], [0.183 0 0 0 0.139 0.5 0 0.721 0.395 0 0], [0.27 0 0.041 0 0.5 0.524 0 0 0.564 0 0], [0 0 0 0 0 0 0.896 0.105 0 0 0], [0 0.584 0 0 0.721 0 0.105 0.759 0 0 0], [0 0 0 0 0.395 0.564 0 0 0 0.76 0], [0 0 0 0.357 0 0 0 0 0.76 0.561 0.675], [0 0 0 0 0 0 0 0 0 0.675 0.886]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [0 1 2 9 4 5 6 7 9 9 9], [3 3 2 9 8 8 6 7 9 9 9], [3 3 5 9 0 0 6 1 9 9 9], [3 3 5 9 0 0 7 4 9 9 9] | [3 3 5 9 0 0 7 4 9 9 9]
| bellman_ford |
optimal_bst:
p: [0.041 0.016 0.059 0.073 0.049 0.046 0.055 0.049 0.045 0.074 0], q: [0.072 0.027 0.024 0.077 0.065 0.04 0.021 0.051 0.021 0.044 0.051], 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 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0]]
trace | root:
| [[0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 0 2 0 0 0 0 0 0 0], [0 0 0 0 3 0 0 0 0 0 0], [0 0 0 0 0 4 0 0 0 0 0], [0 0 0 0 0 0 5 0 0 0 0], [0 0 0 0 0 0 0 6 0 0 0], [0 0 0 0 0 0 0 0 7 0 0], [0 0 0 0 0 0 0 0 0 8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0 0 0 0 0 0 0 0 9], [0 0 0 0 0 0 0 0 0 0 0]] | [[0 0 0 2 2 2 3 3 3 3 4], [0 0 1 2 3 3 3 3 3 5 6], [0 0 0 2 3 3 3 3 4 5 6], [0 0 0 0 3 3 4 4 4 5 6], [0 0 0 0 0 4 4 5 6 6 6], [0 0 0 0 0 0 5 6 6 6 7], [0 0 0 0 0 0 0 6 6 7 7], [0 0 0 0 0 0 0 0 7 7 8], [0 0 0 0 0 0 0 0 0 8 9], [0 0 0 0 0 0 0 0 0 0 9], [0 0 0 0 0 0 0 0 0 0 0]]
| optimal_bst |
optimal_bst:
p: [0.07 0.269 0.142 0.008 0], q: [0.097 0.085 0.091 0.01 0.227], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]]
trace | root:
| [[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 1 0 0], [0 0 1 1 0], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 1 1 0], [0 0 1 1 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 1 1 1], [0 0 1 1 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]]
| optimal_bst |
naive_string_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 2 2 1 2 3 1 0 1 3 1 3 2 2 1 1 2 0 3 1 3 1 3], initial_trace: 0
trace | s:
| 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 8, 8 | 8
| naive_string_matcher |
insertion_sort:
key: [0.734 0.14 0.672 0.813 0.961 0.461 0.599 0.791 0.793 0.355 0.604], initial_trace: [0.734 0.14 0.672 0.813 0.961 0.461 0.599 0.791 0.793 0.355 0.604]
trace | pred:
| [0.14 0.734 0.672 0.813 0.961 0.461 0.599 0.791 0.793 0.355 0.604], [0.14 0.672 0.734 0.813 0.961 0.461 0.599 0.791 0.793 0.355 0.604], [0.14 0.672 0.734 0.813 0.961 0.461 0.599 0.791 0.793 0.355 0.604], [0.14 0.672 0.734 0.813 0.961 0.461 0.599 0.791 0.793 0.355 0.604], [0.14 0.461 0.672 0.734 0.813 0.961 0.599 0.791 0.793 0.355 0.604], [0.14 0.461 0.599 0.672 0.734 0.813 0.961 0.791 0.793 0.355 0.604], [0.14 0.461 0.599 0.672 0.734 0.791 0.813 0.961 0.793 0.355 0.604], [0.14 0.461 0.599 0.672 0.734 0.791 0.793 0.813 0.961 0.355 0.604], [0.14 0.355 0.461 0.599 0.672 0.734 0.791 0.793 0.813 0.961 0.604] | [0.14 0.355 0.461 0.599 0.604 0.672 0.734 0.791 0.793 0.813 0.961]
| insertion_sort |
quicksort:
key: [0.274 0.841 0.316 0.656 0.846 0.543 0.228 0.513 0.023 0.366], initial_trace: [0.274 0.841 0.316 0.656 0.846 0.543 0.228 0.513 0.023 0.366]
trace | pred:
| [0.274 0.841 0.316 0.656 0.846 0.543 0.228 0.513 0.023 0.366], [0.274 0.316 0.841 0.656 0.846 0.543 0.228 0.513 0.023 0.366], [0.274 0.316 0.841 0.656 0.846 0.543 0.228 0.513 0.023 0.366], [0.274 0.316 0.841 0.656 0.846 0.543 0.228 0.513 0.023 0.366], [0.274 0.316 0.841 0.656 0.846 0.543 0.228 0.513 0.023 0.366], [0.274 0.316 0.228 0.656 0.846 0.543 0.841 0.513 0.023 0.366], [0.274 0.316 0.228 0.656 0.846 0.543 0.841 0.513 0.023 0.366], [0.274 0.316 0.228 0.023 0.846 0.543 0.841 0.513 0.656 0.366], [0.274 0.316 0.228 0.023 0.366 0.543 0.841 0.513 0.656 0.846], [0.274 0.316 0.228 0.023 0.366 0.543 0.841 0.513 0.656 0.846], [0.274 0.316 0.228 0.023 0.366 0.543 0.841 0.513 0.656 0.846], [0.274 0.316 0.228 0.023 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.316 0.228 0.274 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.316 0.228 0.274 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.316 0.274 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.841 0.513 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.513 0.841 0.656 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.513 0.656 0.841 0.846], [0.023 0.228 0.274 0.316 0.366 0.543 0.513 0.656 0.841 0.846] | [0.023 0.228 0.274 0.316 0.366 0.513 0.543 0.656 0.841 0.846]
| quicksort |
graham_scan:
x: [1.61 1.1 0.006 -0.922 0.848 1.41 -1.03 -0.948 -0.603 -0.587 0.899 -0.806 0.377 -1.08 0.608 -0.849 1.25 0.176 0.675 -1.24 -0.878 1.68 -0.059], y: [0.395 1.08 -1.45 -0.189 -0.991 -0.8 -0.715 0.961 -0.377 -1.58 1.25 -0.466 -0.053 -1.21 -1.45 0.918 0.182 -1.32 -1.76 1.43 -0.355 0.708 1.37], 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 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0], [1 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 0 1 1], [0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1], [0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 1], [0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1], [0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 1], [0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1], [0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1], [0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 1 1] | [0 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 1 1]
| graham_scan |
dijkstra:
s: 15, A: [[0 0 0 0 0 0 0 0.528 0 0 0 0 0 0 0 0 0 0 0], [0 0.611 0 0 0 0.434 0 0 0 0 0 0 0.618 0 0 0 0 0 0.448], [0 0 0 0.724 0 0 0.711 0.612 0 0.331 0 0 0.707 0 0.184 0 0 0 0], [0 0 0.724 0 0 0.444 0.219 0 0.94 0 0 0 0 0 0 0 0.549 0 0], [0 0 0 0 0.092 0.731 0.195 0 0.347 0 0 0 0 0.217 0 0 0 0.422 0], [0 0.434 0 0.444 0.731 0.194 0 0 0.479 0 0.708 0 0 0 0 0 0 0 0.401], [0 0 0.711 0.219 0.195 0 0.412 0 0 0 0 0 0 0 0 0 0.159 0 0], [0.528 0 0.612 0 0 0 0 0.56 0 0 0 0.602 0 0.5 0.399 0 0 0.251 0.141], [0 0 0 0.94 0.347 0.479 0 0 0.223 0.433 0 0 0 0 0 0.499 0 0 0], [0 0 0.331 0 0 0 0 0 0.433 0.562 0 0 0 0.257 0 0 0 0 0], [0 0 0 0 0 0.708 0 0 0 0 0.044 0.712 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.602 0 0 0.712 0.435 0 0.344 0 0 0 0 0], [0 0.618 0.707 0 0 0 0 0 0 0 0 0 0 0.249 0 0 0 0 0], [0 0 0 0 0.217 0 0 0.5 0 0.257 0 0.344 0.249 0.103 0 0 0 0 0], [0 0 0.184 0 0 0 0 0.399 0 0 0 0 0 0 0 0.558 0.204 0.136 0.45], [0 0 0 0 0 0 0 0 0.499 0 0 0 0 0 0.558 0.3 0.232 0 0], [0 0 0 0.549 0 0 0.159 0 0 0 0 0 0 0 0.204 0.232 0 0 0], [0 0 0 0 0.422 0 0 0.251 0 0 0 0 0 0 0.136 0 0 0.549 0], [0 0.448 0 0 0 0.401 0 0.141 0 0 0 0 0 0 0.45 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
trace | pi:
| [0 1 2 3 4 5 6 7 15 9 10 11 12 13 15 15 15 17 18], [0 1 2 16 4 5 16 7 15 9 10 11 12 13 16 15 15 17 18], [0 1 6 6 6 5 16 7 15 9 10 11 12 13 16 15 15 17 18], [0 1 14 6 6 5 16 14 15 9 10 11 12 13 16 15 15 14 14], [0 1 14 6 6 8 16 14 15 8 10 11 12 13 16 15 15 14 14], [0 1 14 6 6 8 16 17 15 8 10 11 12 13 16 15 15 14 14], [0 1 14 6 6 8 16 17 15 8 10 11 12 4 16 15 15 14 14], [0 1 14 6 6 8 16 17 15 8 10 11 12 4 16 15 15 14 14], [0 1 14 6 6 8 16 17 15 8 10 11 2 4 16 15 15 14 14], [0 1 14 6 6 8 16 17 15 8 10 13 13 4 16 15 15 14 14], [7 1 14 6 6 8 16 17 15 8 10 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 10 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 10 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 5 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 5 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 5 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 5 13 13 4 16 15 15 14 14], [7 18 14 6 6 8 16 17 15 8 5 13 13 4 16 15 15 14 14] | [7 18 14 6 6 8 16 17 15 8 5 13 13 4 16 15 15 14 14]
| dijkstra |
bubble_sort:
key: [0.971 0.144 0.13 0.068], initial_trace: [0.971 0.144 0.13 0.068]
trace | pred:
| [0.971 0.144 0.068 0.13], [0.971 0.068 0.144 0.13], [0.068 0.971 0.144 0.13], [0.068 0.971 0.13 0.144], [0.068 0.13 0.971 0.144] | [0.068 0.13 0.144 0.971]
| bubble_sort |
dijkstra:
s: 18, A: [[0.157 0 0 0 0 0.47 0.565 0 0 0 0 0 0.828 0.802 0 0 0.194 0 0 0 0.513 0 0], [0 0 0 0 0 0 0 0 0 0 0.287 0 0.156 0 0 0 0 0.927 0 0 0.594 0 0], [0 0 0.891 0.654 0 0 0 0.784 0 0 0.451 0.559 0 0 0 0 0 0.115 0 0 0 0 0], [0 0 0.654 0.704 0 0 0 0.706 0 0 0 0 0 0 0 0.442 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.645 0.194 0 0 0.583 0 0 0 0 0.268 0 0.203], [0.47 0 0 0 0 0 0.598 0 0 0.235 0 0 0 0 0.611 0 0 0 0 0 0 0 0], [0.565 0 0 0 0 0.598 0 0 0 0 0 0 0.288 0.311 0 0.341 0 0 0 0 0.272 0.386 0], [0 0 0.784 0.706 0 0 0 0 0.408 0 0 0.415 0.178 0.207 0.706 0 0 0.733 0.572 0 0 0 0], [0 0 0 0 0 0 0 0.408 0.226 0.475 0 0.268 0 0 0 0 0 0 0.534 0.952 0 0 0], [0 0 0 0 0 0.235 0 0 0.475 0 0 0 0 0.149 0 0 0 0 0.182 0 0.262 0 0.115], [0 0.287 0.451 0 0 0 0 0 0 0 0.222 0 0.176 0.159 0 0 0 0 0 0 0 0 0], [0 0 0.559 0 0.645 0 0 0.415 0.268 0 0 0.042 0.392 0 0 0 0 0 0 0 0 0 0], [0.828 0.156 0 0 0.194 0 0.288 0.178 0 0 0.176 0.392 0 0 0 0.411 0.686 0.154 0 0 0 0.518 0], [0.802 0 0 0 0 0 0.311 0.207 0 0.149 0.159 0 0 0.067 0.804 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.611 0 0.706 0 0 0 0 0 0.804 0.257 0 0 0 0.333 0 0 0 0], [0 0 0 0.442 0.583 0 0.341 0 0 0 0 0 0.411 0 0 0 0 0 0.926 0 0.11 0 0.811], [0.194 0 0 0 0 0 0 0 0 0 0 0 0.686 0 0 0 0 0 0.768 0.61 0 0 0], [0 0.927 0.115 0 0 0 0 0.733 0 0 0 0 0.154 0 0 0 0 0.327 0.68 0 0 0.051 0], [0 0 0 0 0 0 0 0.572 0.534 0.182 0 0 0 0 0.333 0.926 0.768 0.68 0.493 0.483 0.441 0 0], [0 0 0 0 0 0 0 0 0.952 0 0 0 0 0 0 0 0.61 0 0.483 0 0 0.352 0], [0.513 0.594 0 0 0.268 0 0.272 0 0 0.262 0 0 0 0 0 0.11 0 0 0.441 0 0 0 0], [0 0 0 0 0 0 0.386 0 0 0 0 0 0.518 0 0 0 0 0.051 0 0.352 0 0.78 0], [0 0 0 0 0.203 0 0 0 0 0.115 0 0 0 0 0 0.811 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22]
trace | pi:
| [0 1 2 3 4 5 6 18 18 18 10 11 12 13 18 18 18 18 18 18 18 21 22], [0 1 2 3 4 9 6 18 18 18 10 11 12 9 18 18 18 18 18 18 18 21 9], [0 1 2 3 22 9 6 18 18 18 10 11 12 9 18 18 18 18 18 18 18 21 9], [13 1 2 3 22 9 13 13 18 18 13 11 12 9 18 18 18 18 18 18 18 21 9], [13 1 2 3 22 9 13 13 18 18 13 11 12 9 18 18 18 18 18 18 18 21 9], [5 1 2 3 22 9 13 13 18 18 13 11 12 9 18 18 18 18 18 18 18 21 9], [5 20 2 3 22 9 13 13 18 18 13 11 12 9 18 20 18 18 18 18 18 21 9], [5 20 2 3 22 9 13 13 18 18 13 11 12 9 18 20 18 18 18 18 18 19 9], [5 10 10 3 22 9 13 13 18 18 13 11 10 9 18 20 18 18 18 18 18 19 9], [5 10 10 3 22 9 13 13 18 18 13 4 10 9 18 20 18 18 18 18 18 19 9], [5 10 10 3 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 19 9], [5 10 10 7 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 19 9], [5 10 10 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 19 9], [5 10 10 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 19 9], [5 10 10 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 19 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9], [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9] | [5 10 17 15 22 9 13 13 18 18 13 8 10 9 18 20 18 18 18 18 18 17 9]
| dijkstra |
insertion_sort:
key: [0.365 0.06 0.261 0.259 0.919 0.143 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], initial_trace: [0.365 0.06 0.261 0.259 0.919 0.143 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944]
trace | pred:
| [0.06 0.365 0.261 0.259 0.919 0.143 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.261 0.365 0.259 0.919 0.143 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.259 0.261 0.365 0.919 0.143 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.259 0.261 0.365 0.919 0.143 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.365 0.919 0.321 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.365 0.919 0.733 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.365 0.733 0.919 0.681 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.365 0.681 0.733 0.919 0.45 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.365 0.45 0.681 0.733 0.919 0.335 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.45 0.681 0.733 0.919 0.711 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.45 0.681 0.711 0.733 0.919 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.45 0.681 0.711 0.733 0.919 0.967 0.853 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.45 0.681 0.711 0.733 0.853 0.919 0.967 0.469 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.45 0.469 0.681 0.711 0.733 0.853 0.919 0.967 0.386 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.386 0.45 0.469 0.681 0.711 0.733 0.853 0.919 0.967 0.516 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.259 0.261 0.321 0.335 0.365 0.386 0.45 0.469 0.516 0.681 0.711 0.733 0.853 0.919 0.967 0.219 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.219 0.259 0.261 0.321 0.335 0.365 0.386 0.45 0.469 0.516 0.681 0.711 0.733 0.853 0.919 0.967 0.375 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.219 0.259 0.261 0.321 0.335 0.365 0.375 0.386 0.45 0.469 0.516 0.681 0.711 0.733 0.853 0.919 0.967 0.358 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.219 0.259 0.261 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.681 0.711 0.733 0.853 0.919 0.967 0.651 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.143 0.219 0.259 0.261 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.919 0.967 0.129 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.129 0.143 0.219 0.259 0.261 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.919 0.967 0.277 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.129 0.143 0.219 0.259 0.261 0.277 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.919 0.967 0.855 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.129 0.143 0.219 0.259 0.261 0.277 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.855 0.919 0.967 0.293 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.855 0.919 0.967 0.066 0.874 0.79 0.601 0.369 0.944], [0.06 0.066 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.855 0.919 0.967 0.874 0.79 0.601 0.369 0.944], [0.06 0.066 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.853 0.855 0.874 0.919 0.967 0.79 0.601 0.369 0.944], [0.06 0.066 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.651 0.681 0.711 0.733 0.79 0.853 0.855 0.874 0.919 0.967 0.601 0.369 0.944], [0.06 0.066 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.375 0.386 0.45 0.469 0.516 0.601 0.651 0.681 0.711 0.733 0.79 0.853 0.855 0.874 0.919 0.967 0.369 0.944], [0.06 0.066 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.369 0.375 0.386 0.45 0.469 0.516 0.601 0.651 0.681 0.711 0.733 0.79 0.853 0.855 0.874 0.919 0.967 0.944] | [0.06 0.066 0.129 0.143 0.219 0.259 0.261 0.277 0.293 0.321 0.335 0.358 0.365 0.369 0.375 0.386 0.45 0.469 0.516 0.601 0.651 0.681 0.711 0.733 0.79 0.853 0.855 0.874 0.919 0.944 0.967]
| insertion_sort |
bfs:
s: 10, A: [[0 0 0 0 0 0 0 0 1 1 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 0 0 0 1 0 1 0 1], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 1 0 0 1 1 0], [0 0 0 1 0 0 1 0 0 0 1], [0 0 0 0 0 0 0 0 1 0 0], [1 0 0 1 0 1 0 1 0 0 0], [1 1 0 0 0 1 0 0 0 1 0], [0 0 1 1 0 0 1 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [0 1 10 10 4 5 10 7 8 9 10], [0 1 10 10 4 5 10 7 3 9 10], [8 1 10 10 4 8 10 8 3 9 10], [8 1 10 10 4 8 10 8 3 0 10] | [8 9 10 10 4 8 10 8 3 0 10]
| bfs |
segments_intersect:
x: [0.589 0.152 0.344 0.184], y: [0.556 0.835 0.986 0.416]
intersect:
| 1
| segments_intersect |
mst_prim:
s: 3, A: [[0.857 0 0.242 0 0], [0 0 0.326 0.666 0], [0.242 0.326 0 0 0], [0 0.666 0 0.224 0], [0 0 0 0 0.501]], initial_trace: [0 1 2 3 4]
trace | pi:
| [0 3 2 3 4], [0 3 1 3 4], [2 3 1 3 4] | [2 3 1 3 4]
| mst_prim |
mst_prim:
s: 13, A: [[0 0 0 0 0 0.69 0 0 0 0 0 0 0 0 0.691 0 0 0 0 0 0 0 0.6 0.198 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.558 0 0 0 0 0 0 0 0 0 0 0.591], [0 0 0.683 0 0.284 0.551 0 0.279 0 0 0 0 0 0 0 0 0 0 0 0 0.801 0 0.097 0 0 0 0 0.228], [0 0 0 0.866 0.28 0 0.399 0 0.106 0 0 0 0 0 0 0 0.41 0.407 0 0 0 0 0 0 0 0 0.393 0.62], [0 0 0.284 0.28 0.083 0 0 0 0.291 0 0 0 0 0 0 0 0 0 0 0 0 0 0.295 0.357 0 0.232 0 0], [0.69 0 0.551 0 0 0.989 0 0 0.233 0 0 0 0 0.276 0 0 0.321 0 0 0 0 0 0 0 0 0.934 0 0], [0 0 0 0.399 0 0 0.452 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0 0.228 0], [0 0 0.279 0 0 0 0 0.916 0.497 0 0.839 0 0 0 0 0 0 0.414 0.129 0 0 0 0.46 0 0 0 0 0], [0 0 0 0.106 0.291 0.233 0 0.497 0.931 0 0 0 0 0 0 0.416 0 0 0.101 0 0.569 0 0 0.382 0 0.135 0 0], [0 0 0 0 0 0 0 0 0 0.165 0 0 0.204 0 0 0 0.126 0.314 0 0.25 0 0 0 0 0.85 0 0 0.484], [0 0 0 0 0 0 0 0.839 0 0 0 0 0 0 0.399 0 0 0 0 0 0.258 0.815 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.782 0 0.248 0.791 0 0 0 0 0 0 0 0.326 0 0.664 0.382 0.178 0], [0 0 0 0 0 0 0 0 0 0.204 0 0 0 0 0 0 0 0 0 0.178 0 0 0.66 0 0 0.19 0 0], [0 0 0 0 0 0.276 0 0 0 0 0 0.248 0 0.684 0 0 0 0 0 0 0 0 0 0 0.58 0.446 0 0], [0.691 0 0 0 0 0 0 0 0 0 0.399 0.791 0 0 0 0 0 0 0 0 0.11 0 0 0.867 0 0 0.767 0], [0 0 0 0 0 0 0 0 0.416 0 0 0 0 0 0 0 0.765 0 0 0 0 0 0.533 0 0 0 0 0], [0 0.558 0 0.41 0 0.321 0 0 0 0.126 0 0 0 0 0 0.765 0 0 0 0 0 0 0 0 0 0 0 0.804], [0 0 0 0.407 0 0 0 0.414 0 0.314 0 0 0 0 0 0 0 0 0 0 0.329 0.284 0 0 0 0 0 0.782], [0 0 0 0 0 0 0 0.129 0.101 0 0 0 0 0 0 0 0 0 0 0 0.304 0.172 0.825 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.25 0 0 0.178 0 0 0 0 0 0 0 0 0.165 0 0 0 0.709 0.849 0], [0 0 0.801 0 0 0 0 0 0.569 0 0.258 0 0 0 0.11 0 0 0.329 0.304 0 0.965 0 0.856 0 0 0 0 0.507], [0 0 0 0 0 0 0 0 0 0 0.815 0 0 0 0 0 0 0.284 0.172 0.165 0 0 0 0 0.634 0.291 0 0], [0.6 0 0.097 0 0.295 0 0 0.46 0 0 0 0.326 0.66 0 0 0.533 0 0 0.825 0 0.856 0 0.2 0.833 0.659 0 0.222 0], [0.198 0 0 0 0.357 0 0 0 0.382 0 0 0 0 0 0.867 0 0 0 0 0 0 0 0.833 0.39 0 0 0 0], [0 0 0 0 0 0 0.5 0 0 0.85 0 0.664 0 0.58 0 0 0 0 0 0 0 0.634 0.659 0 0.842 0.149 0 0.779], [0 0 0 0 0.232 0.934 0 0 0.135 0 0 0.382 0.19 0.446 0 0 0 0 0 0.709 0 0.291 0 0 0.149 0.262 0 0], [0 0 0 0.393 0 0 0.228 0 0 0 0 0.178 0 0 0.767 0 0 0 0 0.849 0 0 0.222 0 0 0 0.3 0], [0 0.591 0.228 0.62 0 0 0 0 0 0.484 0 0 0 0 0 0 0.804 0.782 0 0 0.507 0 0 0 0.779 0 0 0.247]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27]
trace | pi:
| [0 1 2 3 4 13 6 7 8 9 10 13 12 13 14 15 16 17 18 19 20 21 22 23 13 13 26 27], [0 1 2 3 4 13 6 7 8 9 10 13 12 13 11 15 16 17 18 19 20 21 11 23 13 11 11 27], [0 1 2 26 4 13 26 7 8 9 10 13 12 13 26 15 16 17 18 26 20 21 26 23 13 11 11 27], [22 1 22 26 22 13 26 22 8 9 10 13 22 13 26 22 16 17 22 26 22 21 26 22 13 11 11 27], [22 1 22 26 2 13 26 2 8 9 10 13 22 13 26 22 16 17 22 26 2 21 26 22 13 11 11 2], [22 27 22 26 2 13 26 2 8 27 10 13 22 13 26 22 27 27 22 26 27 21 26 22 13 11 11 2], [22 27 22 26 2 13 26 2 8 27 10 13 22 13 26 22 27 27 22 26 27 21 26 22 6 11 11 2], [22 27 22 26 2 13 26 2 5 27 10 13 22 13 26 22 5 27 22 26 27 21 26 22 6 11 11 2], [22 27 22 8 2 13 26 2 5 27 10 13 22 13 26 8 5 27 8 26 27 21 26 8 6 8 11 2], [22 27 22 8 2 13 26 18 5 27 10 13 22 13 26 8 5 27 8 26 18 18 26 8 6 8 11 2], [22 27 22 8 3 13 26 18 5 27 10 13 22 13 26 8 5 3 8 26 18 18 26 8 6 8 11 2], [22 27 22 8 3 13 26 18 5 27 7 13 22 13 26 8 5 3 8 26 18 18 26 8 6 8 11 2], [22 27 22 8 25 13 26 18 5 27 7 13 25 13 26 8 5 3 8 25 18 18 26 8 25 8 11 2], [22 27 22 8 25 13 26 18 5 27 7 13 25 13 26 8 5 3 8 25 18 18 26 8 25 8 11 2], [22 27 22 8 25 13 26 18 5 27 21 13 25 13 26 8 5 21 8 21 18 18 26 8 25 8 11 2], [22 27 22 8 25 13 26 18 5 19 21 13 19 13 26 8 5 21 8 21 18 18 26 8 25 8 11 2], [22 27 22 8 25 13 26 18 5 12 21 13 19 13 26 8 5 21 8 21 18 18 26 8 25 8 11 2], [22 27 22 8 25 13 26 18 5 12 21 13 19 13 26 8 9 21 8 21 18 18 26 8 25 8 11 2], [22 16 22 8 25 13 26 18 5 12 21 13 19 13 26 8 9 21 8 21 18 18 26 8 25 8 11 2], [22 16 22 8 25 13 26 18 5 12 21 13 19 13 26 8 9 21 8 21 18 18 26 4 25 8 11 2], [22 16 22 8 25 13 26 18 5 12 21 13 19 13 26 8 9 21 8 21 18 18 26 4 25 8 11 2], [22 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2], [22 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2], [22 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2], [23 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2], [23 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2], [23 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2] | [23 16 22 8 25 13 26 18 5 12 20 13 19 13 20 8 9 21 8 21 18 18 26 4 25 8 11 2]
| mst_prim |
graham_scan:
x: [0.046 -0.678 -1.12 1.67 -1.16 -0.567 0.09 0.631 -0.382 -1.59], y: [1.46 1.47 0.784 0.826 -1.53 -1.67 -0.432 0.398 0.749 -1.02], initial_trace: [0 0 0 0 0 0 0 0 0 0]
trace | in_hull:
| [0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 1 0 0 0 0], [0 0 0 1 0 1 0 0 0 0], [0 0 0 1 0 1 0 1 0 0], [0 0 0 1 0 1 1 1 0 0], [0 0 0 1 0 1 0 1 0 0], [0 0 0 1 0 1 0 0 0 0], [1 0 0 1 0 1 0 0 0 0], [1 0 0 1 0 1 0 0 1 0], [1 0 0 1 0 1 0 0 0 0], [1 1 0 1 0 1 0 0 0 0], [1 1 1 1 0 1 0 0 0 0], [1 1 1 1 0 1 0 0 0 1] | [1 1 1 1 1 1 0 0 0 1]
| graham_scan |
articulation_points:
A: [[0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 1 0 0 1 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 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], [1 0 0 0 0 0 0 1 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0]], initial_trace: [0 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 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0] | [0 1 0 0 0 0 0 0 0 0 0]
| articulation_points |
articulation_points:
A: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 1]], initial_trace: [0 0 0 0]
trace | is_cut:
| [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0] | [0 0 0 0]
| articulation_points |
graham_scan:
x: [0.216 1.47 -1.78 0.325 -0.752 1.73 1.61 -0.936 0.254 -0.672], y: [1.77 -0.263 -0.803 0.16 -1.29 0.96 0.661 -0.643 -1.21 -0.456], initial_trace: [0 0 0 0 0 0 0 0 0 0]
trace | in_hull:
| [0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 0 0 0 1 0], [0 1 0 0 1 0 0 0 1 0], [0 1 0 0 1 0 1 0 1 0], [0 1 0 0 1 0 0 0 1 0], [0 1 0 0 1 1 0 0 1 0], [0 1 0 1 1 1 0 0 1 0], [0 1 0 0 1 1 0 0 1 0], [1 1 0 0 1 1 0 0 1 0], [1 1 0 0 1 1 0 0 1 1], [1 1 0 0 1 1 0 0 1 0], [1 1 0 0 1 1 0 1 1 0], [1 1 0 0 1 1 0 0 1 0] | [1 1 1 0 1 1 0 0 1 0]
| graham_scan |
dijkstra:
s: 1, A: [[0 0 0 0 0 0 0 0.154 0.223 0 0.242 0.558], [0 0.798 0 0.194 0 0 0.276 0 0.36 0 0 0.241], [0 0 0.206 0 0.359 0 0.588 0 0 0 0 0], [0 0.194 0 0.222 0 0 0 0 0 0 0 0], [0 0 0.359 0 0 0 0.045 0.421 0 0 0 0], [0 0 0 0 0 0 0 0.415 0 0 0 0], [0 0.276 0.588 0 0.045 0 0.406 0 0 0 0.208 0], [0.154 0 0 0 0.421 0.415 0 0.056 0 0 0.466 0], [0.223 0.36 0 0 0 0 0 0 0.853 0.566 0.209 0], [0 0 0 0 0 0 0 0 0.566 0 0.633 0], [0.242 0 0 0 0 0 0.208 0.466 0.209 0.633 0 0.386], [0.558 0.241 0 0 0 0 0 0 0 0 0.386 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11]
trace | pi:
| [0 1 2 1 4 5 1 7 1 9 10 1], [0 1 2 1 4 5 1 7 1 9 10 1], [11 1 2 1 4 5 1 7 1 9 11 1], [11 1 6 1 6 5 1 7 1 9 6 1], [11 1 4 1 6 5 1 4 1 9 6 1], [8 1 4 1 6 5 1 4 1 8 6 1], [8 1 4 1 6 5 1 4 1 8 6 1], [8 1 4 1 6 5 1 0 1 8 6 1], [8 1 4 1 6 5 1 0 1 8 6 1], [8 1 4 1 6 7 1 0 1 8 6 1], [8 1 4 1 6 7 1 0 1 8 6 1] | [8 1 4 1 6 7 1 0 1 8 6 1]
| dijkstra |
dfs:
A: [[0 0 1 1 0 1 1 0 0 0], [1 0 1 1 0 0 1 0 0 1], [1 1 1 0 0 1 0 0 1 1], [0 1 0 1 0 0 1 0 1 0], [0 1 1 1 0 0 1 1 0 1], [1 1 0 1 0 1 1 0 1 0], [1 1 0 1 0 1 0 1 1 0], [0 1 1 1 0 1 0 1 0 1], [0 1 0 0 0 0 0 0 1 1], [1 0 0 1 0 0 1 1 1 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 0 3 4 5 6 7 8 9], [0 1 0 3 4 5 6 7 8 9], [0 2 0 3 4 5 6 7 8 9], [0 2 0 3 4 5 6 7 8 9], [0 2 0 1 4 5 6 7 8 9], [0 2 0 1 4 5 6 7 8 9], [0 2 0 1 4 5 3 7 8 9], [0 2 0 1 4 5 3 7 8 9], [0 2 0 1 4 6 3 7 8 9], [0 2 0 1 4 6 3 7 8 9], [0 2 0 1 4 6 3 7 5 9], [0 2 0 1 4 6 3 7 5 9], [0 2 0 1 4 6 3 7 5 8], [0 2 0 1 4 6 3 7 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8], [0 2 0 1 4 6 3 9 5 8] | [0 2 0 1 4 6 3 9 5 8]
| dfs |
quickselect:
key: [0.646 0.51 0.554 0.317 0.121 0.704 0.613 0.587 0.004 0.776 0.927 0.537 0.969 0.78 0.165 0.696 0.784 0.853 0.467 0.679 0.874 0.134 0.293 0.725 0.861 0.044 0.467 0.199], 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 11, 11, 11, 11, 11, 11, 11, 11, 15, 15, 15, 15, 15, 15, 0, 0, 0, 0, 0, 2, 2, 2, 6 | 6
| quickselect |
bubble_sort:
key: [0.278 0.297 0.576 0.329], initial_trace: [0.278 0.297 0.576 0.329]
trace | pred:
| [0.278 0.297 0.329 0.576], [0.278 0.297 0.329 0.576], [0.278 0.297 0.329 0.576], [0.278 0.297 0.329 0.576], [0.278 0.297 0.329 0.576] | [0.278 0.297 0.329 0.576]
| bubble_sort |
dfs:
A: [[0 0 0 0], [0 0 0 0], [0 0 0 1], [1 0 1 1]], 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], [0 1 2 2], [0 1 2 2], [0 1 2 2] | [0 1 2 2]
| dfs |
find_maximum_subarray_kadane:
key: [0.442 -0.164 -0.578 0.236 0.845 -0.702 -0.847 -0.834 0.879 -0.696 0.513 0.493 0.957 0.114 -0.826 -0.008 0.352 0.251 0.491 0.58 -0.312 -0.719 -0.198], initial_trace: (0, 0)
trace | (best_low, best_high):
| (0, 0), (0, 0), (0, 0), (3, 4), (3, 4), (3, 4), (3, 4), (3, 4), (3, 4), (3, 4), (8, 11), (8, 12), (8, 13), (8, 13), (8, 13), (8, 13), (8, 13), (8, 18), (8, 19), (8, 19), (8, 19) | (8, 19)
| find_maximum_subarray_kadane |
task_scheduling:
d: [2 18 3 14 12 16 13 14 24 14 17 26 27 22 18 15 7 7 27 22 13 11 5 1 10 17 12 25], w: [0.851 0.926 0.19 0.624 0.309 0.647 0.363 0.012 0.557 0.604 0.177 0.504 0.214 0.064 0.131 0.274 0.602 0.14 0.365 0.884 0.944 0.695 0.863 0.22 0.808 0.222 0.459 0.153], 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 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 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 1 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 1 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 0 0 1 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 0 0 1 1 0 1 0 1 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 1 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0], [0 1 0 1 0 1 0 0 1 1 0 1 0 0 0 0 0 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