Datasets:

question
stringlengths
65
3.42k
answer
stringlengths
3
5.8k
algo_name
stringclasses
30 values
bellman_ford: s: 6, A: [[0.419 0.362 0 0 0 0 0 0.752 0.664 0 0 0], [0.362 0 0 0 0 0 0 0 0 0.497 0 0], [0 0 0 0.473 0 0.422 0 0 0.04 0 0 0], [0 0 0.473 0 0 0.536 0.727 0.541 0 0 0 0], [0 0 0 0 0 0.624 0 0 0 0 0 0.149], [0 0 0.422 0.536 0.624 0.541 0 0 0 0.327 0 0], [0 0 0 0.727 0 0 0 0 0 0 0 0.445], [0.752 0 0 0.541 0 0 0 0.402 0 0 0 0], [0.664 0 0.04 0 0 0 0 0 0.179 0 0 0.365], [0 0.497 0 0 0 0.327 0 0 0 0 0 0.314], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.149 0 0.445 0 0.365 0.314 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 6 4 5 6 7 8 9 10 6], [0 1 3 6 11 3 6 3 11 11 10 6] | [8 9 8 6 11 9 6 3 11 11 10 6]
bellman_ford
dag_shortest_paths: s: 4, A: [[0 0 0.758 0.441 0.0621], [0 0 0.502 0 0], [0 0 0 0 0], [0 0.00305 0 0 0.515], [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
task_scheduling: d: [3 9 1 5 6 6 6 8 4 6], w: [0.099 0.877 0.273 0.314 0.745 0.174 0.543 0.029 0.385 0.273], initial_trace: [0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 1 0 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0], [0 1 0 0 1 0 1 0 0 0], [0 1 0 0 1 0 1 0 1 0], [0 1 0 1 1 0 1 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 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]
task_scheduling
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: [3 2 1 0 1 3 0 1 3 1 3 1 1 2 2 1 0 2 3 3 2 1 0], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0 | 0
kmp_matcher
bellman_ford: s: 0, A: [[0.117 0 0 0 0.787 0 0.6 0 0.816 0 0.605], [0 0.545 0 0 0 0 0.441 0.401 0.12 0 0.244], [0 0 0 0 0.375 0 0.652 0 0.486 0 0], [0 0 0 0 0 0 0.779 0 0 0 0], [0.787 0 0.375 0 0.034 0 0 0 0.4 0.12 0], [0 0 0 0 0 0.498 0.054 0 0 0 0.402], [0.6 0.441 0.652 0.779 0 0.054 0 0.187 0 0 0.433], [0 0.401 0 0 0 0 0.187 0.465 0 0 0], [0.816 0.12 0.486 0 0.4 0 0 0 0.362 0 0], [0 0 0 0 0.12 0 0 0 0 0.039 0], [0.605 0.244 0 0 0 0.402 0.433 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 1 2 3 0 5 0 7 0 9 0] | [0 10 4 6 0 6 0 6 0 4 0]
bellman_ford
strongly_connected_components: A: [[1 0 0 1 0 0 0 1 0 0 0 0], [0 1 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 1 1 0 0 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 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 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 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 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 7 8 9 10 11], [0 1 2 3 4 2 6 0 8 9 10 11], [0 1 2 0 4 2 6 0 8 9 10 11], [0 1 2 0 4 2 6 0 8 9 10 11] | [0 1 2 0 4 2 6 0 8 9 10 11]
strongly_connected_components
segments_intersect: x: [0.919 0.287 0.519 0.006], y: [0.127 0.943 0.833 0.018] intersect:
1
segments_intersect
matrix_chain_order: p: [0.156 0.645 0.052 0.709], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] trace | s:
[[0 0 0 0], [0 0 1 0], [0 0 0 2], [0 0 0 0]] | [[0 0 0 0], [0 0 1 2], [0 0 0 2], [0 0 0 0]]
matrix_chain_order
graham_scan: x: [-0.121 -1.6 0.598 0.585 0.228 1.62 -0.048 1.25 0.191 -1.18 -1.68 0.433 1.5 -0.961 0.486 0.965 -0.511 -0.568 0.809 -0.454 1.5 0.261 -0.258], y: [1.2 0.472 -0.634 1.67 1.72 0.255 0.205 1.24 0.499 -0.607 0.852 -1.37 1.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0.148 0 0 0], [0 0 0 0 0 0 0.56 0 0.466 0 0], [0 0 0 0.931 0 0 0 0 0 0 0], [0.611 0 0 0.466 0 0 0 0 0 0 0], [0 0 0 0.667 0 0 0.424 0.113 0 0 0], [0.235 0 0 0 0 0 0.224 0 0 0 0], [0.443 0 0.839 0 0 0.115 0.472 0 0.882 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 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 2 6 7 8 2 10], [9 1 2 3 4 2 9 7 8 2 10], [9 1 2 3 4 2 9 7 5 2 10], [9 1 2 8 4 2 9 8 5 2 10], [9 1 2 7 4 2 9 8 5 2 10], [9 1 2 0 4 2 9 8 5 2 10] | [9 1 2 0 4 2 9 8 5 2 10]
dag_shortest_paths
activity_selector: s: [0.168 0.791 0.115 0.183 0.269 0.004 0.726 0.209 0.13 0.577 0.685 0.22 0.939 0.263 0.775], f: [0.491 0.796 0.577 0.288 0.617 0.864 0.894 0.255 0.169 0.998 0.773 0.57 0.958 0.867 0.832], 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 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 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 1 0 0 1 1 0 0 0 0 0 0], [0 0 0 0 1 0 0 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 1 1 0 1 0 0 0 0], [0 1 0 0 1 0 0 1 1 0 1 0 1 0 0] | [0 1 0 0 1 0 0 1 1 0 1 0 1 0 0]
activity_selector
binary_search: key: [0.073 0.281 0.371 0.584 0.655 0.67 0.726 0.787 0.798 0.856 0.992], target: 0.858, initial_trace: (0, 10) trace | (low, high):
(6, 10), (9, 10) | (10, 10)
binary_search
bfs: s: 18, A: [[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 1 1 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 1 0 1 0 0 0 1 1 1 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 1 0 0 0 1 0 0 0 0 0 1 0 0 0], [0 0 1 0 1 1 1 0 1 0 1 0 0 0 0 0 0 1 1], [1 0 0 0 0 1 1 1 0 1 1 0 0 0 0 1 0 0 1], [1 1 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0], [0 1 0 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0], [0 0 0 1 1 0 1 0 0 1 0 0 0 1 0 0 0 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 0 1 1 0 0 1 0 0 0 0 0 1 0], [0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0], [0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0], [1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1], [0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 1], [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 1 0 0 0 1 0 0 1 0 0 0 0], [0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 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 18 18 7 8 18 10 11 12 13 18 18 18 17 18], [6 1 5 9 5 18 18 6 5 18 5 11 14 9 18 18 18 5 18] | [6 7 5 9 5 18 18 6 5 18 5 2 14 9 18 18 18 5 18]
bfs
task_scheduling: d: [10 4 8 7 11 10 7 7 1 7 2], w: [0.843 0.246 0.927 0.32 0.406 0.181 0.448 0.114 0.735 0.675 0.233], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[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 1 0], [1 0 1 0 0 0 1 0 0 1 0], [1 0 1 0 1 0 1 0 0 1 0], [1 0 1 1 1 0 1 0 0 1 0], [1 0 1 1 1 0 1 0 0 1 0], [1 0 1 1 1 0 1 0 0 1 0], [1 0 1 1 1 1 1 0 0 1 0] | [1 0 1 1 1 1 1 0 0 1 0]
task_scheduling
minimum: key: [0.399 0.124 0.143 0 0.136 0.539 0.081 0.539 0.04 0.036 0.367], initial_trace: 0 trace | min:
1, 1, 3, 3, 3, 3, 3, 3, 3 | 3
minimum
graham_scan: x: [-0.792 -1.17 1.48 1.6 -0.765 0.672 1.43 0.483 -0.904 0.609 1.82], y: [1.35 -0.206 -0.99 1.18 -0.76 1.42 -0.749 -1.01 0.614 -0.185 0.688], 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 1 0 0 0 0 1 0 0 0], [0 0 1 0 0 0 1 1 0 0 0], [0 0 1 0 0 0 0 1 0 0 0], [0 0 1 0 0 0 0 1 0 0 1], [0 0 1 1 0 0 0 1 0 0 1], [0 0 1 1 0 0 0 1 0 1 1], [0 0 1 1 0 0 0 1 0 0 1], [0 0 1 1 0 1 0 1 0 0 1], [1 0 1 1 0 1 0 1 0 0 1], [1 0 1 1 0 1 0 1 1 0 1], [1 0 1 1 0 1 0 1 0 0 1], [1 1 1 1 0 1 0 1 0 0 1] | [1 1 1 1 1 1 0 1 0 0 1]
graham_scan
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [2 2 2 1 1 1 0 1 2 3 1 0 1 0 1], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 1, 2, 2, 3, 3, 4 | 5
kmp_matcher
insertion_sort: key: [0.613 0.489 0.571 0.107 0.883 0.373 0.338 0.025 0.947 0.852], initial_trace: [0.613 0.489 0.571 0.107 0.883 0.373 0.338 0.025 0.947 0.852] trace | pred:
[0.489 0.613 0.571 0.107 0.883 0.373 0.338 0.025 0.947 0.852], [0.489 0.571 0.613 0.107 0.883 0.373 0.338 0.025 0.947 0.852], [0.107 0.489 0.571 0.613 0.883 0.373 0.338 0.025 0.947 0.852], [0.107 0.489 0.571 0.613 0.883 0.373 0.338 0.025 0.947 0.852], [0.107 0.373 0.489 0.571 0.613 0.883 0.338 0.025 0.947 0.852], [0.107 0.338 0.373 0.489 0.571 0.613 0.883 0.025 0.947 0.852], [0.025 0.107 0.338 0.373 0.489 0.571 0.613 0.883 0.947 0.852], [0.025 0.107 0.338 0.373 0.489 0.571 0.613 0.883 0.947 0.852] | [0.025 0.107 0.338 0.373 0.489 0.571 0.613 0.852 0.883 0.947]
insertion_sort
segments_intersect: x: [0.875 0.524 0.321 0.201], y: [0.903 0.365 0.778 0.239] intersect:
0
segments_intersect
find_maximum_subarray_kadane: key: [-0.525 -0.663 -0.031 0.195 0.527], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (2, 2), (3, 3) | (3, 4)
find_maximum_subarray_kadane
binary_search: key: [0.006 0.028 0.097 0.106 0.139 0.2 0.22 0.222 0.249 0.317 0.463 0.469 0.52 0.601 0.699 0.734 0.791 0.864 0.996], target: 0.019, initial_trace: (0, 18) trace | (low, high):
(0, 9), (0, 4), (0, 2), (0, 1) | (1, 1)
binary_search
quickselect: key: [0.175 0.65 0.99 0.394 0.185 0.997 0.567 0.221 0.217 0.581 0.525 0.027 0.307 0.89 0.084], initial_trace: 14 trace | pivot:
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 6, 6, 6, 6, 3 | 3
quickselect
quickselect: key: [0.152 0.757 0.746 0.978 0.557 0.087 0.496 0.676 0.626 0.746 0.79 0.344 0.14 0.401 0.369 0.537 0.116 0.139 0.772 0.179 0.625 0.018 0.424 0.297 0.642 0.104 0.221 0.889], 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, 26, 26, 26, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 23, 23, 23, 23, 23, 23, 23, 23, 23, 11, 11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 22, 22 | 6
quickselect
activity_selector: s: [0.231 0.412 0.655 0.307 0.148 0.047 0.077 0.631 0.62 0.125 0.21 0.105 0.264 0.184 0.49 0.164 0.01 0.6 0.098 0.116 0.237 0.373 0.456], f: [0.557 0.523 0.736 0.46 0.692 0.404 0.095 0.877 0.647 0.976 0.625 0.205 0.707 0.96 0.545 0.564 0.19 0.76 0.887 0.747 0.643 0.44 0.958], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0] | [0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0]
activity_selector
bubble_sort: key: [0.012 0.727 0.082 0.897], initial_trace: [0.012 0.727 0.082 0.897] trace | pred:
[0.012 0.727 0.082 0.897], [0.012 0.082 0.727 0.897], [0.012 0.082 0.727 0.897], [0.012 0.082 0.727 0.897], [0.012 0.082 0.727 0.897] | [0.012 0.082 0.727 0.897]
bubble_sort
segments_intersect: x: [0.576 0.227 0.547 0.84], y: [0.818 0.775 0.241 0.491] intersect:
0
segments_intersect
articulation_points: A: [[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 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 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 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 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 1]], initial_trace: [0 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], [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 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 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0] | [1 0 0 0 0 1 0 0 0 0 0 0]
articulation_points
dfs: A: [[0 1 1 0 1], [1 1 0 0 0], [1 0 0 0 1], [0 1 1 0 1], [0 0 0 0 1]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 0 2 3 4], [0 0 2 3 4], [0 0 2 3 4], [0 0 0 3 4], [0 0 0 3 4], [0 0 0 3 2], [0 0 0 3 2], [0 0 0 3 2], [0 0 0 3 2], [0 0 0 3 2], [0 0 0 3 2], [0 0 0 3 2] | [0 0 0 3 2]
dfs
matrix_chain_order: p: [0.475 0.765 0.219 0.387 0.256], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | s:
[[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 0 0 0], [0 0 1 2 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]]
matrix_chain_order
bellman_ford: s: 1, A: [[0 0 0 0 0.555 0 0.105 0 0.327 0 0 0 0 0.534 0 0 0 0.374 0 0 0.165 0.275 0], [0 0.682 0.689 0 0 0 0 0.467 0 0 0 0 0 0 0 0 0.397 0 0 0 0.443 0 0], [0 0.689 0.184 0.754 0 0 0.285 0 0.302 0 0.333 0 0 0 0 0 0 0 0 0 0 0.226 0], [0 0 0.754 0.882 0.36 0 0 0 0.551 0 0 0 0.549 0 0 0.414 0 0.324 0.198 0.595 0 0 0], [0.555 0 0 0.36 0.251 0 0.608 0.549 0 0 0 0.302 0 0 0 0 0 0.835 0.619 0.684 0 0.417 0.297], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.154 0 0 0.623 0 0 0 0.708], [0.105 0 0.285 0 0.608 0 0.043 0.376 0 0 0.269 0 0 0.332 0 0 0 0 0 0.626 0 0 0], [0 0.467 0 0 0.549 0 0.376 0.967 0.387 0 0 0 0 0.641 0 0 0 0 0 0.42 0 0 0.546], [0.327 0 0.302 0.551 0 0 0 0.387 0.26 0.918 0 0 0 0 0 0 0.396 0.677 0 0 0.132 0.204 0], [0 0 0 0 0 0 0 0 0.918 0 0 0.702 0 0 0 0 0 0 0.685 0 0 0 0], [0 0 0.333 0 0 0 0.269 0 0 0 0.997 0 0 0.32 0 0 0 0 0 0 0 0 0.178], [0 0 0 0 0.302 0 0 0 0 0.702 0 0.235 0 0 0 0.319 0 0 0 0 0 0 0], [0 0 0 0.549 0 0 0 0 0 0 0 0 0 0 0.278 0.255 0 0 0.63 0 0 0 0], [0.534 0 0 0 0 0 0.332 0.641 0 0 0.32 0 0 0.121 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0.278 0 0.117 0.679 0 0 0 0 0 0 0], [0 0 0 0.414 0 0.154 0 0 0 0 0 0.319 0.255 0 0.679 0 0 0 0 0 0 0 0], [0 0.397 0 0 0 0 0 0 0.396 0 0 0 0 0 0 0 0.427 0 0 0.654 0 0 0.069], [0.374 0 0 0.324 0.835 0 0 0 0.677 0 0 0 0 0 0 0 0 0 0.248 0.416 0.647 0 0], [0 0 0 0.198 0.619 0.623 0 0 0 0.685 0 0 0.63 0 0 0 0 0.248 0.474 0 0 0 0], [0 0 0 0.595 0.684 0 0.626 0.42 0 0 0 0 0 0 0 0 0.654 0.416 0 0.665 0.668 0.654 0.359], [0.165 0.443 0 0 0 0 0 0 0.132 0 0 0 0 0 0 0 0 0.647 0 0.668 0.464 0 0], [0.275 0 0.226 0 0.417 0 0 0 0.204 0 0 0 0 0 0 0 0 0 0 0.654 0 0 0], [0 0 0 0 0.297 0.708 0 0.546 0 0 0.178 0 0 0 0 0 0.069 0 0 0.359 0 0 0.458]], 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 1 3 4 5 6 1 8 9 10 11 12 13 14 15 1 17 18 19 1 21 22], [20 1 1 2 7 5 7 1 20 9 2 11 12 7 14 15 1 20 18 7 1 2 16], [20 1 1 8 22 22 0 1 20 8 22 4 3 7 14 3 1 0 17 22 1 8 16], [20 1 1 4 22 22 0 1 20 8 22 4 3 10 12 5 1 0 17 22 1 8 16], [20 1 1 4 22 22 0 1 20 8 22 4 15 10 12 5 1 0 17 22 1 8 16] | [20 1 1 4 22 22 0 1 20 8 22 4 15 10 12 5 1 0 17 22 1 8 16]
bellman_ford
bfs: s: 5, A: [[0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0], [0 0 0 1 0 0 0 0 0 0 0 1 0 1 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 1 1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1], [0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1], [0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1], [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 0 0 0 0 0 0 0 1 1 0 1 0], [1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0], [1 0 1 1 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0], [0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0], [0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1 0], [0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 0], [1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 1 1], [0 0 0 1 0 1 1 0 0 0 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 5 15 16 17 5], [0 1 2 18 14 5 18 7 14 9 18 11 12 14 5 15 16 14 5], [10 3 3 18 14 5 18 7 14 13 18 10 12 14 5 8 4 14 5] | [10 3 3 18 14 5 18 11 14 13 18 10 16 14 5 8 4 14 5]
bfs
dijkstra: s: 3, A: [[0.222 0 0 0 0 0 0 0 0 0 0.146 0.638 0 0 0 0 0 0 0.229 0 0 0 0], [0 0 0.911 0 0 0 0 0 0 0 0.608 0 0 0 0 0 0 0 0.195 0.652 0 0.738 0], [0 0.911 0.716 0.069 0 0 0 0 0.635 0.581 0 0.339 0 0 0 0.722 0 0 0 0 0 0 0], [0 0 0.069 0 0.187 0 0 0 0 0 0 0 0 0 0 0 0.595 0 0 0 0 0 0], [0 0 0 0.187 0 0 0.77 0.087 0 0 0 0 0.426 0 0.177 0 0.599 0 0 0 0.385 0 0], [0 0 0 0 0 0.453 0.491 0 0 0 0 0 0 0 0 0 0 0 0.699 0.532 0.378 0 0], [0 0 0 0 0.77 0.491 0.92 0 0 0 0 0 0 0 0.282 0 0.969 0 0 0 0 0 0], [0 0 0 0 0.087 0 0 0 0 0 0 0 0 0.36 0 0.407 0 0.311 0 0 0 0 0], [0 0 0.635 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0.558 0 0 0 0 0 0.531], [0 0 0.581 0 0 0 0 0 0 0 0 0 0 0 0 0 0.292 0 0 0 0 0 0.716], [0.146 0.608 0 0 0 0 0 0 0 0 0.083 0.47 0 0 0 0 0 0 0 0 0 0 0], [0.638 0 0.339 0 0 0 0 0 0 0 0.47 0 0.642 0.692 0 0 0.823 0 0.113 0 0.548 0 0.195], [0 0 0 0 0.426 0 0 0 0 0 0 0.642 0 0.581 0 0 0.051 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.36 0 0 0 0.692 0.581 0.105 0 0 0 0 0 0.425 0 0 0], [0 0 0 0 0.177 0 0.282 0 0 0 0 0 0 0 0 0.163 0 0.182 0.225 0 0 0 0.159], [0 0 0.722 0 0 0 0 0.407 0.15 0 0 0 0 0 0.163 0 0 0 0.728 0 0 0 0], [0 0 0 0.595 0.599 0 0.969 0 0.558 0.292 0 0.823 0.051 0 0 0 0 0.118 0 0.241 0.246 0.125 0.65], [0 0 0 0 0 0 0 0.311 0 0 0 0 0 0 0.182 0 0.118 0 0.635 0 0.412 0 0], [0.229 0.195 0 0 0 0.699 0 0 0 0 0 0.113 0 0 0.225 0.728 0 0.635 0.275 0 0 0 0], [0 0.652 0 0 0 0.532 0 0 0 0 0 0 0 0.425 0 0 0.241 0 0 0 0 0 0], [0 0 0 0 0.385 0.378 0 0 0 0 0 0.548 0 0 0 0 0.246 0.412 0 0 0 0 0.544], [0 0.738 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.125 0 0 0 0 0.179 0], [0 0 0 0 0 0 0 0 0.531 0.716 0 0.195 0 0 0.159 0 0.65 0 0 0 0.544 0 0.043]], 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 3 3 3 5 6 7 8 9 10 11 12 13 14 15 3 17 18 19 20 21 22], [0 2 3 3 3 5 6 7 2 2 10 2 12 13 14 2 3 17 18 19 20 21 22], [0 2 3 3 3 5 4 4 2 2 10 2 4 13 4 2 3 17 18 19 4 21 22], [0 2 3 3 3 5 4 4 2 2 10 2 4 7 4 7 3 7 18 19 4 21 22], [0 2 3 3 3 5 14 4 2 2 10 2 4 7 4 14 3 14 14 19 4 21 14], [11 2 3 3 3 5 14 4 2 2 11 2 4 7 4 14 3 14 11 19 4 21 14], [18 18 3 3 3 18 14 4 2 2 11 2 4 7 4 14 3 14 11 19 4 21 14], [18 18 3 3 3 18 14 4 2 2 11 2 4 7 4 14 3 14 11 19 4 21 14], [18 18 3 3 3 18 14 4 15 2 11 2 4 7 4 14 3 14 11 19 4 21 14], [18 18 3 3 3 18 14 4 15 2 11 2 4 7 4 14 3 14 11 19 4 21 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 19 4 21 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14], [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14] | [18 18 3 3 3 20 14 4 15 2 11 2 4 7 4 14 3 14 11 16 4 16 14]
dijkstra
quickselect: key: [0.293 0.561 0.367 0.255 0.991 0.181 0.276 0.414 0.605 0.589 0.289 0.187 0.75 0.675 0.145 0.979 0.458 0.211 0.025 0.853 0.719 0.35 0.237 0.608 0.777 0.642 0.266 0.671], 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, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 1 | 16
quickselect
strongly_connected_components: A: [[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 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 1 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 1 0 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 0 0 0]], 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 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 7 8 6 10], [0 1 2 3 4 5 6 0 8 6 10], [0 1 2 0 4 5 6 0 8 6 10], [0 1 2 0 4 5 6 0 0 6 10], [0 1 2 0 4 5 6 0 0 6 10], [0 1 2 0 4 5 6 0 0 6 10], [0 1 2 0 4 5 6 0 0 6 10], [0 1 2 0 4 5 6 0 0 6 10], [0 1 2 0 4 5 6 0 0 6 10] | [0 1 2 0 4 5 6 0 0 6 10]
strongly_connected_components
mst_prim: s: 1, A: [[0 0 0 0 0 0 0 0 0.209 0.631 0 0.47 0 0.931 0 0 0 0 0 0.161 0 0 0], [0 0.39 0 0 0 0 0 0.459 0 0 0 0 0.192 0 0 0 0 0.123 0 0.5 0.219 0 0], [0 0 0 0.092 0 0 0.179 0 0 0 0 0 0 0 0.85 0 0 0 0.56 0 0 0 0], [0 0 0.092 0.669 0 0 0 0 0 0 0 0 0.565 0 0 0 0.226 0 0 0 0 0 0], [0 0 0 0 0.689 0 0 0 0.333 0 0 0 0.557 0 0 0 0 0 0 0 0 0 0.856], [0 0 0 0 0 0.108 0 0 0 0.567 0 0 0 0.322 0 0 0.634 0 0 0.494 0 0 0], [0 0 0.179 0 0 0 0 0 0 0.416 0.69 0 0 0 0 0.943 0 0 0 0 0.544 0 0], [0 0.459 0 0 0 0 0 0.89 0.934 0 0 0 0.716 0 0 0 0.637 0 0 0.362 0 0 0], [0.209 0 0 0 0.333 0 0 0.934 0.035 0 0 0 0.097 0 0 0 0.575 0.765 0 0.129 0 0 0], [0.631 0 0 0 0 0.567 0.416 0 0 0 0 0 0 0 0 0 0 0.777 0 0.251 0.296 0 0], [0 0 0 0 0 0 0.69 0 0 0 0.049 0.752 0 0 0.756 0.385 0 0 0 0 0 0.275 0], [0.47 0 0 0 0 0 0 0 0 0 0.752 0.553 0 0 0 0 0 0 0 0 0 0.842 0.596], [0 0.192 0 0.565 0.557 0 0 0.716 0.097 0 0 0 0.987 0.559 0 0 0.113 0.201 0 0 0 0.101 0], [0.931 0 0 0 0 0.322 0 0 0 0 0 0 0.559 0.206 0 0 0 0 0 0 0 0 0.801], [0 0 0.85 0 0 0 0 0 0 0 0.756 0 0 0 0.84 0.471 0 0.808 0 0 0.075 0 0], [0 0 0 0 0 0 0.943 0 0 0 0.385 0 0 0 0.471 0.346 0 0.768 0.43 0.132 0 0 0.122], [0 0 0 0.226 0 0.634 0 0.637 0.575 0 0 0 0.113 0 0 0 0.69 0 0 0.265 0 0 0], [0 0.123 0 0 0 0 0 0 0.765 0.777 0 0 0.201 0 0.808 0.768 0 0 0 0.387 0 0 0], [0 0 0.56 0 0 0 0 0 0 0 0 0 0 0 0 0.43 0 0 0.423 0.831 0.366 0 0], [0.161 0.5 0 0 0 0.494 0 0.362 0.129 0.251 0 0 0 0 0 0.132 0.265 0.387 0.831 0.136 0 0 0], [0 0.219 0 0 0 0 0.544 0 0 0.296 0 0 0 0 0.075 0 0 0 0.366 0 0.807 0.468 0], [0 0 0 0 0 0 0 0 0 0 0.275 0.842 0.101 0 0 0 0 0 0 0 0.468 0.402 0], [0 0 0 0 0.856 0 0 0 0 0 0 0.596 0 0.801 0 0.122 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 1 8 9 10 11 1 13 14 15 16 1 18 1 1 21 22], [0 1 2 3 4 5 6 1 17 17 10 11 1 13 17 17 16 1 18 17 1 21 22], [0 1 2 12 12 5 6 1 12 17 10 11 1 12 17 17 12 1 18 17 1 12 22], [8 1 2 12 8 5 6 1 12 17 10 11 1 12 17 17 12 1 18 8 1 12 22], [8 1 2 12 8 5 6 1 12 17 21 21 1 12 17 17 12 1 18 8 1 12 22], [8 1 2 16 8 16 6 1 12 17 21 21 1 12 17 17 12 1 18 8 1 12 22], [19 1 2 16 8 19 6 19 12 19 21 21 1 12 17 19 12 1 19 8 1 12 22], [19 1 2 16 8 19 15 19 12 19 21 21 1 12 15 19 12 1 15 8 1 12 15], [19 1 2 16 8 19 15 19 12 19 21 22 1 12 15 19 12 1 15 8 1 12 15], [19 1 2 16 8 19 15 19 12 19 21 0 1 12 15 19 12 1 15 8 1 12 15], [19 1 2 16 8 19 20 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 14 16 8 19 20 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 20 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 12 20 19 12 1 20 8 1 12 15], [19 1 3 16 8 19 2 19 12 19 21 0 1 5 20 19 12 1 20 8 1 12 15] | [19 1 3 16 8 19 2 19 12 19 21 0 1 5 20 19 12 1 20 8 1 12 15]
mst_prim
jarvis_march: x: [0.376 1.52 -0.487 0.991 -0.795 -0.445 0.115 0.654 0.32 -0.564 1.87 -0.305], y: [1.16 1.24 -1.22 -1.56 -1.65 1.59 -0.043 -0.198 1.66 -1.13 -0.171 1.35], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0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0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 0 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 0 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0], [0 1 0 1 1 1 0 0 1 0 1 0] | [0 1 0 1 1 1 0 0 1 0 1 0]
jarvis_march
topological_sort: A: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 1 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], 0, [0 1 2 3], 0, [0 0 2 3], 1, [0 0 2 3], 1, [0 0 2 3], 1, [0 0 1 3], 2, [0 0 1 3], 2, [0 0 1 3], 2 | [0 0 1 2], 3
topological_sort
minimum: key: [0.606 0.69 0.565 0.502 0.381 0.865 0.061 0.619 0.628 0.584 0.181 0.426], initial_trace: 0 trace | min:
0, 2, 3, 4, 4, 6, 6, 6, 6, 6 | 6
minimum
quickselect: key: [0.433 0.463 0.293 0.051 0.392 0.965 0.41 0.434 0.827 0.177 0.054 0.556 0.153 0.228 0.146 0.478 0.258 0.549 0.772], initial_trace: 18 trace | pivot:
18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6 | 6
quickselect
task_scheduling: d: [12 13 15 14 19 4 18 4 17 2 7 10 16 2 10 5 14 6 17], w: [0.679 0.972 0.917 0.674 0.391 0.005 0.019 0.806 0.226 0.309 0.382 0.202 0.247 0.995 0.195 0.468 0.357 0.062 0.122], 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 0 0 1 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 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0], [1 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0], [1 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0], [1 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0], [1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0], [1 1 1 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0], [1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0], [1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0], [1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0], [1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 1], [1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 1], [1 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 1] | [1 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 1]
task_scheduling
insertion_sort: key: [0.452 0.344 0.291 0.962 0.964 0.293 0.153 0.53 0.73 0.008 0.16 0.45], initial_trace: [0.452 0.344 0.291 0.962 0.964 0.293 0.153 0.53 0.73 0.008 0.16 0.45] trace | pred:
[0.344 0.452 0.291 0.962 0.964 0.293 0.153 0.53 0.73 0.008 0.16 0.45], [0.291 0.344 0.452 0.962 0.964 0.293 0.153 0.53 0.73 0.008 0.16 0.45], [0.291 0.344 0.452 0.962 0.964 0.293 0.153 0.53 0.73 0.008 0.16 0.45], [0.291 0.344 0.452 0.962 0.964 0.293 0.153 0.53 0.73 0.008 0.16 0.45], [0.291 0.293 0.344 0.452 0.962 0.964 0.153 0.53 0.73 0.008 0.16 0.45], [0.153 0.291 0.293 0.344 0.452 0.962 0.964 0.53 0.73 0.008 0.16 0.45], [0.153 0.291 0.293 0.344 0.452 0.53 0.962 0.964 0.73 0.008 0.16 0.45], [0.153 0.291 0.293 0.344 0.452 0.53 0.73 0.962 0.964 0.008 0.16 0.45], [0.008 0.153 0.291 0.293 0.344 0.452 0.53 0.73 0.962 0.964 0.16 0.45], [0.008 0.153 0.16 0.291 0.293 0.344 0.452 0.53 0.73 0.962 0.964 0.45] | [0.008 0.153 0.16 0.291 0.293 0.344 0.45 0.452 0.53 0.73 0.962 0.964]
insertion_sort
find_maximum_subarray_kadane: key: [0.14 0.747 -0.713 -0.934 -0.997 0.956 -0.656 0.104 -0.285 -0.611 0.481 -0.705], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 1), (0, 1), (0, 1), (5, 5), (5, 5), (5, 5), (5, 5), (5, 5), (5, 5) | (5, 5)
find_maximum_subarray_kadane
binary_search: key: [0.395 0.569 0.638 0.869], target: 0.936, initial_trace: (0, 3) trace | (low, high):
(2, 3) | (3, 3)
binary_search
articulation_points: 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 1 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 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 0 0 0], [0 0 0 1 0 0 0 0 1 0 1 0], [0 0 0 0 0 0 0 1 0 0 0 0]], initial_trace: [0 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 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 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 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]
articulation_points
quickselect: key: [0.886 0.952 0.023 0.998 0.199 0.253 0.311 0.474 0.738 0.283 0.817], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 9, 6, 6, 6, 7 | 7
quickselect
mst_prim: s: 7, A: [[0.388 0 0 0 0 0 0 0.585 0 0.693 0], [0 0 0.324 0 0 0.363 0 0.335 0 0 0], [0 0.324 0 0 0 0 0 0 0.111 0 0.138], [0 0 0 0 0.191 0 0.143 0 0 0 0], [0 0 0 0.191 0 0 0 0.662 0 0.093 0], [0 0.363 0 0 0 0.219 0 0 0 0 0.474], [0 0 0 0.143 0 0 0.753 0.615 0 0 0], [0.585 0.335 0 0 0.662 0 0.615 0 0 0 0], [0 0 0.111 0 0 0 0 0 0 0 0], [0.693 0 0 0 0.093 0 0 0 0 0 0], [0 0 0.138 0 0 0.474 0 0 0 0 0.064]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[7 7 2 3 7 5 7 7 8 9 10], [7 7 1 3 7 1 7 7 8 9 10], [7 7 1 3 7 1 7 7 2 9 2], [7 7 1 3 7 1 7 7 2 9 2], [7 7 1 3 7 1 7 7 2 9 2], [7 7 1 3 7 1 7 7 2 9 2], [7 7 1 3 7 1 7 7 2 0 2], [7 7 1 6 7 1 7 7 2 0 2], [7 7 1 6 3 1 7 7 2 0 2], [7 7 1 6 3 1 7 7 2 4 2] | [7 7 1 6 3 1 7 7 2 4 2]
mst_prim
bfs: s: 5, A: [[1 1 1 1 0 0 0 0 0 0 0 0], [1 0 0 1 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 0 0 0 0 0 0], [1 1 0 0 0 0 0 0 1 0 1 1], [0 1 0 0 0 0 0 0 1 1 0 0], [0 0 0 0 0 1 0 0 1 0 1 0], [0 0 0 0 0 0 1 1 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0 0], [0 1 0 1 1 1 0 0 1 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 1], [0 0 0 1 0 0 0 0 0 0 1 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 4 5 6 7 5 9 5 11], [0 8 2 8 8 5 6 7 5 9 5 10], [1 8 2 8 8 5 6 7 5 4 5 10] | [1 8 0 8 8 5 6 7 5 4 5 10]
bfs
find_maximum_subarray_kadane: key: [0.123 -0.092 0.839 -0.338 0.243 0.886 0.192 -0.219 -0.997 0.18 0.298], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 2), (0, 2), (0, 2), (0, 5), (0, 6), (0, 6), (0, 6), (0, 6) | (0, 6)
find_maximum_subarray_kadane
activity_selector: s: [0.151 0.28 0.209 0.169 0.316 0.602 0.728 0.153 0.31 0.815 0.239 0.197], f: [0.493 0.837 0.951 0.421 0.797 0.743 0.842 0.494 0.91 0.963 0.371 0.667], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 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 1 0 0 0 0 1 0], [0 0 0 0 0 1 0 0 0 0 1 0], [0 0 0 0 0 1 0 0 0 0 1 0], [0 0 0 0 0 1 0 0 0 0 1 0], [0 0 0 0 0 1 0 0 0 0 1 0], [0 0 0 0 0 1 0 0 0 0 1 0] | [0 0 0 0 0 1 0 0 0 1 1 0]
activity_selector
heapsort: key: [0.698 0.15 0.548 0.797], initial_trace: [0.698 0.15 0.548 0.797] trace | pred:
[0.698 0.15 0.548 0.797], [0.698 0.15 0.548 0.797], [0.698 0.797 0.548 0.15], [0.698 0.797 0.548 0.15], [0.797 0.698 0.548 0.15], [0.797 0.698 0.548 0.15], [0.15 0.698 0.548 0.797], [0.698 0.15 0.548 0.797], [0.698 0.15 0.548 0.797], [0.548 0.15 0.698 0.797], [0.548 0.15 0.698 0.797], [0.15 0.548 0.698 0.797] | [0.15 0.548 0.698 0.797]
heapsort
topological_sort: A: [[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 1 0 0 0 0 0 0 0 0 0 1 0 0], [1 0 0 1 0 0 1 1 0 0 0 0 1 1 0], [1 1 0 1 0 0 0 1 0 0 0 0 1 1 0], [0 1 1 0 0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 0 0], [1 1 1 1 1 1 0 1 0 1 1 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1 0 0], [1 0 1 0 0 0 1 1 0 1 0 0 1 0 0], [0 1 0 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 0 0 0 0 0], [0 0 1 1 1 0 1 0 1 1 0 1 1 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], 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 4 5 6 7 8 9 10 11 2 13 14], 12, [0 12 0 3 4 5 6 7 8 9 10 11 2 13 14], 1, [0 12 0 3 4 5 6 7 8 9 10 11 2 13 14], 1, [0 12 0 3 4 5 6 7 8 9 10 11 2 13 14], 1, [0 12 0 1 4 5 6 7 8 9 10 11 2 13 14], 3, [0 12 0 1 4 5 6 7 8 9 10 11 2 13 14], 3, [0 12 0 1 4 5 6 7 8 9 10 11 2 13 14], 3, [0 12 0 1 4 5 6 7 8 9 10 11 2 13 14], 3, [0 12 0 1 4 5 3 7 8 9 10 11 2 13 14], 6, [0 12 0 1 4 5 3 7 8 9 10 11 2 13 14], 6, [0 12 0 1 4 5 3 6 8 9 10 11 2 13 14], 7, [0 12 0 1 4 5 3 6 8 9 10 11 2 13 14], 7, [0 12 0 1 4 5 3 6 8 9 10 11 2 7 14], 13, [0 12 0 1 13 5 3 6 8 9 10 11 2 7 14], 4, [0 12 0 1 13 5 3 6 8 9 10 11 2 7 14], 4, [0 12 0 1 13 5 3 6 8 9 10 11 2 7 14], 4, [0 12 0 1 13 4 3 6 8 9 10 11 2 7 14], 5, [0 12 0 1 13 4 3 6 8 9 10 11 2 7 14], 5, [0 12 0 1 13 4 3 6 8 9 10 11 2 7 14], 5, [0 12 0 1 13 4 3 6 8 9 10 11 2 7 14], 5, [0 12 0 1 13 4 3 6 8 5 10 11 2 7 14], 9, [0 12 0 1 13 4 3 6 8 5 10 11 2 7 14], 9, [0 12 0 1 13 4 3 6 8 5 9 11 2 7 14], 10, [0 12 0 1 13 4 3 6 10 5 9 11 2 7 14], 8, [0 12 0 1 13 4 3 6 10 5 9 11 2 7 14], 8, [0 12 0 1 13 4 3 6 10 5 9 11 2 7 14], 8, [0 12 0 1 13 4 3 6 10 5 9 8 2 7 14], 11, [0 12 0 1 13 4 3 6 10 5 9 8 2 7 14], 11, [0 12 0 1 13 4 3 6 10 5 9 8 2 7 14], 11 | [0 12 0 1 13 4 3 6 10 5 9 8 2 7 11], 14
topological_sort
bfs: s: 1, A: [[1 1 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 0], [1 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 1 0 0 0 1], [0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1 0 0], [0 1 1 1 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 1 0 0 0 0 0 0 1 1 0 0 1 1 0 0], [0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1], [0 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 1 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0], [1 1 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 0], [0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0], [1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [1 0 0 0 0 0 1 1 0 1 1 0 0 0 1 0 0 0 0 1 1 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0], [0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 1 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 1 0 0 1 0 0 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 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1], [0 0 1 0 1 0 0 0 0 0 0 1 1 1 0 1 1 0 0 0 1 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0], [0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 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:
[1 1 2 1 4 5 1 1 1 9 1 11 12 13 14 1 16 17 1 19 20 21 1], [1 1 3 1 6 7 1 1 1 3 1 8 0 0 0 1 10 17 1 3 15 0 1] | [1 1 3 1 6 7 1 1 1 3 1 8 0 0 0 1 10 14 1 3 15 0 1]
bfs
task_scheduling: d: [5 4 10 1 10 11 11 10 7 11 3 5], w: [0.696 0.954 0.327 0.398 0.333 0.902 0.523 0.326 0.53 0.982 0.969 0.641], initial_trace: [0 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 0 1 1 0], [0 1 0 0 0 0 0 0 0 1 1 0], [0 1 0 0 0 1 0 0 0 1 1 0], [1 1 0 0 0 1 0 0 0 1 1 0], [1 1 0 0 0 1 0 0 0 1 1 0], [1 1 0 0 0 1 0 0 1 1 1 0], [1 1 0 0 0 1 1 0 1 1 1 0], [1 1 0 0 0 1 1 0 1 1 1 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 0 1 1 1 1 1 1 1 0]
task_scheduling
bellman_ford: s: 4, A: [[0.709 0 0 0 0 0 0 0.697 0 0 0 0 0 0 0 0 0 0 0.327 0 0 0 0 0 0 0 0.601 0.455 0 0 0.588], [0 0 0.696 0 0 0.385 0.188 0.597 0 0 0 0 0 0 0 0 0 0 0.72 0 0 0 0.48 0 0 0.198 0 0 0 0 0], [0 0.696 0 0 0.526 0 0.519 0 0 0 0 0 0 0 0 0 0.379 0 0 0 0.277 0 0.548 0 0.754 0 0 0 0 0 0], [0 0 0 0 0.606 0.696 0.783 0 0 0 0 0 0 0.756 0.294 0 0 0 0 0.059 0.291 0 0.545 0 0 0.803 0 0 0 0 0], [0 0 0.526 0.606 0 0 0 0 0 0 0 0 0 0.583 0 0 0 0 0 0.211 0 0 0.291 0 0.587 0 0 0 0.564 0 0], [0 0.385 0 0.696 0 0.856 0 0 0.521 0 0 0.388 0.561 0.621 0.693 0 0 0 0 0 0 0.199 0.872 0 0 0 0 0 0.272 0 0], [0 0.188 0.519 0.783 0 0 0.465 0 0 0 0 0.504 0 0 0 0 0 0.724 0 0 0 0 0 0 0 0 0 0 0 0 0], [0.697 0.597 0 0 0 0 0 0 0 0 0 0 0.592 0 0 0 0.536 0.602 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.521 0 0 0 0 0 0 0 0 0 0 0.266 0.762 0 0.303 0 0.731 0 0 0.081 0 0.36 0 0.52 0 0], [0 0 0 0 0 0 0 0 0 0.228 0.329 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.798 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.329 0.925 0 0 0.076 0 0 0 0.05 0.508 0 0 0.378 0.508 0 0.679 0 0 0 0 0.944 0], [0 0 0 0 0 0.388 0.504 0 0 0 0 0 0 0.472 0 0 0 0.523 0.638 0 0 0 0.316 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.561 0 0.592 0 0 0 0 0.714 0 0 0 0 0 0 0 0 0.781 0 0 0 0 0 0.704 0 0.284 0], [0 0 0 0.756 0.583 0.621 0 0 0 0 0.076 0.472 0 0.53 0.053 0.815 0 0 0 0 0 0.242 0 0 0 0 0 0 0 0 0], [0 0 0 0.294 0 0.693 0 0 0 0 0 0 0 0.053 0 0.27 0.464 0 0.67 0 0.265 0 0.512 0 0 0 0.419 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0.815 0.27 0.663 0.698 0 0 0 0 0 0.425 0.369 0.44 0 0 0.3 0 0 0], [0 0 0.379 0 0 0 0 0.536 0.266 0 0 0 0 0 0.464 0.698 0 0 0.527 0.211 0 0 0 0 0 0.239 0 0.429 0.075 0 0], [0 0 0 0 0 0 0.724 0.602 0.762 0 0.05 0.523 0 0 0 0 0 0 0.283 0 0.202 0 0 0 0 0 0.296 0 0 0 0], [0.327 0.72 0 0 0 0 0 0 0 0 0.508 0.638 0 0 0.67 0 0.527 0.283 0 0.242 0 0.202 0.437 0 0.528 0.479 0 0 0 0 0.289], [0 0 0 0.059 0.211 0 0 0 0.303 0 0 0 0 0 0 0 0.211 0 0.242 0 0.32 0 0 0 0 0.414 0 0.392 0 0 0.351], [0 0 0.277 0.291 0 0 0 0 0 0 0 0 0 0 0.265 0 0 0.202 0 0.32 0.959 0 0.317 0.742 0 0 0.563 0.363 0 0 0.417], [0 0 0 0 0 0.199 0 0 0.731 0 0.378 0 0.781 0.242 0 0 0 0 0.202 0 0 0.688 0 0 0 0 0.576 0.368 0 0 0], [0 0.48 0.548 0.545 0.291 0.872 0 0 0 0 0.508 0.316 0 0 0.512 0.425 0 0 0.437 0 0.317 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.369 0 0 0 0 0.742 0 0 0.13 0 0.046 0 0 0 0 0.704], [0 0 0.754 0 0.587 0 0 0 0.081 0 0.679 0 0 0 0 0.44 0 0 0.528 0 0 0 0 0 0.308 0 0 0 0 0.401 0.548], [0 0.198 0 0.803 0 0 0 0 0 0.798 0 0 0 0 0 0 0.239 0 0.479 0.414 0 0 0 0.046 0 0.938 0.491 0 0 0 0], [0.601 0 0 0 0 0 0 0 0.36 0 0 0 0 0 0.419 0 0 0.296 0 0 0.563 0.576 0 0 0 0.491 0 0 0 0 0.684], [0.455 0 0 0 0 0 0 0 0 0 0 0 0.704 0 0 0.3 0.429 0 0 0.392 0.363 0.368 0 0 0 0 0 0.125 0 0 0.632], [0 0 0 0 0.564 0.272 0 0 0.52 0 0 0 0 0 0 0 0.075 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0.944 0 0.284 0 0 0 0 0 0 0 0 0 0 0 0.401 0 0 0 0 0 0.214], [0.588 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.289 0.351 0.417 0 0 0.704 0.548 0 0.684 0.632 0 0.214 0.983]], 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:
[0 1 4 4 4 5 6 7 8 9 10 11 12 4 14 15 16 17 18 4 20 21 4 23 4 25 26 27 4 29 30], [0 22 4 19 4 28 2 7 19 9 13 22 12 4 13 22 19 17 19 4 19 13 4 23 4 19 26 19 4 24 19], [18 22 4 19 4 28 1 16 19 10 13 22 29 4 3 22 19 10 19 4 19 18 4 25 4 19 8 19 16 30 19] | [18 22 4 19 4 28 1 16 19 10 13 22 29 4 3 22 19 10 19 4 19 18 4 25 4 19 8 19 16 30 19]
bellman_ford
task_scheduling: d: [3 2 2 3], w: [0.884 0.988 0.881 0.703], initial_trace: [0 0 0 0] trace | selected:
[0 1 0 0], [1 1 0 0], [1 1 0 0] | [1 1 0 1]
task_scheduling
lcs_length: string: [0 0 0 1 1], key: [3 3 0 1 1], initial_trace: [[-1 -1 -1 1 1], [-1 -1 -1 1 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 1 1], [-1 -1 -1 1 1], [-1 -1 -1 -1 -1], [-1 -1 -1 -1 -1]]
lcs_length
jarvis_march: x: [0.298 -1.39 0.526 -0.045 0.213 -0.579 1.3 -0.636 -0.481 0.527], y: [-1.83 0.012 0.648 1.8 1.07 -0.705 -1.23 0.594 -1.69 -1.32], 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 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 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 0 0 0 1 0 0 0], [1 0 1 1 0 0 1 0 0 0], [1 0 1 1 0 0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], [0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0], [0 0 0 1 1 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0], [0 1 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11 12 27 14 27 27 17 18 19 20 21 27 23 24 25 26 27], [22 13 16 3 4 15 13 7 13 9 13 15 13 27 15 27 27 13 18 15 15 21 27 15 15 16 26 27] | [22 13 16 0 2 15 13 2 13 5 13 15 13 27 15 27 27 13 8 15 15 8 27 15 15 16 1 27]
bfs
find_maximum_subarray_kadane: key: [-0.951 -0.968 -0.092 0.084 -0.274 -0.585 0.029 -0.128 0.497 0.561 0.786 -0.994 0.546 0.085 0.014 0.038 0.756 -0.867 0.23], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (2, 2), (3, 3), (3, 3), (3, 3), (3, 3), (3, 3), (8, 8), (8, 9), (8, 10), (8, 10), (8, 10), (8, 10), (8, 10), (8, 10), (8, 16), (8, 16) | (8, 16)
find_maximum_subarray_kadane
binary_search: key: [0.102 0.104 0.122 0.162 0.162 0.189 0.217 0.29 0.292 0.37 0.407 0.463 0.484 0.527 0.542 0.572 0.573 0.598 0.61 0.656 0.661 0.669 0.692 0.694 0.751 0.756 0.778 0.813 0.943 0.995 0.998], target: 0.814, initial_trace: (0, 30) trace | (low, high):
(16, 30), (24, 30), (28, 30), (28, 29) | (28, 28)
binary_search
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1], key: [1 0 1 1 2 3 0 1 2 3 2 3 2 1 2 0 0 3 2 2 1 2 0], initial_trace: 0 trace | s:
1, 2, 3, 4, 4, 5, 6, 7, 8, 8, 9, 10, 10, 11, 12, 12, 12 | 12
naive_string_matcher
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [0 3 2 2 3 2 0 2 2 0 0 0 0 3 2 2 3 2 2], initial_trace: 0 trace | s:
0, 0, 0, 0, 0 | 1
kmp_matcher
insertion_sort: key: [0.648 0.657 0.564 0.873 0.966 0.189 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], initial_trace: [0.648 0.657 0.564 0.873 0.966 0.189 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786] trace | pred:
[0.648 0.657 0.564 0.873 0.966 0.189 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.564 0.648 0.657 0.873 0.966 0.189 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.564 0.648 0.657 0.873 0.966 0.189 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.564 0.648 0.657 0.873 0.966 0.189 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.189 0.564 0.648 0.657 0.873 0.966 0.046 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.046 0.189 0.564 0.648 0.657 0.873 0.966 0.074 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.046 0.074 0.189 0.564 0.648 0.657 0.873 0.966 0.788 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.046 0.074 0.189 0.564 0.648 0.657 0.788 0.873 0.966 0.281 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.046 0.074 0.189 0.281 0.564 0.648 0.657 0.788 0.873 0.966 0.032 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.032 0.046 0.074 0.189 0.281 0.564 0.648 0.657 0.788 0.873 0.966 0.119 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.281 0.564 0.648 0.657 0.788 0.873 0.966 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.281 0.564 0.648 0.657 0.788 0.873 0.966 0.993 0.607 0.567 0.215 0.297 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.281 0.564 0.607 0.648 0.657 0.788 0.873 0.966 0.993 0.567 0.215 0.297 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.281 0.564 0.567 0.607 0.648 0.657 0.788 0.873 0.966 0.993 0.215 0.297 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.215 0.281 0.564 0.567 0.607 0.648 0.657 0.788 0.873 0.966 0.993 0.297 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.215 0.281 0.297 0.564 0.567 0.607 0.648 0.657 0.788 0.873 0.966 0.993 0.877 0.786], [0.032 0.046 0.074 0.119 0.189 0.215 0.281 0.297 0.564 0.567 0.607 0.648 0.657 0.788 0.873 0.877 0.966 0.993 0.786] | [0.032 0.046 0.074 0.119 0.189 0.215 0.281 0.297 0.564 0.567 0.607 0.648 0.657 0.786 0.788 0.873 0.877 0.966 0.993]
insertion_sort
dag_shortest_paths: s: 6, A: [[0 0 0 0.538 0 0 0 0 0 0], [0 0 0 0.936 0 0 0 0.392 0 0], [0 0.355 0 0.911 0 0.906 0.0519 0.537 0 0.143], [0 0 0 0 0 0 0 0 0 0], [0 0.627 0 0 0 0 0 0 0 0], [0 0.2 0 0 0.367 0 0 0.206 0 0], [0.344 0 0 0.396 0.895 0 0 0 0.613 0.813], [0 0 0 0 0 0 0 0 0 0], [0.0645 0.571 0 0.638 0.678 0 0 0.11 0 0], [0 0.646 0 0.693 0 0 0 0.819 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 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], [6 1 2 6 6 5 6 7 6 6], [6 9 2 6 6 5 6 9 6 6], [6 8 2 6 6 5 6 8 6 6], [6 8 2 6 6 5 6 8 6 6], [6 8 2 6 6 5 6 8 6 6], [6 8 2 6 6 5 6 8 6 6] | [6 8 2 6 6 5 6 8 6 6]
dag_shortest_paths
dag_shortest_paths: s: 14, A: [[0 0 0 0 0 0.522 0 0.686 0 0 0 0 0 0 0], [0 0 0 0 0.347 0.657 0 0.716 0 0.0427 0.139 0 0.0989 0.319 0], [0 0 0 0 0 0 0 0 0 0.786 0 0.674 0 0 0.978], [0 0.856 0 0 0.125 0.185 0 0 0 0 0.914 0 0.181 0 0], [0 0 0 0 0 0.569 0 0 0 0.326 0.487 0.406 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0.965 0 0], [0.163 0 0 0 0.737 0.497 0 0.572 0 0 0 0 0 0.814 0], [0 0 0 0 0 0 0 0 0 0.353 0.817 0 0 0 0], [0 0.311 0 0 0.384 0 0 0 0 0 0.326 0 0 0 0.939], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.947 0 0.287 0.101 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0.6 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0.83 0 0 0 0 0 0 0 0 0 0.239 0 0 0 0], [0 0.729 0 0 0.0971 0 0 0.293 0 0 0 0 0.0296 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 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 14 2 3 14 5 6 14 8 9 10 11 14 13 14], [0 14 2 3 14 1 6 14 8 1 1 11 14 1 14], [13 14 2 3 14 1 6 14 8 1 1 11 14 1 14], [13 14 2 3 14 1 6 14 8 1 1 11 14 1 14], [13 14 2 3 14 1 6 14 8 7 1 11 14 1 14], [13 14 2 3 14 4 6 14 8 4 4 4 14 1 14], [13 14 2 3 14 4 6 14 8 4 4 4 14 1 14], [13 14 2 3 14 4 6 14 8 4 4 4 14 1 14], [13 14 2 3 14 4 6 14 8 4 4 4 14 1 14] | [13 14 2 3 14 4 6 14 8 4 4 4 14 1 14]
dag_shortest_paths
articulation_points: A: [[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 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 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 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 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 1 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 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 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0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 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
dag_shortest_paths: s: 0, A: [[0 0 0.422 0], [0 0 0 0.544], [0 0 0 0], [0 0 0.943 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 0 3]
dag_shortest_paths
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [0 2 0 0 0 1 0 2 2 2 0 2 0 2 2], initial_trace: 0 trace | s:
0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6 | 6
naive_string_matcher
naive_string_matcher: string: [0 0 0 0 1], key: [1 3 0 2 0], initial_trace: 0 trace | s:
1 | 2
naive_string_matcher
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1], key: [1 2 0 0 0 3 2 1 1 3 3 1 0 3 0 2 2 1 0 2 1 2 3 1 2 2 0 0 0 3 2], initial_trace: 0 trace | s:
1, 1, 1, 1, 1 | 1
naive_string_matcher
insertion_sort: key: [0.3 0.32 0.419 0.683 0.36 0.902 0.183 0.77 0.337 0.173 0.843], initial_trace: [0.3 0.32 0.419 0.683 0.36 0.902 0.183 0.77 0.337 0.173 0.843] trace | pred:
[0.3 0.32 0.419 0.683 0.36 0.902 0.183 0.77 0.337 0.173 0.843], [0.3 0.32 0.419 0.683 0.36 0.902 0.183 0.77 0.337 0.173 0.843], [0.3 0.32 0.419 0.683 0.36 0.902 0.183 0.77 0.337 0.173 0.843], [0.3 0.32 0.36 0.419 0.683 0.902 0.183 0.77 0.337 0.173 0.843], [0.3 0.32 0.36 0.419 0.683 0.902 0.183 0.77 0.337 0.173 0.843], [0.183 0.3 0.32 0.36 0.419 0.683 0.902 0.77 0.337 0.173 0.843], [0.183 0.3 0.32 0.36 0.419 0.683 0.77 0.902 0.337 0.173 0.843], [0.183 0.3 0.32 0.337 0.36 0.419 0.683 0.77 0.902 0.173 0.843], [0.173 0.183 0.3 0.32 0.337 0.36 0.419 0.683 0.77 0.902 0.843] | [0.173 0.183 0.3 0.32 0.337 0.36 0.419 0.683 0.77 0.843 0.902]
insertion_sort
segments_intersect: x: [0.318 0.876 0.795 0.334], y: [0.84 0.156 0.042 0.678] intersect:
0
segments_intersect
articulation_points: A: [[0 0 0 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 0], [0 0 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], [0 0 0 0 0 0 1 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]], 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 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 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]
articulation_points
dijkstra: s: 1, A: [[0.379 0 0 0 0], [0 0.641 0 0 0.654], [0 0 0 0.875 0], [0 0 0.875 0 0], [0 0.654 0 0 0.58]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 1] | [0 1 2 3 1]
dijkstra
dfs: A: [[0 0 1 0], [0 1 1 1], [0 1 1 0], [1 0 0 1]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 3], [0 1 0 3], [0 1 0 3], [0 2 0 3], [0 2 0 3], [0 2 0 1], [0 2 0 1], [0 2 0 1], [0 2 0 1], [0 2 0 1] | [0 2 0 1]
dfs
insertion_sort: key: [0.228 0.174 0.387 0.945 0.771 0.807 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], initial_trace: [0.228 0.174 0.387 0.945 0.771 0.807 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504] trace | pred:
[0.174 0.228 0.387 0.945 0.771 0.807 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.174 0.228 0.387 0.945 0.771 0.807 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.174 0.228 0.387 0.945 0.771 0.807 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.174 0.228 0.387 0.771 0.945 0.807 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.174 0.228 0.387 0.771 0.807 0.945 0.159 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.159 0.174 0.228 0.387 0.771 0.807 0.945 0.048 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.387 0.771 0.807 0.945 0.553 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.387 0.553 0.771 0.807 0.945 0.641 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.387 0.553 0.641 0.771 0.807 0.945 0.722 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.387 0.553 0.641 0.722 0.771 0.807 0.945 0.296 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.296 0.387 0.553 0.641 0.722 0.771 0.807 0.945 0.55 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.296 0.387 0.55 0.553 0.641 0.722 0.771 0.807 0.945 0.333 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.296 0.333 0.387 0.55 0.553 0.641 0.722 0.771 0.807 0.945 0.573 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.296 0.333 0.387 0.55 0.553 0.573 0.641 0.722 0.771 0.807 0.945 0.688 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.159 0.174 0.228 0.296 0.333 0.387 0.55 0.553 0.573 0.641 0.688 0.722 0.771 0.807 0.945 0.129 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.174 0.228 0.296 0.333 0.387 0.55 0.553 0.573 0.641 0.688 0.722 0.771 0.807 0.945 0.511 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.174 0.228 0.296 0.333 0.387 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.771 0.807 0.945 0.165 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.771 0.807 0.945 0.765 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.765 0.771 0.807 0.945 0.48 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.48 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.765 0.771 0.807 0.945 0.841 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.48 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.765 0.771 0.807 0.841 0.945 0.731 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.48 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.731 0.765 0.771 0.807 0.841 0.945 0.472 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.472 0.48 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.731 0.765 0.771 0.807 0.841 0.945 0.449 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.449 0.472 0.48 0.511 0.55 0.553 0.573 0.641 0.688 0.722 0.731 0.765 0.771 0.807 0.841 0.945 0.679 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.449 0.472 0.48 0.511 0.55 0.553 0.573 0.641 0.679 0.688 0.722 0.731 0.765 0.771 0.807 0.841 0.945 0.428 0.504], [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.428 0.449 0.472 0.48 0.511 0.55 0.553 0.573 0.641 0.679 0.688 0.722 0.731 0.765 0.771 0.807 0.841 0.945 0.504] | [0.048 0.129 0.159 0.165 0.174 0.228 0.296 0.333 0.387 0.428 0.449 0.472 0.48 0.504 0.511 0.55 0.553 0.573 0.641 0.679 0.688 0.722 0.731 0.765 0.771 0.807 0.841 0.945]
insertion_sort
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [2 3 2 1 3 3 3 1 1 2 3 0 2 3 3 0 1 2 3], initial_trace: 0 trace | s:
1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 8 | 8
naive_string_matcher
articulation_points: A: [[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]], initial_trace: [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]
articulation_points
insertion_sort: key: [0.602 0.889 0.996 0.295 0.206 0.034 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], initial_trace: [0.602 0.889 0.996 0.295 0.206 0.034 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416] trace | pred:
[0.602 0.889 0.996 0.295 0.206 0.034 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.602 0.889 0.996 0.295 0.206 0.034 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.295 0.602 0.889 0.996 0.206 0.034 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.206 0.295 0.602 0.889 0.996 0.034 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.206 0.295 0.602 0.889 0.996 0.866 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.206 0.295 0.602 0.866 0.889 0.996 0.703 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.206 0.295 0.602 0.703 0.866 0.889 0.996 0.722 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.206 0.295 0.602 0.703 0.722 0.866 0.889 0.996 0.162 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.162 0.206 0.295 0.602 0.703 0.722 0.866 0.889 0.996 0.327 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.162 0.206 0.295 0.327 0.602 0.703 0.722 0.866 0.889 0.996 0.108 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.206 0.295 0.327 0.602 0.703 0.722 0.866 0.889 0.996 0.202 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.295 0.327 0.602 0.703 0.722 0.866 0.889 0.996 0.993 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.295 0.327 0.602 0.703 0.722 0.866 0.889 0.993 0.996 0.681 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.295 0.327 0.602 0.681 0.703 0.722 0.866 0.889 0.993 0.996 0.441 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.295 0.327 0.441 0.602 0.681 0.703 0.722 0.866 0.889 0.993 0.996 0.88 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.295 0.327 0.441 0.602 0.681 0.703 0.722 0.866 0.88 0.889 0.993 0.996 0.271 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.271 0.295 0.327 0.441 0.602 0.681 0.703 0.722 0.866 0.88 0.889 0.993 0.996 0.824 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.162 0.202 0.206 0.271 0.295 0.327 0.441 0.602 0.681 0.703 0.722 0.824 0.866 0.88 0.889 0.993 0.996 0.158 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.158 0.162 0.202 0.206 0.271 0.295 0.327 0.441 0.602 0.681 0.703 0.722 0.824 0.866 0.88 0.889 0.993 0.996 0.786 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.158 0.162 0.202 0.206 0.271 0.295 0.327 0.441 0.602 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.993 0.996 0.655 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.158 0.162 0.202 0.206 0.271 0.295 0.327 0.441 0.602 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.993 0.996 0.918 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.158 0.162 0.202 0.206 0.271 0.295 0.327 0.441 0.602 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.265 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.158 0.162 0.202 0.206 0.265 0.271 0.295 0.327 0.441 0.602 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.22 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.108 0.158 0.162 0.202 0.206 0.22 0.265 0.271 0.295 0.327 0.441 0.602 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.042 0.201 0.632 0.608 0.259 0.416], [0.034 0.042 0.108 0.158 0.162 0.202 0.206 0.22 0.265 0.271 0.295 0.327 0.441 0.602 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.201 0.632 0.608 0.259 0.416], [0.034 0.042 0.108 0.158 0.162 0.201 0.202 0.206 0.22 0.265 0.271 0.295 0.327 0.441 0.602 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.632 0.608 0.259 0.416], [0.034 0.042 0.108 0.158 0.162 0.201 0.202 0.206 0.22 0.265 0.271 0.295 0.327 0.441 0.602 0.632 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.608 0.259 0.416], [0.034 0.042 0.108 0.158 0.162 0.201 0.202 0.206 0.22 0.265 0.271 0.295 0.327 0.441 0.602 0.608 0.632 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.259 0.416], [0.034 0.042 0.108 0.158 0.162 0.201 0.202 0.206 0.22 0.259 0.265 0.271 0.295 0.327 0.441 0.602 0.608 0.632 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996 0.416] | [0.034 0.042 0.108 0.158 0.162 0.201 0.202 0.206 0.22 0.259 0.265 0.271 0.295 0.327 0.416 0.441 0.602 0.608 0.632 0.655 0.681 0.703 0.722 0.786 0.824 0.866 0.88 0.889 0.918 0.993 0.996]
insertion_sort
segments_intersect: x: [0.834 0.909 0.972 0.344], y: [0.668 0.473 0.541 0.436] intersect:
1
segments_intersect
bfs: s: 7, A: [[1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 1 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 1 0 0 0 0], [0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0], [0 0 0 1 0 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0], [1 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0], [0 0 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 0], [1 1 0 1 0 0 1 0 0 0 0 0 1 1 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 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 0], [0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 1 1 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 1 1 1 0 0 0], [0 0 1 0 0 1 0 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 1 1 1 0 0 1], [0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0], [0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 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 0 0], [1 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 1 1 0 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 0 1 1 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 1 1 0 0 0 1 0 1], [0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0], [1 0 1 0 0 1 1 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 0], [0 0 1 0 0 0 0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1], [0 0 1 1 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1], [1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 1 1 0 0 0 1 1 0 1 0 1 0], [0 0 1 1 0 0 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 0], [1 1 1 0 1 1 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0], [0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 0 0 0 0 0 0 1 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 0 0 0 0 1 0 0 0 0], [1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27] trace | pi:
[0 1 2 7 4 5 6 7 8 9 10 11 12 13 14 15 16 7 7 7 20 21 22 23 24 7 7 27], [18 17 18 7 4 17 3 7 3 9 18 19 19 18 3 15 25 7 7 7 3 17 3 25 24 7 7 19] | [18 17 18 7 0 17 3 7 3 11 18 19 19 18 3 0 25 7 7 7 3 17 3 25 8 7 7 19]
bfs
dfs: A: [[1 1 0 0 1 0 1 1 1 0], [1 0 1 1 0 0 1 1 1 0], [1 1 1 1 1 1 0 0 1 0], [0 0 1 1 1 1 0 0 0 0], [1 0 0 0 1 1 1 0 0 0], [1 1 0 0 1 1 0 0 1 1], [1 0 1 0 1 1 0 1 0 1], [1 0 1 0 1 0 1 0 0 0], [1 1 0 0 0 0 0 0 1 1], [0 1 1 0 0 1 0 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 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 2 4 5 6 7 8 9], [0 0 1 2 4 5 6 7 8 9], [0 0 1 2 3 5 6 7 8 9], [0 0 1 2 3 5 6 7 8 9], [0 0 1 2 3 4 6 7 8 9], [0 0 1 2 3 4 6 7 8 9], [0 0 1 2 3 4 6 7 5 9], [0 0 1 2 3 4 6 7 5 9], [0 0 1 2 3 4 6 7 5 8], [0 0 1 2 3 4 6 7 5 8], [0 0 1 2 3 4 6 9 5 8], [0 0 1 2 3 4 6 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8], [0 0 1 2 3 4 7 9 5 8] | [0 0 1 2 3 4 7 9 5 8]
dfs
quickselect: key: [0.565 0.942 0.272 0.647 0.99 0.726 0.863 0.017 0.183 0.907 0.546], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 3, 3, 3, 3, 3, 3 | 3
quickselect
bfs: s: 1, A: [[0 1 0 1 1], [1 1 1 0 1], [0 1 1 0 0], [1 0 0 1 0], [1 1 0 0 0]], initial_trace: [0 1 2 3 4] trace | pi:
[1 1 1 3 1] | [1 1 1 0 1]
bfs
bubble_sort: key: [0.469 0.202 0.885 0.509 0.877 0.89 0.075 0.327 0.755 0.433], initial_trace: [0.469 0.202 0.885 0.509 0.877 0.89 0.075 0.327 0.755 0.433] trace | pred:
[0.469 0.202 0.885 0.509 0.877 0.89 0.075 0.327 0.433 0.755], [0.469 0.202 0.885 0.509 0.877 0.89 0.075 0.327 0.433 0.755], [0.469 0.202 0.885 0.509 0.877 0.89 0.075 0.327 0.433 0.755], [0.469 0.202 0.885 0.509 0.877 0.075 0.89 0.327 0.433 0.755], [0.469 0.202 0.885 0.509 0.075 0.877 0.89 0.327 0.433 0.755], [0.469 0.202 0.885 0.075 0.509 0.877 0.89 0.327 0.433 0.755], [0.469 0.202 0.075 0.885 0.509 0.877 0.89 0.327 0.433 0.755], [0.469 0.075 0.202 0.885 0.509 0.877 0.89 0.327 0.433 0.755], [0.075 0.469 0.202 0.885 0.509 0.877 0.89 0.327 0.433 0.755], [0.075 0.469 0.202 0.885 0.509 0.877 0.89 0.327 0.433 0.755], [0.075 0.469 0.202 0.885 0.509 0.877 0.89 0.327 0.433 0.755], [0.075 0.469 0.202 0.885 0.509 0.877 0.327 0.89 0.433 0.755], [0.075 0.469 0.202 0.885 0.509 0.327 0.877 0.89 0.433 0.755], [0.075 0.469 0.202 0.885 0.327 0.509 0.877 0.89 0.433 0.755], [0.075 0.469 0.202 0.327 0.885 0.509 0.877 0.89 0.433 0.755], [0.075 0.469 0.202 0.327 0.885 0.509 0.877 0.89 0.433 0.755], [0.075 0.202 0.469 0.327 0.885 0.509 0.877 0.89 0.433 0.755], [0.075 0.202 0.469 0.327 0.885 0.509 0.877 0.89 0.433 0.755], [0.075 0.202 0.469 0.327 0.885 0.509 0.877 0.433 0.89 0.755], [0.075 0.202 0.469 0.327 0.885 0.509 0.433 0.877 0.89 0.755], [0.075 0.202 0.469 0.327 0.885 0.433 0.509 0.877 0.89 0.755], [0.075 0.202 0.469 0.327 0.433 0.885 0.509 0.877 0.89 0.755], [0.075 0.202 0.469 0.327 0.433 0.885 0.509 0.877 0.89 0.755], [0.075 0.202 0.327 0.469 0.433 0.885 0.509 0.877 0.89 0.755], [0.075 0.202 0.327 0.469 0.433 0.885 0.509 0.877 0.755 0.89], [0.075 0.202 0.327 0.469 0.433 0.885 0.509 0.755 0.877 0.89], [0.075 0.202 0.327 0.469 0.433 0.885 0.509 0.755 0.877 0.89], [0.075 0.202 0.327 0.469 0.433 0.509 0.885 0.755 0.877 0.89], [0.075 0.202 0.327 0.469 0.433 0.509 0.885 0.755 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.885 0.755 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.885 0.755 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.885 0.755 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.885 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.885 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.885 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.885 0.877 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89], [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89] | [0.075 0.202 0.327 0.433 0.469 0.509 0.755 0.877 0.885 0.89]
bubble_sort
articulation_points: A: [[1 0 0 0], [0 1 0 0], [0 0 0 0], [0 0 0 0]], 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
topological_sort: A: [[0 0 1 1 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 0 0 0 0 0 1 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 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 1 0], [0 1 0 1 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 0], [0 1 1 1 0 1 0 0 0 1 0 1 0 1 0], [1 1 1 0 0 1 1 0 0 1 1 1 0 1 0], [0 0 0 1 0 0 0 0 0 0 0 0 0 1 0], [0 0 1 0 0 1 1 0 0 0 0 1 0 1 0], [0 0 0 1 0 0 0 0 0 1 0 0 0 1 0], [0 1 0 1 0 0 0 0 1 0 0 1 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 1 0 1 0 0 1 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 13, [0 1 2 13 4 5 6 7 8 9 10 11 12 13 14], 3, [0 3 2 13 4 5 6 7 8 9 10 11 12 13 14], 1, [0 3 1 13 4 5 6 7 8 9 10 11 12 13 14], 2, [0 3 1 13 4 5 6 7 8 9 10 11 12 13 14], 2, [0 3 1 13 4 5 6 7 8 9 10 11 12 13 14], 2, [0 3 1 13 4 5 6 7 8 2 10 11 12 13 14], 9, [0 3 1 13 4 5 6 7 8 2 10 9 12 13 14], 11, [11 3 1 13 4 5 6 7 8 2 10 9 12 13 14], 0, [11 3 1 13 4 5 6 7 8 2 10 9 12 13 14], 0, [11 3 1 13 4 5 6 7 8 2 10 9 12 13 14], 0, [11 3 1 13 4 5 6 7 8 2 10 9 12 13 14], 0, [11 3 1 13 4 5 0 7 8 2 10 9 12 13 14], 6, [11 3 1 13 6 5 0 7 8 2 10 9 12 13 14], 4, [11 3 1 13 6 5 0 7 8 2 10 9 12 13 14], 4, [11 3 1 13 6 5 0 7 8 2 10 9 12 13 14], 4, [11 3 1 13 6 4 0 7 8 2 10 9 12 13 14], 5, [11 3 1 13 6 4 0 7 8 2 10 9 12 13 14], 5, [11 3 1 13 6 4 0 7 8 2 10 9 12 13 14], 5, [11 3 1 13 6 4 0 5 8 2 10 9 12 13 14], 7, [11 3 1 13 6 4 0 5 8 2 10 9 12 13 14], 7, [11 3 1 13 6 4 0 5 8 2 10 9 12 13 14], 7, [11 3 1 13 6 4 0 5 8 2 10 9 12 13 14], 7, [11 3 1 13 6 4 0 5 8 2 7 9 12 13 14], 10, [11 3 1 13 6 4 0 5 10 2 7 9 12 13 14], 8, [11 3 1 13 6 4 0 5 10 2 7 9 12 13 14], 8, [11 3 1 13 6 4 0 5 10 2 7 9 12 13 14], 8, [11 3 1 13 6 4 0 5 10 2 7 9 8 13 14], 12, [11 3 1 13 6 4 0 5 10 2 7 9 8 13 14], 12, [11 3 1 13 6 4 0 5 10 2 7 9 8 13 14], 12 | [11 3 1 13 6 4 0 5 10 2 7 9 8 13 12], 14
topological_sort
segments_intersect: x: [0.854 0.776 0.687 0.383], y: [0.461 0.796 0.726 0.615] intersect:
0
segments_intersect
find_maximum_subarray_kadane: key: [0.624 0.021 0.942 0.977 0.546 -0.02 -0.692 -0.465 0.097 0.674 0.293 0.765 -0.036 0.134 0.349], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 2), (0, 3), (0, 4), (0, 4), (0, 4), (0, 4), (0, 4), (0, 4), (0, 4), (0, 11), (0, 11), (0, 13) | (0, 14)
find_maximum_subarray_kadane
bellman_ford: s: 28, A: [[0.451 0.62 0 0 0.508 0 0.59 0.436 0 0.559 0 0 0 0 0 0 0.571 0 0.379 0 0 0 0 0 0 0 0 0 0.256 0 0], [0.62 0 0.321 0 0 0 0.454 0 0.468 0 0 0 0 0 0 0 0 0.045 0 0 0 0.483 0.427 0 0.395 0 0 0 0.642 0.859 0], [0 0.321 0 0 0 0 0 0 0.161 0 0 0.129 0 0 0 0 0 0 0.573 0 0 0 0 0 0.36 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.046 0 0.754 0 0 0.601 0.344 0], [0.508 0 0 0 0 0.115 0 0 0 0 0.435 0 0.596 0 0.487 0 0 0 0.285 0 0.548 0 0 0 0.454 0 0 0 0 0 0], [0 0 0 0 0.115 0 0 0.332 0.907 0 0 0 0 0 0 0.605 0.246 0.971 0 0 0 0 0 0 0 0 0 0 0 0.499 0], [0.59 0.454 0 0 0 0 0 0.831 0 0 0 0 0 0 0 0 0.537 0.078 0.335 0 0 0 0 0 0 0 0.555 0 0.359 0 0], [0.436 0 0 0 0 0.332 0.831 0 0.618 0 0.23 0 0 0 0.357 0.273 0 0 0 0 0 0.399 0 0 0 0 0 0 0 0 0], [0 0.468 0.161 0 0 0.907 0 0.618 0 0 0 0 0.102 0 0 0 0 0.17 0 0 0 0.306 0 0 0.517 0 0 0.13 0 0 0], [0.559 0 0 0 0 0 0 0 0 0.05 0 0 0.434 0 0 0.272 0.618 0 0 0.151 0.38 0.332 0 0.248 0 0 0 0 0 0 0.12], [0 0 0 0 0.435 0 0 0.23 0 0 0 0 0 0 0.7 0 0.39 0 0 0 0 0.7 0 0 0 0 0 0.63 0.556 0 0], [0 0 0.129 0 0 0 0 0 0 0 0 0.667 0.297 0 0 0 0 0 0.727 0 0 0 0 0 0 0 0 0 0.575 0.603 0], [0 0 0 0 0.596 0 0 0 0.102 0.434 0 0.297 0.762 0 0 0.352 0.778 0 0 0 0 0 0 0 0 0 0 0 0.437 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0.834 0.414 0.676 0 0 0.827 0.354 0 0 0.352 0 0 0 0 0 0 0 0.527], [0 0 0 0 0.487 0 0 0.357 0 0 0.7 0 0 0.414 0.148 0 0 0 0 0.716 0.36 0.399 0 0 0 0 0 0 0 0.199 0.279], [0 0 0 0 0 0.605 0 0.273 0 0.272 0 0 0.352 0.676 0 0 0 0 0 0 0 0 0 0 0 0.359 0 0 0 0.59 0], [0.571 0 0 0 0 0.246 0.537 0 0 0.618 0.39 0 0.778 0 0 0 0.555 0 0.819 0 0 0 0 0 0.505 0 0 0 0 0 0], [0 0.045 0 0 0 0.971 0.078 0 0.17 0 0 0 0 0 0 0 0 0 0 0.455 0 0 0 0 0 0 0 0.812 0 0 0.585], [0.379 0 0.573 0 0.285 0 0.335 0 0 0 0 0.727 0 0.827 0 0 0.819 0 0.279 0.814 0 0.246 0.539 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.151 0 0 0 0.354 0.716 0 0 0.455 0.814 0 0 0 0 0 0 0 0 0.183 0.302 0 0.348], [0 0 0 0 0.548 0 0 0 0 0.38 0 0 0 0 0.36 0 0 0 0 0 0 0 0.403 0.546 0.815 0 0.139 0 0.272 0 0.461], [0 0.483 0 0 0 0 0 0.399 0.306 0.332 0.7 0 0 0 0.399 0 0 0 0.246 0 0 0.036 0 0 0 0 0 0 0.23 0 0], [0 0.427 0 0 0 0 0 0 0 0 0 0 0 0.352 0 0 0 0 0.539 0 0.403 0 0.322 0.321 0 0 0 0 0 0 0], [0 0 0 0.046 0 0 0 0 0 0.248 0 0 0 0 0 0 0 0 0 0 0.546 0 0.321 0.182 0 0 0 0 0 0.437 0], [0 0.395 0.36 0 0.454 0 0 0 0.517 0 0 0 0 0 0 0 0.505 0 0 0 0.815 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.754 0 0 0 0 0 0 0 0 0 0 0 0.359 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.555 0 0 0 0 0 0 0 0 0 0 0 0 0 0.139 0 0 0 0 0 0.952 0 0 0 0.135], [0 0 0 0 0 0 0 0 0.13 0 0.63 0 0 0 0 0 0 0.812 0 0.183 0 0 0 0 0 0 0 0.597 0.278 0 0.273], [0.256 0.642 0 0.601 0 0 0.359 0 0 0 0.556 0.575 0.437 0 0 0 0 0 0 0.302 0.272 0.23 0 0 0 0 0 0.278 0 0 0], [0 0.859 0 0.344 0 0.499 0 0 0 0 0 0.603 0 0 0.199 0.59 0 0 0 0 0 0 0 0.437 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.12 0 0 0 0.527 0.279 0 0 0.585 0 0.348 0.461 0 0 0 0 0 0.135 0.273 0 0 0.185]], 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:
[28 28 2 28 4 5 28 7 8 9 28 28 28 13 14 15 16 17 18 28 28 28 22 23 24 25 26 28 28 29 30], [28 28 11 28 0 5 28 21 27 19 28 28 28 19 21 12 0 6 21 28 28 28 20 3 1 3 20 28 28 3 27], [28 17 8 28 18 4 28 21 27 19 28 28 28 19 21 9 0 6 21 28 28 28 20 3 8 15 20 28 28 14 26] | [28 17 8 28 18 4 28 21 27 19 28 28 28 19 21 9 0 6 21 28 28 28 20 3 1 15 20 28 28 14 26]
bellman_ford
mst_prim: s: 0, A: [[0 0 0 0 0 0 0 0 0 0.411 0 0 0 0 0 0 0.414 0 0], [0 0.804 0 0.318 0 0 0 0.639 0 0 0.123 0 0 0.541 0 0 0 0.315 0], [0 0 0 0 0.755 0 0 0 0 0 0 0 0 0.764 0 0 0 0 0], [0 0.318 0 0 0 0 0 0 0 0 0.93 0.278 0 0 0 0.383 0 0 0], [0 0 0.755 0 0.596 0.422 0.229 0 0.399 0 0 0.364 0 0 0.698 0 0 0.225 0.277], [0 0 0 0 0.422 0 0 0 0 0.362 0 0 0.041 0.31 0.631 0 0 0 0], [0 0 0 0 0.229 0 0.821 0.414 0 0 0.486 0.467 0 0 0 0 0 0 0], [0 0.639 0 0 0 0 0.414 0 0.343 0 0 0.04 0 0 0 0 0 0 0], [0 0 0 0 0.399 0 0 0.343 0 0 0 0 0 0 0 0 0 0 0], [0.411 0 0 0 0 0.362 0 0 0 0 0 0 0 0.223 0.302 0 0.679 0 0], [0 0.123 0 0.93 0 0 0.486 0 0 0 0.101 0 0 0 0.243 0.683 0 0 0], [0 0 0 0.278 0.364 0 0.467 0.04 0 0 0 0.521 0.466 0 0.913 0 0 0 0.576], [0 0 0 0 0 0.041 0 0 0 0 0 0.466 0.643 0 0.275 0 0.671 0.635 0], [0 0.541 0.764 0 0 0.31 0 0 0 0.223 0 0 0 0 0 0 0 0 0.537], [0 0 0 0 0.698 0.631 0 0 0 0.302 0.243 0.913 0.275 0 0.761 0 0 0 0], [0 0 0 0.383 0 0 0 0 0 0 0.683 0 0 0 0 0 0.444 0 0], [0.414 0 0 0 0 0 0 0 0 0.679 0 0 0.671 0 0 0.444 0.561 0.748 0], [0 0.315 0 0 0.225 0 0 0 0 0 0 0 0.635 0 0 0 0.748 0 0], [0 0 0 0 0.277 0 0 0 0 0 0 0.576 0 0.537 0 0 0 0 0.216]], 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 0 10 11 12 13 14 15 0 17 18], [0 1 2 3 4 9 6 7 8 0 10 11 12 9 9 15 0 17 18], [0 13 13 3 4 13 6 7 8 0 10 11 12 9 9 15 0 17 13], [0 13 13 3 14 13 6 7 8 0 14 14 14 9 9 15 0 17 13], [0 10 13 10 14 13 10 7 8 0 14 14 14 9 9 10 0 17 13], [0 10 13 1 14 13 10 1 8 0 14 14 14 9 9 10 0 1 13], [0 10 13 1 14 12 10 1 8 0 14 12 14 9 9 10 0 1 13], [0 10 13 1 5 12 10 1 8 0 14 12 14 9 9 10 0 1 13], [0 10 13 1 17 12 10 1 8 0 14 12 14 9 9 10 0 1 13], [0 10 4 1 17 12 4 1 4 0 14 4 14 9 9 10 0 1 4], [0 10 4 1 17 12 4 6 4 0 14 4 14 9 9 10 0 1 4], [0 10 4 1 17 12 4 6 4 0 14 4 14 9 9 10 0 1 4], [0 10 4 1 17 12 4 6 4 0 14 3 14 9 9 3 0 1 4], [0 10 4 1 17 12 4 11 4 0 14 3 14 9 9 3 0 1 4], [0 10 4 1 17 12 4 11 7 0 14 3 14 9 9 3 0 1 4], [0 10 4 1 17 12 4 11 7 0 14 3 14 9 9 3 0 1 4], [0 10 4 1 17 12 4 11 7 0 14 3 14 9 9 3 0 1 4], [0 10 4 1 17 12 4 11 7 0 14 3 14 9 9 3 0 1 4] | [0 10 4 1 17 12 4 11 7 0 14 3 14 9 9 3 0 1 4]
mst_prim
minimum: key: [0.243 0.707 0.529 0.651 0.05 0.091 0.825 0.846 0.569 0.202 0.378 0.415 0.818 0.751 0.673 0.415 0.19 0.683 0.42 0.006 0.356 0.822 0.982 0.48 0.74 0.53 0.885 0.596 0.849 0.651 0.086], initial_trace: 0 trace | min:
0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19 | 19
minimum
binary_search: key: [0.052 0.285 0.412 0.42 0.555 0.573 0.759 0.818 0.831 0.971], target: 0.183, initial_trace: (0, 9) trace | (low, high):
(0, 4), (0, 2), (0, 1) | (1, 1)
binary_search
dag_shortest_paths: s: 2, A: [[0 0.0868 0.386 0], [0 0 0 0], [0 0.937 0 0], [0.115 0.154 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 2 2 3]
dag_shortest_paths
segments_intersect: x: [0.07 0.528 0.802 0.75], y: [0.963 0.268 0.152 0.855] intersect:
0
segments_intersect
dijkstra: s: 6, A: [[0 0 0.439 0 0.11 0.224 0 0 0 0 0.505], [0 0.402 0 0 0 0.718 0.312 0.694 0 0.483 0], [0.439 0 0.082 0 0 0 0.36 0 0 0 0], [0 0 0 0.824 0 0 0 0 0.59 0 0], [0.11 0 0 0 0.475 0 0 0 0 0 0], [0.224 0.718 0 0 0 0.742 0 0 0 0 0], [0 0.312 0.36 0 0 0 0.873 0.121 0 0 0], [0 0.694 0 0 0 0 0.121 0.057 0 0 0.264], [0 0 0 0.59 0 0 0 0 0.095 0 0], [0 0.483 0 0 0 0 0 0 0 0 0.46], [0.505 0 0 0 0 0 0 0.264 0 0.46 0.878]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 6 6 3 4 5 6 6 8 9 10], [0 6 6 3 4 5 6 6 8 9 7], [0 6 6 3 4 1 6 6 8 1 7], [2 6 6 3 4 1 6 6 8 1 7], [2 6 6 3 4 1 6 6 8 1 7], [2 6 6 3 4 1 6 6 8 1 7], [2 6 6 3 0 0 6 6 8 1 7], [2 6 6 3 0 0 6 6 8 1 7] | [2 6 6 3 0 0 6 6 8 1 7]
dijkstra
insertion_sort: key: [0.029 0.695 0.319 0.358 0.257 0.564 0.044 0.218 0.497 0.36 0.974], initial_trace: [0.029 0.695 0.319 0.358 0.257 0.564 0.044 0.218 0.497 0.36 0.974] trace | pred:
[0.029 0.695 0.319 0.358 0.257 0.564 0.044 0.218 0.497 0.36 0.974], [0.029 0.319 0.695 0.358 0.257 0.564 0.044 0.218 0.497 0.36 0.974], [0.029 0.319 0.358 0.695 0.257 0.564 0.044 0.218 0.497 0.36 0.974], [0.029 0.257 0.319 0.358 0.695 0.564 0.044 0.218 0.497 0.36 0.974], [0.029 0.257 0.319 0.358 0.564 0.695 0.044 0.218 0.497 0.36 0.974], [0.029 0.044 0.257 0.319 0.358 0.564 0.695 0.218 0.497 0.36 0.974], [0.029 0.044 0.218 0.257 0.319 0.358 0.564 0.695 0.497 0.36 0.974], [0.029 0.044 0.218 0.257 0.319 0.358 0.497 0.564 0.695 0.36 0.974], [0.029 0.044 0.218 0.257 0.319 0.358 0.36 0.497 0.564 0.695 0.974] | [0.029 0.044 0.218 0.257 0.319 0.358 0.36 0.497 0.564 0.695 0.974]
insertion_sort
bellman_ford: s: 24, A: [[0.226 0.188 0.434 0 0 0 0 0 0 0 0 0 0.273 0 0 0.662 0 0.582 0 0.594 0.435 0 0 0.56 0 0.675 0 0.53], [0.188 0.81 0 0 0 0 0 0 0.734 0.285 0 0.67 0 0 0.532 0 0 0 0 0.661 0 0.448 0 0.686 0 0 0 0], [0.434 0 0.187 0.233 0 0.373 0 0.696 0 0.219 0 0.24 0 0 0.163 0.211 0 0.8 0 0 0 0 0.626 0 0 0 0 0.747], [0 0 0.233 0 0 0 0.429 0 0 0 0.263 0 0 0 0 0 0.43 0 0 0 0 0.956 0 0 0 0 0 0], [0 0 0 0 0 0 0.86 0.447 0 0 0 0 0 0 0 0 0 0.924 0.831 0 0 0 0 0 0.391 0 0.632 0.494], [0 0 0.373 0 0 0.104 0 0 0 0 0 0 0.615 0 0 0.819 0.297 0.217 0 0.402 0 0 0 0 0 0 0 0], [0 0 0 0.429 0.86 0 0 0 0.683 0 0 0 0 0.231 0 0 0 0 0 0 0.246 0.379 0 0 0 0 0.3 0.518], [0 0 0.696 0 0.447 0 0 0.258 0 0 0 0.484 0 0 0 0.459 0 0 0 0 0.287 0 0 0 0 0 0.875 0], [0 0.734 0 0 0 0 0.683 0 0 0 0 0 0 0 0 0 0 0 0.574 0.489 0.276 0 0 0.519 0 0 0 0], [0 0.285 0.219 0 0 0 0 0 0 0.94 0 0 0 0 0 0 0.461 0 0 0 0 0 0 0.724 0 0 0 0], [0 0 0 0.263 0 0 0 0 0 0 0 0 0 0 0 0.071 0 0 0.602 0 0 0.432 0 0 0 0 0 0], [0 0.67 0.24 0 0 0 0 0.484 0 0 0 0.145 0.111 0 0.385 0 0.54 0 0.593 0 0.587 0 0 0.422 0 0 0.528 0], [0.273 0 0 0 0 0.615 0 0 0 0 0 0.111 0 0 0 0.561 0.25 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.231 0 0 0 0 0 0 0 0 0 0 0 0 0.449 0 0.543 0 0 0 0 0 0], [0 0.532 0.163 0 0 0 0 0 0 0 0 0.385 0 0 0.226 0 0 0.194 0 0.608 0 0 0.517 0 0 0 0.584 0], [0.662 0 0.211 0 0 0.819 0 0.459 0 0 0.071 0 0.561 0 0 0.548 0 0 0.877 0.665 0 0 0 0.596 0 0 0 0], [0 0 0 0.43 0 0.297 0 0 0 0.461 0 0.54 0.25 0 0 0 0.758 0.521 0.462 0 0 0 0.697 0 0.945 0.411 0.638 0], [0.582 0 0.8 0 0.924 0.217 0 0 0 0 0 0 0 0 0.194 0 0.521 0 0 0.347 0.723 0 0 0 0 0 0.287 0.327], [0 0 0 0 0.831 0 0 0 0.574 0 0.602 0.593 0 0 0 0.877 0.462 0 0.146 0 0.629 0.071 0 0 0.705 0 0 0], [0.594 0.661 0 0 0 0.402 0 0 0.489 0 0 0 0 0.449 0.608 0.665 0 0.347 0 0 0 0 0 0 0 0 0 0], [0.435 0 0 0 0 0 0.246 0.287 0.276 0 0 0.587 0 0 0 0 0 0.723 0.629 0 0.032 0 0.468 0.535 0 0 0 0], [0 0.448 0 0.956 0 0 0.379 0 0 0 0.432 0 0 0.543 0 0 0 0 0.071 0 0 0.227 0 0 0 0.045 0.509 0], [0 0 0.626 0 0 0 0 0 0 0 0 0 0 0 0.517 0 0.697 0 0 0 0.468 0 0 0 0 0 0 0], [0.56 0.686 0 0 0 0 0 0 0.519 0.724 0 0.422 0 0 0 0.596 0 0 0 0 0.535 0 0 0.213 0 0.422 0.226 0.516], [0 0 0 0 0.391 0 0 0 0 0 0 0 0 0 0 0 0.945 0 0.705 0 0 0 0 0 0 0 0.418 0], [0.675 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.411 0 0 0 0 0.045 0 0.422 0 0.543 0 0.78], [0 0 0 0 0.632 0 0.3 0.875 0 0 0 0.528 0 0 0.584 0 0.638 0.287 0 0 0 0.509 0 0.226 0.418 0 0 0.747], [0.53 0 0.747 0 0.494 0 0.518 0 0 0 0 0 0 0 0 0 0 0.327 0 0 0 0 0 0.516 0 0.78 0.747 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 1 2 3 24 5 6 7 8 9 10 11 12 13 14 15 24 17 24 19 20 21 22 23 24 25 24 27], [0 1 2 16 24 16 26 4 18 16 18 26 16 13 26 18 24 26 24 19 18 18 16 26 24 16 24 4], [23 21 14 6 24 17 26 4 23 23 21 26 11 6 17 23 24 26 24 17 6 18 14 26 24 21 24 4], [23 21 14 6 24 17 26 4 23 23 21 26 11 6 17 23 24 26 24 17 6 18 14 26 24 21 24 4] | [23 21 14 6 24 17 26 4 23 2 21 26 11 6 17 23 24 26 24 17 6 18 14 26 24 21 24 4]
bellman_ford
graham_scan: x: [-1.19 -0.383 0.775 -0.64 -0.409 0.559 -0.62 -1.63 0.047 -0.648 -1.01 -0.434 -0.411 0.046 -0.766 -0.693 0.851 -1.68 -1.06 -1.23 -1.23 1.44 -0.037 -1.41 0.976 0.351 -0.216 -1.16], y: [0.743 1.34 0.379 -1.78 1.08 -1.28 1.67 0.7 1.17 1.5 -1.33 1.47 -0.609 -0.906 1.43 1.15 -1.17 -0.808 1.42 1.28 1.5 -0.141 1.12 -0.291 -1.09 1.15 -1.28 1.44], 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 | in_hull:
[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 1 0 0 0 0 0 0 0 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