Datasets:

question
stringlengths
65
3.42k
answer
stringlengths
3
5.8k
algo_name
stringclasses
30 values
strongly_connected_components: A: [[0 0 0 0], [0 0 0 0], [0 0 1 0], [0 0 0 1]], initial_trace: [0 1 2 3] trace | scc_id:
[0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3] | [0 1 2 3]
strongly_connected_components
quicksort: key: [0.939 0.02 0.163 0.474 0.036], initial_trace: [0.939 0.02 0.163 0.474 0.036] trace | pred:
[0.02 0.939 0.163 0.474 0.036], [0.02 0.939 0.163 0.474 0.036], [0.02 0.939 0.163 0.474 0.036], [0.02 0.036 0.163 0.474 0.939], [0.02 0.036 0.163 0.474 0.939], [0.02 0.036 0.163 0.474 0.939], [0.02 0.036 0.163 0.474 0.939], [0.02 0.036 0.163 0.474 0.939] | [0.02 0.036 0.163 0.474 0.939]
quicksort
minimum: key: [0.112 0.481 0.901 0.05], initial_trace: 0 trace | min:
0, 0 | 3
minimum
find_maximum_subarray_kadane: key: [-0.464 0.912 0.544 0.023 0.089 -0.823 -0.293 0.586 -0.866 -0.306 0.605], initial_trace: (0, 0) trace | (best_low, best_high):
(1, 1), (1, 2), (1, 3), (1, 4), (1, 4), (1, 4), (1, 4), (1, 4), (1, 4) | (1, 4)
find_maximum_subarray_kadane
find_maximum_subarray_kadane: key: [-0.393 0.751 -0.7 0.765 -0.382 0.049 0.151 0.534 0.03 0.687 0.025 0.796 -0.922 0.478 0.3 0.028 0.99 0.828 0.615 -0.608 0.422 0.186 0.853], initial_trace: (0, 0) trace | (best_low, best_high):
(1, 1), (1, 1), (1, 3), (1, 3), (1, 3), (1, 3), (1, 7), (1, 8), (1, 9), (1, 10), (1, 11), (1, 11), (1, 11), (1, 11), (1, 11), (1, 16), (1, 17), (1, 18), (1, 18), (1, 18), (1, 18) | (1, 22)
find_maximum_subarray_kadane
binary_search: key: [0.044 0.08 0.279 0.284 0.396 0.525 0.744 0.753 0.781 0.92], target: 0.840, initial_trace: (0, 9) trace | (low, high):
(5, 9), (8, 9) | (9, 9)
binary_search
dijkstra: s: 1, A: [[0 0 0 0 0.098 0 0 0 0 0 0.192 0 0 0 0 0 0 0 0], [0 0 0.148 0 0 0 0 0.413 0.502 0 0 0 0 0 0 0 0 0 0], [0 0.148 0.443 0 0 0 0 0 0 0 0.855 0 0 0.493 0 0 0 0 0], [0 0 0 0.428 0.661 0 0 0 0 0 0.892 0 0 0 0 0 0 0.556 0], [0.098 0 0 0.661 0 0 0 0 0 0 0.089 0 0 0 0.343 0 0 0 0], [0 0 0 0 0 0.84 0 0.569 0 0 0 0 0.514 0.182 0.248 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.153 0 0 0 0 0.607 0 0], [0 0.413 0 0 0 0.569 0 0 0 0 0 0 0 0 0 0 0 0.777 0], [0 0.502 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.325 0.821], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.258 0], [0.192 0 0.855 0.892 0.089 0 0 0 0 0 0 0 0 0 0.737 0 0 0 0], [0 0 0 0 0 0 0.153 0 0 0 0 0.041 0 0 0 0 0 0 0], [0 0 0 0 0 0.514 0 0 0 0 0 0 0 0.158 0 0 0.564 0 0.213], [0 0 0.493 0 0 0.182 0 0 0 0 0 0 0.158 0.675 0 0 0 0 0.616], [0 0 0 0 0.343 0.248 0 0 0 0 0.737 0 0 0 0.374 0 0.392 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.607 0 0 0 0 0 0.564 0 0.392 0 0.703 0 0], [0 0 0 0.556 0 0 0 0.777 0.325 0.258 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.821 0 0 0 0.213 0.616 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[0 1 1 3 4 5 6 1 1 9 10 11 12 13 14 15 16 17 18], [0 1 1 3 4 5 6 1 1 9 2 11 12 2 14 15 16 17 18], [0 1 1 3 4 7 6 1 1 9 2 11 12 2 14 15 16 7 18], [0 1 1 3 4 7 6 1 1 9 2 11 12 2 14 15 16 8 8], [0 1 1 3 4 13 6 1 1 9 2 11 13 2 14 15 16 8 13], [0 1 1 3 4 13 6 1 1 9 2 11 13 2 14 15 12 8 12], [0 1 1 3 4 13 6 1 1 9 2 11 13 2 5 15 12 8 12], [0 1 1 17 4 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [10 1 1 17 10 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [10 1 1 17 10 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [10 1 1 17 10 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [10 1 1 17 10 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [4 1 1 17 10 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [4 1 1 17 10 13 6 1 1 17 2 11 13 2 5 15 12 8 12], [4 1 1 17 10 13 16 1 1 17 2 11 13 2 5 15 12 8 12], [4 1 1 17 10 13 16 1 1 17 2 11 13 2 5 15 12 8 12], [4 1 1 17 10 13 16 1 1 17 2 6 13 2 5 15 12 8 12] | [4 1 1 17 10 13 16 1 1 17 2 6 13 2 5 15 12 8 12]
dijkstra
strongly_connected_components: A: [[0 0 0 0], [0 1 0 0], [0 0 1 0], [0 0 0 1]], initial_trace: [0 1 2 3] trace | scc_id:
[0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3] | [0 1 2 3]
strongly_connected_components
minimum: key: [0.888 0.789 0.349 0.971 0.364 0.499 0.806 0.896 0.056 0.964 0.153 0.866 0.481 0.556 0.621], initial_trace: 0 trace | min:
1, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 8, 8 | 8
minimum
dijkstra: s: 7, A: [[0 0 0 0 0 0 0.585 0 0 0 0 0 0 0.249 0 0 0 0 0], [0 0.518 0 0.342 0.494 0 0 0 0 0.935 0 0 0 0 0.548 0.155 0 0 0], [0 0 0 0 0 0 0 0 0.36 0.872 0 0 0.282 0 0 0 0 0.679 0], [0 0.342 0 0 0 0 0 0 0 0 0 0 0.384 0.339 0 0 0.776 0 0], [0 0.494 0 0 0 0 0.113 0.327 0 0 0 0 0.684 0 0 0 0.517 0 0], [0 0 0 0 0 0.914 0 0 0 0 0 0 0.204 0 0 0 0 0 0], [0.585 0 0 0 0.113 0 0.036 0 0 0 0 0 0 0 0.589 0 0 0 0], [0 0 0 0 0.327 0 0 0.474 0.081 0 0 0 0 0 0 0 0 0 0.633], [0 0 0.36 0 0 0 0 0.081 0.92 0 0.09 0 0 0 0 0 0 0.667 0], [0 0.935 0.872 0 0 0 0 0 0 0.624 0.541 0 0 0.175 0 0 0.75 0 0], [0 0 0 0 0 0 0 0 0.09 0.541 0 0 0 0 0.331 0.488 0 0.909 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.623 0 0 0 0], [0 0 0.282 0.384 0.684 0.204 0 0 0 0 0 0 0 0 0 0 0 0 0], [0.249 0 0 0.339 0 0 0 0 0 0.175 0 0 0 0 0 0 0 0 0], [0 0.548 0 0 0 0 0.589 0 0 0 0.331 0.623 0 0 0 0 0 0 0], [0 0.155 0 0 0 0 0 0 0 0 0.488 0 0 0 0 0.04 0.609 0 0.37], [0 0 0 0.776 0.517 0 0 0 0 0.75 0 0 0 0 0 0.609 0 0 0], [0 0 0.679 0 0 0 0 0 0.667 0 0.909 0 0 0 0 0 0 0.967 0], [0 0 0 0 0 0 0 0.633 0 0 0 0 0 0 0 0.37 0 0 0.769]], 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 7 5 6 7 7 9 10 11 12 13 14 15 16 17 7], [0 1 8 3 7 5 6 7 7 9 8 11 12 13 14 15 16 8 7], [0 1 8 3 7 5 6 7 7 10 8 11 12 13 10 10 16 8 7], [0 4 8 3 7 5 4 7 7 10 8 11 4 13 10 10 4 8 7], [6 4 8 3 7 5 4 7 7 10 8 11 4 13 10 10 4 8 7], [6 4 8 3 7 5 4 7 7 10 8 11 2 13 10 10 4 8 7], [6 4 8 3 7 5 4 7 7 10 8 14 2 13 10 10 4 8 7], [6 4 8 3 7 5 4 7 7 10 8 14 2 13 10 10 4 8 7], [6 15 8 3 7 5 4 7 7 10 8 14 2 13 10 10 4 8 7], [6 15 8 3 7 5 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7], [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7] | [6 15 8 12 7 12 4 7 7 10 8 14 2 9 10 10 4 8 7]
dijkstra
minimum: key: [0.574 0.684 0.294 0.088 0.977 0.119 0.626 0.993 0.762 0.829 0.417 0.703 0.37 0.459 0.689 0.745 0.015 0.809 0.62 0.367 0.991 0.588 0.24 0.522 0.351 0.245 0.904 0.972 0.874 0.516 0.922], initial_trace: 0 trace | min:
0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16 | 16
minimum
insertion_sort: key: [0.622 0.894 0.948 0.416 0.454], initial_trace: [0.622 0.894 0.948 0.416 0.454] trace | pred:
[0.622 0.894 0.948 0.416 0.454], [0.622 0.894 0.948 0.416 0.454], [0.416 0.622 0.894 0.948 0.454] | [0.416 0.454 0.622 0.894 0.948]
insertion_sort
find_maximum_subarray_kadane: key: [0.735 0.754 -0.713 -0.887 -0.195 0.67 0.755 0.824 -0.166 -0.053 0.669 0.133 -0.899 0.291 0.168 -0.093 -0.667 -0.863 0.599 -0.949 -0.696 -0.528 -0.534 -0.924 -0.082 -0.85 -0.223 0.307], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (5, 7), (5, 7), (5, 7), (5, 10), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11), (5, 11) | (5, 11)
find_maximum_subarray_kadane
activity_selector: s: [0.642 0.342 0.493 0.57 0.26 0.27 0.467 0.588 0.1 0.469 0.147 0.235], f: [0.848 0.957 0.859 0.658 0.61 0.551 0.845 0.984 0.257 0.694 0.542 0.922], initial_trace: [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 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 1 0 1 0 0 1 0 0 0], [0 0 0 1 0 1 0 0 1 0 0 0], [0 0 0 1 0 1 0 0 1 0 0 0], [0 0 0 1 0 1 0 0 1 0 0 0], [0 0 0 1 0 1 0 0 1 0 0 0], [0 0 0 1 0 1 0 0 1 0 0 0], [0 0 0 1 0 1 0 0 1 0 0 0] | [0 0 0 1 0 1 0 0 1 0 0 0]
activity_selector
lcs_length: string: [0 0 1 1], key: [0 2 1 1], initial_trace: [[-1 -1 1 1], [-1 -1 1 0], [-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]]
lcs_length
matrix_chain_order: p: [0.937 0.5 0.281 0.957 0.844], 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
graham_scan: x: [1.49 1.95 0.28 -0.771 -1.25 -1.09 -1.21 -0.382 0.468 -0.596 -1.13 -1.53 1.36 -0.004 -0.298 0.989 -1.97 1.5 0.936 -0.516 -1.71 -0.802 1.78 -1.16 0.696 -0.883 -0.278 -0.187], y: [-0.484 0.208 -1.32 -0.857 1.07 -0.558 0.567 0.918 1.81 0.711 1.19 -1.19 -0.59 0.084 0.535 -1 0.341 -1.27 -0.486 1.54 0.693 0.677 -0.323 1.57 -0.643 0.643 -0.861 -0.636], 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0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 0 0 0 0], [0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0], [0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0], [0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0], [0 1 1 1 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0] | [0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0]
graham_scan
find_maximum_subarray_kadane: key: [0.81 0.011 0.37 0.793 0.069 -0.866 -0.496 -0.246 0.435 -0.69 -0.627 0.138 0.629 0.054 -0.648 0.589 -0.267 0.271 0.024], 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, 4), (0, 4), (0, 4), (0, 4), (0, 4), (0, 4), (0, 4) | (0, 4)
find_maximum_subarray_kadane
bellman_ford: s: 4, A: [[0.139 0 0 0 0 0 0 0.169 0 0 0.293 0 0 0 0], [0 0.457 0 0.273 0 0 0.296 0 0 0.094 0 0 0 0 0.877], [0 0 0 0.233 0 0 0 0 0 0 0 0 0 0.821 0], [0 0.273 0.233 0 0.406 0 0 0.495 0 0 0 0 0 0 0], [0 0 0 0.406 0 0 0 0 0.769 0.355 0.085 0 0 0.09 0], [0 0 0 0 0 0 0 0 0 0.541 0.506 0 0 0 0.567], [0 0.296 0 0 0 0 0 0 0 0 0 0 0 0.426 0], [0.169 0 0 0.495 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.769 0 0 0 0 0 0.819 0.12 0 0.199 0], [0 0.094 0 0 0.355 0.541 0 0 0 0 0 0 0 0 0], [0.293 0 0 0 0.085 0.506 0 0 0.819 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.12 0 0 0.216 0 0 0.044], [0 0 0 0 0 0 0 0 0 0 0 0 0.572 0 0.872], [0 0 0.821 0 0.09 0 0.426 0 0.199 0 0 0 0 0 0], [0 0.877 0 0 0 0.567 0 0 0 0 0 0.044 0.872 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[0 1 2 4 4 5 6 7 4 4 4 11 12 4 14], [10 9 3 4 4 10 13 3 13 4 4 8 12 4 14], [10 9 3 4 4 10 13 0 13 4 4 8 12 4 11], [10 9 3 4 4 10 13 0 13 4 4 8 14 4 11] | [10 9 3 4 4 10 13 0 13 4 4 8 14 4 11]
bellman_ford
activity_selector: s: [0.116 0.293 0.07 0.353 0.239], f: [0.804 0.386 0.135 0.889 0.424], initial_trace: [0 0 0 0 0] trace | selected:
[0 0 1 0 0], [0 1 1 0 0], [0 1 1 0 0], [0 1 1 0 0] | [0 1 1 0 0]
activity_selector
binary_search: key: [0.065 0.118 0.169 0.193 0.327 0.391 0.411 0.479 0.585 0.587 0.692], target: 0.511, initial_trace: (0, 10) trace | (low, high):
(6, 10), (6, 8) | (8, 8)
binary_search
minimum: key: [0.341 0.501 0.863 0.755 0.59 0.979 0.514 0.195 0.489 0.373 0.395], initial_trace: 0 trace | min:
0, 0, 0, 0, 0, 0, 7, 7, 7 | 7
minimum
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [1 0 3 1 2 0 0 1 2 3 3 2 0 0 1], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4 | 5
kmp_matcher
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [3 0 2 2 0 3 1 1 2 0 2 1 0 3 1], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 1, 2, 3 | 4
kmp_matcher
insertion_sort: key: [0.627 0.445 0.447 0.095 0.15 0.259 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], initial_trace: [0.627 0.445 0.447 0.095 0.15 0.259 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714] trace | pred:
[0.445 0.627 0.447 0.095 0.15 0.259 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.445 0.447 0.627 0.095 0.15 0.259 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.445 0.447 0.627 0.15 0.259 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.445 0.447 0.627 0.259 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.259 0.445 0.447 0.627 0.374 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.259 0.374 0.445 0.447 0.627 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.259 0.374 0.445 0.447 0.627 0.969 0.218 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.218 0.259 0.374 0.445 0.447 0.627 0.969 0.154 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.154 0.218 0.259 0.374 0.445 0.447 0.627 0.969 0.379 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.154 0.218 0.259 0.374 0.379 0.445 0.447 0.627 0.969 0.311 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.154 0.218 0.259 0.311 0.374 0.379 0.445 0.447 0.627 0.969 0.418 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.154 0.218 0.259 0.311 0.374 0.379 0.418 0.445 0.447 0.627 0.969 0.388 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.15 0.154 0.218 0.259 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.969 0.095 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.095 0.15 0.154 0.218 0.259 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.969 0.309 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.095 0.15 0.154 0.218 0.259 0.309 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.969 0.271 0.093 0.918 0.294 0.35 0.959 0.714], [0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.309 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.969 0.093 0.918 0.294 0.35 0.959 0.714], [0.093 0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.309 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.969 0.918 0.294 0.35 0.959 0.714], [0.093 0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.309 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.918 0.969 0.294 0.35 0.959 0.714], [0.093 0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.294 0.309 0.311 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.918 0.969 0.35 0.959 0.714], [0.093 0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.294 0.309 0.311 0.35 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.918 0.969 0.959 0.714], [0.093 0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.294 0.309 0.311 0.35 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.918 0.959 0.969 0.714] | [0.093 0.095 0.095 0.15 0.154 0.218 0.259 0.271 0.294 0.309 0.311 0.35 0.374 0.379 0.388 0.418 0.445 0.447 0.627 0.714 0.918 0.959 0.969]
insertion_sort
strongly_connected_components: A: [[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 1 1 0 0 0 0 0 0 0 0], [0 0 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 1], [0 0 0 0 0 0 0 0 0 1 1 0 0 1 0], [0 1 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 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 1 1 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 1 1 0 1 0], [0 0 0 0 1 0 0 0 0 0 1 0 0 1 0], [0 0 0 0 0 0 0 0 0 1 1 0 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 1 1 0 0 0], [0 0 0 0 1 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] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 7 9 10 14 12 13 14], [0 1 2 3 4 5 6 7 7 14 10 14 12 13 14], [0 1 2 3 14 5 6 7 7 14 10 14 12 13 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 13 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 5 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14], [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14] | [0 1 2 3 14 1 6 7 7 14 14 14 12 14 14]
strongly_connected_components
graham_scan: x: [-1.6 -1.72 1.01 -0.418 -0.776 0.004 0.246 -0.324 -0.223 0.769 -1.75 -0.776], y: [0.329 0.447 -1.06 0.154 -1.24 1.58 0.604 0.557 -0.879 1.21 0.148 1.17], 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 1 0 1 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 1 0 0 0], [0 0 1 0 1 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 1 0 0], [0 0 1 0 1 0 1 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 1 0 0], [0 0 1 0 1 1 0 0 0 1 0 0], [0 0 1 1 1 1 0 0 0 1 0 0], [0 0 1 0 1 1 0 0 0 1 0 0], [0 0 1 0 1 1 0 1 0 1 0 0], [0 0 1 0 1 1 0 0 0 1 0 0], [0 0 1 0 1 1 0 0 0 1 0 1], [1 0 1 0 1 1 0 0 0 1 0 1], [0 0 1 0 1 1 0 0 0 1 0 1], [0 1 1 0 1 1 0 0 0 1 0 1] | [0 1 1 0 1 1 0 0 0 1 1 1]
graham_scan
topological_sort: A: [[0 1 1 1], [0 0 1 0], [0 0 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], 0, [0 1 2 3], 2, [0 2 2 3], 1, [0 2 2 3], 1, [0 2 2 1], 3 | [3 2 2 1], 0
topological_sort
strongly_connected_components: A: [[1 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 0 0 0], [0 1 0 1 1 0 0 0 1 0 0], [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 0 0 1 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0], [0 0 0 1 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 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 1 4 5 6 7 8 9 10], [0 1 2 1 1 5 6 7 8 9 10], [0 1 2 1 1 5 6 7 8 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10], [0 1 2 1 1 5 6 7 1 9 10] | [0 1 2 1 1 5 6 7 1 9 10]
strongly_connected_components
binary_search: key: [0.025 0.094 0.187 0.323 0.409 0.461 0.543 0.543 0.558 0.805 0.818 0.931], target: 0.294, initial_trace: (0, 11) trace | (low, high):
(0, 5), (3, 5), (3, 4) | (3, 3)
binary_search
articulation_points: A: [[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]], 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
dfs: A: [[0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 0 1 0], [0 1 1 1 0 0 0 0 1 0 1 1 0 1 0 0 0 0 1], [0 1 1 0 0 0 0 0 1 1 0 0 1 1 1 1 1 0 1], [0 0 0 1 1 1 0 1 1 1 1 0 0 1 1 0 1 0 1], [0 0 1 0 1 0 1 0 1 1 1 0 1 0 0 1 0 0 1], [0 0 1 1 1 0 1 1 0 0 0 0 0 1 0 0 1 1 1], [0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1], [1 0 1 0 1 1 1 0 0 0 0 1 0 1 1 1 1 1 0], [1 0 1 0 1 1 1 1 0 0 0 1 1 1 1 0 0 1 0], [0 0 1 1 0 1 1 0 0 0 0 1 0 1 0 0 1 1 1], [1 1 1 0 0 1 1 1 1 0 1 0 0 0 1 0 0 1 1], [1 1 1 1 1 0 1 0 1 1 0 0 0 1 0 0 1 0 1], [0 1 0 1 0 0 1 0 1 0 0 0 1 1 0 1 0 1 0], [1 1 0 0 1 0 0 1 1 0 0 0 1 1 0 0 1 0 1], [0 0 1 1 0 1 1 1 1 0 0 1 0 0 1 0 0 0 1], [1 0 0 0 1 1 0 1 0 0 1 0 0 0 0 0 1 1 0], [1 1 0 1 1 0 0 1 1 0 1 1 0 0 1 0 0 0 1], [0 1 1 0 1 1 1 1 0 1 0 0 0 1 0 1 0 0 0], [1 0 0 1 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 3 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 3 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 5 3 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 5 3 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 3 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 3 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 4 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 7 6 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 7 6 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 9 10 11 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 9 10 7 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 9 10 7 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 12 13 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 12 9 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 12 9 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 13 9 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 13 9 14 15 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 13 9 14 12 16 17 18], [0 2 5 1 3 0 4 8 6 11 10 7 13 9 14 12 16 17 18], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 14 12 16 17 18], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 14 12 16 17 18], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 16 17 18], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 16 17 18], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 16 17 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 16 17 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 17 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 17 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 17 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14], [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14] | [0 2 5 1 3 0 4 8 6 11 15 7 13 9 10 12 18 18 14]
dfs
graham_scan: x: [0.261 0.039 1.14 -0.66 -0.247], y: [-0.37 0.124 0.036 1.23 -1.58], initial_trace: [0 0 0 0 0] trace | in_hull:
[0 0 0 0 1], [0 0 0 0 1], [0 0 1 0 1], [1 0 1 0 1], [0 0 1 0 1], [0 1 1 0 1], [0 0 1 0 1] | [0 0 1 1 1]
graham_scan
find_maximum_subarray_kadane: key: [0.287 -0.42 -0.656 -0.051 0.125 -0.549 0.568 -0.013 0.018 -0.14 -0.006 -0.077 -0.567 0.132 0.335 0.464 -0.528 -0.129 -0.091 -0.103 0.093 0.685 -0.705 -0.822 -0.234 0.261 -0.344 0.944 0.379 0.741 -0.966], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (6, 6), (6, 6), (6, 8), (6, 8), (6, 8), (6, 8), (6, 8), (6, 8), (6, 8), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (13, 15), (27, 27), (27, 28), (27, 29) | (27, 29)
find_maximum_subarray_kadane
find_maximum_subarray_kadane: key: [-0.877 -0.376 -0.777 -0.29 -0.475 -0.821 0.578 0.528 0.656 0.427 -0.122 -0.678 -0.42 -0.559 -0.007 0.296 0.139 -0.965 -0.913 -0.382 -0.172 -0.242 0.048], initial_trace: (0, 0) trace | (best_low, best_high):
(1, 1), (1, 1), (3, 3), (3, 3), (3, 3), (6, 6), (6, 7), (6, 8), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9), (6, 9) | (6, 9)
find_maximum_subarray_kadane
strongly_connected_components: A: [[0 0 0 0], [0 1 0 0], [0 0 0 0], [0 0 0 0]], initial_trace: [0 1 2 3] trace | scc_id:
[0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3], [0 1 2 3] | [0 1 2 3]
strongly_connected_components
topological_sort: A: [[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 1 1 0 0 1 0 1 0 0 0 0 1 1 1 1 0 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 1 0 0 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 0 0 0 0 0 0 0 0], [0 0 1 1 1 0 0 0 1 1 0 0 1 0 0 0 1 1 0], [1 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 1 0 0 1 0 1 1 1 1 1 1 0 0 0 0 1], [0 0 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 1 0 1 1 1 1 0 1 0 0 0], [1 0 0 0 1 0 0 0 0 0 0 1 0 1 1 1 0 0 0], [1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [1 0 1 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 1], [0 0 0 0 1 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 0 0 0 0 1 0 0 1], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0], [1 1 0 0 1 0 0 0 0 0 1 1 1 0 1 1 1 0 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 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2], 18, [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 18 16 17 2], 15, [0 1 0 15 4 5 6 7 8 9 10 11 12 13 14 18 16 17 2], 3, [0 1 0 15 4 5 6 7 8 9 10 11 12 13 14 18 16 17 2], 3, [0 1 0 15 4 5 6 7 8 9 10 11 12 13 14 18 16 17 2], 3, [0 1 0 15 3 5 6 7 8 9 10 11 12 13 14 18 16 17 2], 4, [0 1 0 15 3 5 6 7 8 9 10 11 12 13 14 18 16 17 2], 4, [0 1 0 15 3 5 6 7 8 9 10 4 12 13 14 18 16 17 2], 11, [0 1 0 15 3 5 6 7 8 9 10 4 12 13 14 18 16 17 2], 11, [0 1 0 15 3 5 6 7 8 9 10 4 12 11 14 18 16 17 2], 13, [0 1 0 15 3 5 13 7 8 9 10 4 12 11 14 18 16 17 2], 6, [0 1 0 15 3 5 13 7 8 9 10 4 12 11 14 18 16 17 2], 6, [0 1 0 15 3 5 13 7 8 9 10 4 12 11 14 18 16 17 2], 6, [0 1 0 15 3 5 13 7 8 9 10 4 12 11 14 18 16 17 2], 6, [0 1 0 15 3 5 13 7 8 9 10 4 12 11 6 18 16 17 2], 14, [0 1 0 15 3 5 13 7 8 9 14 4 12 11 6 18 16 17 2], 10, [0 1 0 15 3 5 13 7 10 9 14 4 12 11 6 18 16 17 2], 8, [0 1 0 15 3 5 13 7 10 9 14 4 12 11 6 18 16 17 2], 8, [0 1 0 15 3 5 13 7 10 9 14 4 12 11 6 18 8 17 2], 16, [0 16 0 15 3 5 13 7 10 9 14 4 12 11 6 18 8 17 2], 1, [0 16 0 15 3 5 13 7 10 9 14 4 12 11 6 18 8 17 2], 1, [0 16 0 15 3 5 13 7 10 9 14 4 12 11 6 18 8 17 2], 1, [0 16 0 15 3 5 13 7 10 9 14 4 12 11 6 18 8 17 2], 1, [0 16 0 15 3 5 13 7 10 9 14 4 12 11 6 18 8 17 2], 1, [0 16 0 15 3 5 13 7 10 9 14 4 1 11 6 18 8 17 2], 12, [0 16 0 15 3 5 13 7 10 12 14 4 1 11 6 18 8 17 2], 9, [0 16 0 15 3 5 13 7 10 12 14 4 1 11 6 18 8 17 2], 9, [0 16 0 15 3 5 13 7 10 12 14 4 1 11 6 18 8 9 2], 17, [0 16 0 15 3 17 13 7 10 12 14 4 1 11 6 18 8 9 2], 5, [0 16 0 15 3 17 13 7 10 12 14 4 1 11 6 18 8 9 2], 5, [0 16 0 15 3 17 13 7 10 12 14 4 1 11 6 18 8 9 2], 5 | [0 16 0 15 3 17 13 5 10 12 14 4 1 11 6 18 8 9 2], 7
topological_sort
minimum: key: [0.188 0.789 0.019 0.581 0.507 0.073 0.027 0.39 0.125 0.394 0.208 0.268 0.756 0.911 0.816 0.016 0.241 0.496 0.301 0.704 0.219 0.225 0.762], initial_trace: 0 trace | min:
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, 15, 15, 15, 15, 15, 15 | 15
minimum
bfs: s: 3, A: [[1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1], [1 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 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 0 1 0 0 0 1 0 0], [0 0 0 0 0 1 1 0 0 0 1 1 1 1 0], [1 0 0 0 0 0 0 0 0 1 0 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]], 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]
bfs
topological_sort: A: [[0 1 0 1 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0], [1 1 0 0 0 0 0 0 0 0 1 0], [0 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 1 0 0], [1 0 1 1 1 0 0 0 0 0 1 0], [1 1 0 0 1 0 0 1 0 0 1 0], [0 0 0 0 0 0 0 0 0 1 0 0], [1 1 0 0 1 1 0 1 0 0 1 1], [0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 1 0 0], [1 0 1 1 1 1 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 0, [0 1 2 3 4 5 6 7 8 9 10 11], 9, [0 1 2 3 4 5 6 9 8 9 10 11], 7, [0 7 2 3 4 5 6 9 8 9 10 11], 1, [0 7 2 3 4 5 6 9 8 9 10 11], 1, [0 7 2 1 4 5 6 9 8 9 10 11], 3, [3 7 2 1 4 5 6 9 8 9 10 11], 0, [3 7 2 1 4 5 6 9 8 9 10 11], 0, [3 7 2 1 4 5 6 9 8 9 10 11], 0, [3 7 2 1 4 5 6 9 8 9 10 11], 0, [3 7 2 1 4 5 6 9 8 9 0 11], 10, [3 7 10 1 4 5 6 9 8 9 0 11], 2, [3 7 10 1 4 5 6 9 8 9 0 11], 2, [3 7 10 1 4 5 6 9 8 9 0 11], 2, [3 7 10 1 2 5 6 9 8 9 0 11], 4, [3 7 10 1 2 5 6 9 8 9 0 11], 4, [3 7 10 1 2 5 6 9 8 9 0 11], 4, [3 7 10 1 2 4 6 9 8 9 0 11], 5, [3 7 10 1 2 4 6 9 8 9 0 11], 5, [3 7 10 1 2 4 6 9 8 9 0 11], 5, [3 7 10 1 2 4 5 9 8 9 0 11], 6, [3 7 10 1 2 4 5 9 8 9 0 11], 6, [3 7 10 1 2 4 5 9 8 9 0 11], 6, [3 7 10 1 2 4 5 9 8 9 0 11], 6, [3 7 10 1 2 4 5 9 8 9 0 6], 11 | [3 7 10 1 2 4 5 9 11 9 0 6], 8
topological_sort
minimum: key: [0.454 0.202 0.357 0.331 0.05 0.166 0.48 0.405 0.179 0.632 0.535 0.054 0.598 0.289 0.914 0.706 0.8 0.747 0.68], initial_trace: 0 trace | min:
1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 | 4
minimum
heapsort: key: [0.956 0.573 0.201 0.232 0.246], initial_trace: [0.956 0.573 0.201 0.232 0.246] trace | pred:
[0.956 0.573 0.201 0.232 0.246], [0.956 0.573 0.201 0.232 0.246], [0.956 0.573 0.201 0.232 0.246], [0.956 0.573 0.201 0.232 0.246], [0.956 0.573 0.201 0.232 0.246], [0.246 0.573 0.201 0.232 0.956], [0.573 0.246 0.201 0.232 0.956], [0.573 0.246 0.201 0.232 0.956], [0.232 0.246 0.201 0.573 0.956], [0.246 0.232 0.201 0.573 0.956], [0.246 0.232 0.201 0.573 0.956], [0.201 0.232 0.246 0.573 0.956], [0.232 0.201 0.246 0.573 0.956], [0.232 0.201 0.246 0.573 0.956], [0.201 0.232 0.246 0.573 0.956] | [0.201 0.232 0.246 0.573 0.956]
heapsort
insertion_sort: key: [0.865 0.054 0.416 0.218 0.156 0.778 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], initial_trace: [0.865 0.054 0.416 0.218 0.156 0.778 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074] trace | pred:
[0.054 0.865 0.416 0.218 0.156 0.778 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.416 0.865 0.218 0.156 0.778 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.218 0.416 0.865 0.156 0.778 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.218 0.416 0.865 0.778 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.218 0.416 0.778 0.865 0.355 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.218 0.355 0.416 0.778 0.865 0.199 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.199 0.218 0.355 0.416 0.778 0.865 0.637 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.199 0.218 0.355 0.416 0.637 0.778 0.865 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.199 0.218 0.355 0.416 0.637 0.778 0.865 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.199 0.218 0.355 0.416 0.637 0.778 0.865 0.889 0.932 0.436 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.199 0.218 0.355 0.416 0.436 0.637 0.778 0.865 0.889 0.932 0.901 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.156 0.199 0.218 0.355 0.416 0.436 0.637 0.778 0.865 0.889 0.901 0.932 0.102 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.102 0.156 0.199 0.218 0.355 0.416 0.436 0.637 0.778 0.865 0.889 0.901 0.932 0.686 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.102 0.156 0.199 0.218 0.355 0.416 0.436 0.637 0.686 0.778 0.865 0.889 0.901 0.932 0.383 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.102 0.156 0.199 0.218 0.355 0.383 0.416 0.436 0.637 0.686 0.778 0.865 0.889 0.901 0.932 0.406 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.637 0.686 0.778 0.865 0.889 0.901 0.932 0.44 0.833 0.092 0.912 0.861 0.074], [0.054 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.44 0.637 0.686 0.778 0.865 0.889 0.901 0.932 0.833 0.092 0.912 0.861 0.074], [0.054 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.44 0.637 0.686 0.778 0.833 0.865 0.889 0.901 0.932 0.092 0.912 0.861 0.074], [0.054 0.092 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.44 0.637 0.686 0.778 0.833 0.865 0.889 0.901 0.932 0.912 0.861 0.074], [0.054 0.092 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.44 0.637 0.686 0.778 0.833 0.865 0.889 0.901 0.912 0.932 0.861 0.074], [0.054 0.092 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.44 0.637 0.686 0.778 0.833 0.861 0.865 0.889 0.901 0.912 0.932 0.074] | [0.054 0.074 0.092 0.102 0.156 0.199 0.218 0.355 0.383 0.406 0.416 0.436 0.44 0.637 0.686 0.778 0.833 0.861 0.865 0.889 0.901 0.912 0.932]
insertion_sort
articulation_points: A: [[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]], 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]
articulation_points
binary_search: key: [0.09 0.17 0.182 0.234 0.244], target: 0.824, initial_trace: (0, 4) trace | (low, high):
(3, 4) | (4, 4)
binary_search
minimum: key: [0.538 0.481 0.835 0.112 0.237 0.59 0.826 0.573 0.385 0.348], initial_trace: 0 trace | min:
1, 1, 3, 3, 3, 3, 3, 3 | 3
minimum
dag_shortest_paths: s: 7, A: [[0 0 0.819 0 0 0 0.633 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.487 0.663 0 0.556 0.68 0], [0 0 0 0 0 0 0.334 0 0 0 0 0 0 0 0], [0.828 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.263 0.905 0 0 0.701 0 0 0 0 0.0901], [0 0 0 0 0 0 0.993 0.0735 0 0.391 0 0 0 0.843 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0.77 0 0.912 0.394 0 0 0 0 0 0 0 0 0 0.457 0], [0 0 0.521 0.153 0 0 0.418 0.191 0 0 0 0 0 0 0], [0.35 0 0.156 0.147 0 0 0 0.902 0 0 0 0 0 0.0216 0], [0 0 0.834 0.415 0 0 0 0 0 0.735 0 0 0 0.0372 0], [0.789 0 0.225 0 0 0 0.708 0.649 0 0.629 0.58 0 0 0.704 0], [0 0 0.169 0 0 0.557 0 0.677 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.647 0 0 0 0 0 0 0 0], [0 0.517 0 0 0 0 0 0 0.222 0.248 0.321 0 0 0.833 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], [7 1 7 7 4 5 6 7 8 9 10 11 12 7 14], [7 1 7 7 4 5 13 7 8 9 10 11 12 7 14], [7 1 7 7 4 5 13 7 8 9 10 11 12 7 14], [7 1 7 7 4 5 13 7 8 9 10 11 12 7 14] | [7 1 7 7 4 5 13 7 8 9 10 11 12 7 14]
dag_shortest_paths
mst_prim: s: 4, A: [[0 0 0.089 0.286 0 0 0 0 0 0], [0 0.321 0 0 0 0 0 0 0 0], [0.089 0 0.574 0.422 0 0 0 0 0 0], [0.286 0 0.422 0.719 0.829 0 0 0 0.574 0.966], [0 0 0 0.829 0.923 0 0 0 0 0], [0 0 0 0 0 0.539 0.133 0 0.588 0], [0 0 0 0 0 0.133 0 0.038 0 0], [0 0 0 0 0 0 0.038 0 0.374 0], [0 0 0 0.574 0 0.588 0 0.374 0 0.603], [0 0 0 0.966 0 0 0 0 0.603 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | pi:
[0 1 2 4 4 5 6 7 8 9], [3 1 3 4 4 5 6 7 3 3], [3 1 0 4 4 5 6 7 3 3], [3 1 0 4 4 5 6 7 3 3], [3 1 0 4 4 8 6 8 3 8], [3 1 0 4 4 8 7 8 3 8], [3 1 0 4 4 6 7 8 3 8], [3 1 0 4 4 6 7 8 3 8] | [3 1 0 4 4 6 7 8 3 8]
mst_prim
strongly_connected_components: A: [[1 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 1], [0 0 0 1 0 0 0 0 0 1], [0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0], [0 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 1 0 0 0], [0 1 0 1 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 7 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 9], [0 1 2 3 4 5 6 4 6 1], [0 1 2 1 4 5 6 4 6 1], [0 1 2 1 4 5 6 4 6 1], [0 1 2 1 4 5 6 4 6 1], [0 1 2 1 4 5 6 4 6 1], [0 1 2 1 4 5 6 4 6 1] | [0 1 2 1 4 5 6 4 6 1]
strongly_connected_components
minimum: key: [0.627 0.309 0.716 0.541 0.59 0.324 0.107 0.673 0.736 0.549 0.861 0.307 0.921 0.032 0.717 0.935 0.953 0.11 0.669 0.596 0.633 0.995 0.942 0.436 0.022 0.211 0.539 0.48 0.368 0.037 0.191], initial_trace: 0 trace | min:
1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 6, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 24, 24, 24, 24, 24, 24 | 24
minimum
bfs: s: 0, A: [[1 0 0 0], [0 0 0 1], [0 0 1 1], [0 1 1 1]], initial_trace: [0 1 2 3] trace | pi:
| [0 1 2 3]
bfs
kmp_matcher: string: [0 0 0 0 1], key: [2 0 3 2 2], initial_trace: 0 trace | s:
| 0
kmp_matcher
graham_scan: x: [-1.26 -0.468 -0.303 1.36 -0.989 0.852 -0.206 -0.404 -0.911 0.764 0.554], y: [0.553 0.538 1.3 1.04 -1.54 -1.57 0.519 -0.171 0.529 1.43 -0.058], initial_trace: [0 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 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 1 0], [0 0 0 1 0 1 0 0 0 1 1], [0 0 0 1 0 1 0 0 0 1 0], [0 0 1 1 0 1 0 0 0 1 0], [0 0 1 1 0 1 1 0 0 1 0], [0 0 1 1 0 1 0 0 0 1 0], [0 1 1 1 0 1 0 0 0 1 0], [0 0 1 1 0 1 0 0 0 1 0], [0 0 1 1 0 1 0 0 1 1 0], [0 0 1 1 0 1 0 1 1 1 0], [0 0 1 1 0 1 0 0 1 1 0], [0 0 1 1 0 1 0 0 0 1 0], [1 0 1 1 0 1 0 0 0 1 0] | [1 0 1 1 1 1 0 0 0 1 0]
graham_scan
floyd_warshall: A: [[0.57 0 0 0.071], [0 0 0 0.196], [0 0 0.68 0], [0.071 0.196 0 0]], initial_trace: [[0 0 0 0], [1 1 1 1], [2 2 2 2], [3 3 3 3]] trace | Pi:
[[0 0 0 0], [1 1 1 1], [2 2 2 2], [3 3 3 3]], [[0 0 0 0], [1 1 1 1], [2 2 2 2], [3 3 3 3]] | [[3 3 0 0], [3 1 1 1], [2 2 2 2], [3 3 3 3]]
floyd_warshall
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 1 1], key: [3 3 1 3 1 1 0 2 3 1 3], initial_trace: 0 trace | s:
0, 0, 0, 1 | 2
kmp_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 1 1 1 1 1], key: [1 3 2 3 1 1 0 3 2 0 2 0 1 2 1 2 3 0 0 2 1 2 0 3 1 1 0 3], initial_trace: 0 trace | s:
1, 1, 2, 3, 3, 3, 3 | 3
naive_string_matcher
insertion_sort: key: [0.185 0.744 0.303 0.586 0.685 0.708 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], initial_trace: [0.185 0.744 0.303 0.586 0.685 0.708 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819] trace | pred:
[0.185 0.744 0.303 0.586 0.685 0.708 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.185 0.303 0.744 0.586 0.685 0.708 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.185 0.303 0.586 0.744 0.685 0.708 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.185 0.303 0.586 0.685 0.744 0.708 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.185 0.303 0.586 0.685 0.708 0.744 0.095 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.185 0.303 0.586 0.685 0.708 0.744 0.676 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.185 0.303 0.586 0.676 0.685 0.708 0.744 0.457 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.185 0.303 0.457 0.586 0.676 0.685 0.708 0.744 0.208 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.185 0.208 0.303 0.457 0.586 0.676 0.685 0.708 0.744 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.185 0.208 0.303 0.457 0.586 0.676 0.685 0.708 0.744 0.877 0.691 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.185 0.208 0.303 0.457 0.586 0.676 0.685 0.691 0.708 0.744 0.877 0.137 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.185 0.208 0.303 0.457 0.586 0.676 0.685 0.691 0.708 0.744 0.877 0.444 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.185 0.208 0.303 0.444 0.457 0.586 0.676 0.685 0.691 0.708 0.744 0.877 0.507 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.185 0.208 0.303 0.444 0.457 0.507 0.586 0.676 0.685 0.691 0.708 0.744 0.877 0.172 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.172 0.185 0.208 0.303 0.444 0.457 0.507 0.586 0.676 0.685 0.691 0.708 0.744 0.877 0.698 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.172 0.185 0.208 0.303 0.444 0.457 0.507 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.877 0.15 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.15 0.172 0.185 0.208 0.303 0.444 0.457 0.507 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.877 0.548 0.797 0.98 0.279 0.819], [0.095 0.137 0.15 0.172 0.185 0.208 0.303 0.444 0.457 0.507 0.548 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.877 0.797 0.98 0.279 0.819], [0.095 0.137 0.15 0.172 0.185 0.208 0.303 0.444 0.457 0.507 0.548 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.797 0.877 0.98 0.279 0.819], [0.095 0.137 0.15 0.172 0.185 0.208 0.303 0.444 0.457 0.507 0.548 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.797 0.877 0.98 0.279 0.819], [0.095 0.137 0.15 0.172 0.185 0.208 0.279 0.303 0.444 0.457 0.507 0.548 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.797 0.877 0.98 0.819] | [0.095 0.137 0.15 0.172 0.185 0.208 0.279 0.303 0.444 0.457 0.507 0.548 0.586 0.676 0.685 0.691 0.698 0.708 0.744 0.797 0.819 0.877 0.98]
insertion_sort
optimal_bst: p: [0.172 0.13 0.03 0.082 0], q: [0.012 0.152 0.227 0.068 0.127], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | root:
[[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 1 0 0], [0 0 1 1 0], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 1 1 0], [0 0 1 1 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 1 1 1], [0 0 1 1 2], [0 0 0 2 2], [0 0 0 0 3], [0 0 0 0 0]]
optimal_bst
dfs: A: [[0 0 1 1], [0 1 0 0], [1 0 0 0], [0 1 0 1]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 3], [0 1 0 3], [0 1 0 3], [0 1 0 3], [0 1 0 0], [0 1 0 0], [0 3 0 0], [0 3 0 0], [0 3 0 0], [0 3 0 0] | [0 3 0 0]
dfs
activity_selector: s: [0.561 0.424 0.112 0.347], f: [0.791 0.953 0.888 0.583], initial_trace: [0 0 0 0] trace | selected:
[0 0 0 1], [0 0 0 1], [0 0 0 1] | [0 0 0 1]
activity_selector
bfs: s: 7, A: [[0 1 0 0 0 0 0 1 0 1 0 0 0 0 1], [1 0 1 0 0 1 0 0 0 0 0 0 0 0 1], [0 1 1 0 1 0 1 0 0 1 0 0 0 0 0], [0 0 0 0 0 0 1 1 1 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 0 1 1 0 0], [0 1 0 0 0 1 0 0 0 0 1 0 0 0 0], [0 0 1 1 0 0 0 0 1 0 1 0 0 0 0], [1 0 0 1 0 0 0 1 1 0 0 1 0 0 1], [0 0 0 1 0 0 1 1 0 0 1 0 0 0 1], [1 0 1 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 1 1 0 1 1 0 0 0 1 0], [0 0 0 0 1 0 0 1 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 0 0 0 0 0 0 0 1 0 0 1 0], [1 1 0 0 0 0 0 1 1 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[7 1 2 7 4 5 6 7 7 9 10 7 12 13 7], [7 0 2 7 11 5 3 7 7 0 8 7 3 13 7] | [7 0 1 7 11 1 3 7 7 0 8 7 3 10 7]
bfs
segments_intersect: x: [0.855 0.969 0.066 0.979], y: [0.06 0.785 0.252 0.146] intersect:
1
segments_intersect
quicksort: key: [0.143 0.097 0.435 0.162], initial_trace: [0.143 0.097 0.435 0.162] trace | pred:
[0.143 0.097 0.435 0.162], [0.143 0.097 0.435 0.162], [0.143 0.097 0.162 0.435], [0.143 0.097 0.162 0.435] | [0.097 0.143 0.162 0.435]
quicksort
matrix_chain_order: p: [0.355 0.086 0.918 0.495], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] trace | s:
[[0 0 0 0], [0 0 1 0], [0 0 0 2], [0 0 0 0]] | [[0 0 0 0], [0 0 1 1], [0 0 0 2], [0 0 0 0]]
matrix_chain_order
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 1 1 1 1 1], key: [0 3 2 0 3 3 3 1 1 0 3 2 2 0 3 0 2 3 2 0 3 1 3 0 3 2 2 0], initial_trace: 0 trace | s:
0, 0, 0, 1, 2, 3, 3, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9 | 9
naive_string_matcher
bellman_ford: s: 24, A: [[0 0 0 0 0 0 0 0 0 0 0 0 0 0.268 0.653 0 0 0 0 0 0.426 0 0 0 0 0 0 0 0 0.642 0], [0 0.135 0.121 0 0.502 0 0 0 0.351 0 0 0 0 0 0 0 0 0 0.267 0.141 0 0 0.67 0.099 0 0 0 0.441 0 0 0], [0 0.121 0 0 0 0 0 0 0 0 0.444 0 0 0 0 0 0 0.423 0.34 0.284 0 0 0 0.513 0 0 0 0 0 0 0.871], [0 0 0 0 0.841 0.388 0 0.279 0 0.242 0.482 0 0.353 0 0 0 0 0 0 0 0 0.119 0 0 0 0 0 0 0 0 0.408], [0 0.502 0 0.841 0 0 0 0.718 0 0.159 0 0.598 0.396 0 0 0 0 0.238 0 0 0 0 0 0 0 0 0.217 0 0 0 0], [0 0 0 0.388 0 0 0.401 0 0 0 0 0.527 0 0 0 0.415 0.312 0.394 0 0 0 0 0.243 0 0.508 0 0.222 0 0 0 0], [0 0 0 0 0 0.401 0.771 0 0 0 0.545 0.226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.279 0.718 0 0 0 0 0.899 0 0 0 0 0 0 0 0 0 0 0 0 0.367 0.761 0 0.725 0.423 0.343 0 0 0], [0 0.351 0 0 0 0 0 0 0.547 0 0.455 0 0 0 0 0 0 0.359 0 0 0.199 0.083 0 0 0 0.32 0 0 0 0 0], [0 0 0 0.242 0.159 0 0 0.899 0 0.194 0.398 0 0 0 0 0 0.282 0.623 0 0 0 0 0 0 0 0.739 0 0 0 0 0], [0 0 0.444 0.482 0 0 0.545 0 0.455 0.398 0.065 0 0.873 0.278 0 0 0 0 0 0 0 0.204 0 0 0 0.455 0 0 0.116 0.601 0], [0 0 0 0 0.598 0.527 0.226 0 0 0 0 0 0 0 0 0 0 0 0 0.571 0 0 0 0.154 0 0.558 0 0 0 0.339 0], [0 0 0 0.353 0.396 0 0 0 0 0 0.873 0 0.392 0 0 0 0 0 0 0.362 0 0 0 0.723 0.214 0 0 0 0 0.883 0], [0.268 0 0 0 0 0 0 0 0 0 0.278 0 0 0 0 0 0 0 0 0 0.211 0.525 0 0 0 0 0 0.694 0.307 0 0], [0.653 0 0 0 0 0 0 0 0 0 0 0 0 0 0.302 0 0 0.042 0.75 0.604 0 0 0 0 0 0.158 0 0 0.412 0 0.379], [0 0 0 0 0 0.415 0 0 0 0 0 0 0 0 0 0 0 0 0.226 0 0 0.29 0.893 0 0.428 0 0 0 0 0.138 0], [0 0 0 0 0 0.312 0 0 0 0.282 0 0 0 0 0 0 0.765 0.172 0.871 0.677 0 0 0.368 0 0 0 0.211 0.187 0 0 0], [0 0 0.423 0 0.238 0.394 0 0 0.359 0.623 0 0 0 0 0.042 0 0.172 0.494 0.722 0 0.125 0.597 0 0 0.9 0 0 0 0 0 0], [0 0.267 0.34 0 0 0 0 0 0 0 0 0 0 0 0.75 0.226 0.871 0.722 0 0 0 0.538 0 0 0.444 0.947 0 0.131 0.337 0.534 0.253], [0 0.141 0.284 0 0 0 0 0 0 0 0 0.571 0.362 0 0.604 0 0.677 0 0 0.667 0.328 0 0.37 0 0 0 0 0.643 0 0 0.812], [0.426 0 0 0 0 0 0 0 0.199 0 0 0 0 0.211 0 0 0 0.125 0 0.328 0.032 0 0 0 0 0 0 0 0 0.506 0.107], [0 0 0 0.119 0 0 0 0 0.083 0 0.204 0 0 0.525 0 0.29 0 0.597 0.538 0 0 0 0.378 0 0 0 0 0 0.3 0 0], [0 0.67 0 0 0 0.243 0 0.367 0 0 0 0 0 0 0 0.893 0.368 0 0 0.37 0 0.378 0 0 0 0.199 0 0.578 0.279 0 0], [0 0.099 0.513 0 0 0 0 0.761 0 0 0 0.154 0.723 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.104 0.671 0.042], [0 0 0 0 0 0.508 0 0 0 0 0 0 0.214 0 0 0.428 0 0.9 0.444 0 0 0 0 0 0 0 0.308 0 0.637 0 0], [0 0 0 0 0 0 0 0.725 0.32 0.739 0.455 0.558 0 0 0.158 0 0 0 0.947 0 0 0 0.199 0 0 0 0.381 0 0 0 0], [0 0 0 0 0.217 0.222 0 0.423 0 0 0 0 0 0 0 0 0.211 0 0 0 0 0 0 0 0.308 0.381 0 0 0.272 0 0], [0 0.441 0 0 0 0 0 0.343 0 0 0 0 0 0.694 0 0 0.187 0 0.131 0.643 0 0 0.578 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0.116 0 0 0.307 0.412 0 0 0 0.337 0 0 0.3 0.279 0.104 0.637 0 0.272 0 0.884 0.403 0], [0.642 0 0 0 0 0 0 0 0 0 0.601 0.339 0.883 0 0 0.138 0 0 0.534 0 0.506 0 0 0.671 0 0 0 0 0.403 0 0], [0 0 0.871 0.408 0 0 0 0 0 0 0 0 0 0 0.379 0 0 0 0.253 0.812 0.107 0 0 0.042 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 23 24 25 26 27 28 29 30] trace | pi:
[0 1 2 3 4 24 6 7 8 9 10 11 24 13 14 24 16 24 24 19 20 21 22 23 24 25 24 27 24 29 30], [0 18 18 12 26 24 5 26 17 17 28 5 24 28 17 24 26 24 24 12 17 15 5 28 24 26 24 18 26 15 18], [29 18 18 12 26 24 5 26 21 4 28 23 24 28 25 24 26 16 24 12 30 3 5 28 24 26 24 18 26 15 18] | [13 18 18 12 26 24 5 26 21 4 28 23 24 28 17 24 26 16 24 12 30 3 5 28 24 26 24 18 26 15 18]
bellman_ford
activity_selector: s: [0.522 0.572 0.053 0.433 0.002 0.669 0.55 0.668 0.288 0.24 0.25 0.307 0.347 0.319 0.652], f: [0.977 0.666 0.11 0.838 0.302 0.708 0.705 0.84 0.717 0.836 0.54 0.625 0.861 0.846 0.95], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 0 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0], [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0] | [0 1 1 0 0 1 0 0 0 0 1 0 0 0 0]
activity_selector
bellman_ford: s: 14, A: [[0.705 0.367 0 0 0 0 0 0.433 0.365 0.439 0 0 0 0 0 0 0.256 0 0.718 0 0 0 0 0 0 0 0 0 0 0 0.903], [0.367 0 0 0.882 0 0 0 0 0 0 0 0.162 0.431 0 0 0 0 0 0 0.442 0 0 0 0 0 0 0 0.679 0 0 0], [0 0 0 0 0.067 0 0 0.165 0.613 0 0 0.589 0.635 0.919 0 0 0 0.081 0 0 0 0 0 0 0 0 0.245 0.14 0 0 0], [0 0.882 0 0.686 0.145 0 0 0.538 0 0 0 0 0 0.425 0 0.82 0.705 0 0 0.413 0.52 0 0 0.618 0 0 0.371 0 0 0 0.528], [0 0 0.067 0.145 0.255 0.607 0 0 0 0 0 0 0.103 0 0 0.683 0 0 0 0 0 0 0.487 0 0.154 0 0 0 0 0 0], [0 0 0 0 0.607 0.947 0.523 0 0.48 0 0.146 0 0 0 0 0 0.116 0 0 0 0 0 0 0 0 0.585 0 0 0 0 0.652], [0 0 0 0 0 0.523 0 0 0 0 0 0 0 0 0 0 0.085 0 0 0.54 0.418 0 0.068 0 0 0.727 0.287 0 0 0 0], [0.433 0 0.165 0.538 0 0 0 0.137 0 0.626 0 0 0 0 0 0 0 0.772 0 0 0 0 0 0 0.719 0 0 0 0.676 0 0.552], [0.365 0 0.613 0 0 0.48 0 0 0.112 0 0 0 0 0.407 0 0 0.589 0 0 0.655 0 0.256 0.311 0 0.707 0 0 0.469 0 0 0.099], [0.439 0 0 0 0 0 0 0.626 0 0 0.495 0 0 0 0 0 0 0.176 0.283 0.473 0 0.33 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.146 0 0 0 0.495 0.125 0 0 0 0 0 0 0 0 0 0 0.885 0 0 0 0 0.358 0.564 0 0.345 0.307], [0 0.162 0.589 0 0 0 0 0 0 0 0 0 0.17 0 0 0 0 0 0.277 0 0 0 0 0.052 0 0 0 0.034 0.144 0 0.169], [0 0.431 0.635 0 0.103 0 0 0 0 0 0 0.17 0 0 0 0.529 0 0.659 0 0.306 0 0.134 0 0 0.421 0 0 0 0 0.443 0.536], [0 0 0.919 0.425 0 0 0 0 0.407 0 0 0 0 0.156 0.614 0 0 0.458 0 0 0 0 0 0 0.505 0 0 0.073 0 0.595 0.499], [0 0 0 0 0 0 0 0 0 0 0 0 0 0.614 0 0 0 0 0 0 0.513 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.82 0.683 0 0 0 0 0 0 0 0.529 0 0 0 0 0 0 0.836 0 0.101 0 0 0 0 0 0 0.745 0 0], [0.256 0 0 0.705 0 0.116 0.085 0 0.589 0 0 0 0 0 0 0 0 0 0 0.801 0.354 0.5 0 0.475 0 0 0 0 0 0 0.101], [0 0 0.081 0 0 0 0 0.772 0 0.176 0 0 0.659 0.458 0 0 0 0.534 0 0 0.3 0 0 0 0.772 0 0.126 0 0 0.57 0.083], [0.718 0 0 0 0 0 0 0 0 0.283 0 0.277 0 0 0 0 0 0 0.121 0 0 0 0 0 0.403 0 0 0.371 0 0 0], [0 0.442 0 0.413 0 0 0.54 0 0.655 0.473 0 0 0.306 0 0 0.836 0.801 0 0 0 0 0 0 0 0.483 0 0.569 0 0 0 0], [0 0 0 0.52 0 0 0.418 0 0 0 0 0 0 0 0.513 0 0.354 0.3 0 0 0 0 0 0 0 0 0.275 0 0 0 0], [0 0 0 0 0 0 0 0 0.256 0.33 0.885 0 0.134 0 0 0.101 0.5 0 0 0 0 0 0 0.149 0 0 0 0 0 0.636 0], [0 0 0 0 0.487 0 0.068 0 0.311 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.331 0 0.33 0.255 0 0 0.755], [0 0 0 0.618 0 0 0 0 0 0 0 0.052 0 0 0 0 0.475 0 0 0 0 0.149 0 0 0 0 0 0.482 0 0.438 0], [0 0 0 0 0.154 0 0 0.719 0.707 0 0 0 0.421 0.505 0 0 0 0.772 0.403 0.483 0 0 0.331 0 0 0 0 0.234 0 0 0.451], [0 0 0 0 0 0.585 0.727 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.82 0 0 0], [0 0 0.245 0.371 0 0 0.287 0 0 0 0.358 0 0 0 0 0 0 0.126 0 0.569 0.275 0 0.33 0 0 0 0 0 0 0 0], [0 0.679 0.14 0 0 0 0 0 0.469 0 0.564 0.034 0 0.073 0 0 0 0 0.371 0 0 0 0.255 0.482 0.234 0.82 0 0.535 0.403 0.776 0], [0 0 0 0 0 0 0 0.676 0 0 0 0.144 0 0 0 0.745 0 0 0 0 0 0 0 0 0 0 0 0.403 0 0 0], [0 0 0 0 0 0 0 0 0 0 0.345 0 0.443 0.595 0 0 0 0.57 0 0 0 0.636 0 0.438 0 0 0 0.776 0 0.181 0], [0.903 0 0 0.528 0 0.652 0 0.552 0.099 0 0.307 0.169 0.536 0.499 0 0 0.101 0.083 0 0 0 0 0.755 0 0.451 0 0 0 0 0 0.066]], 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 2 3 4 5 6 7 8 9 10 11 12 14 14 15 16 17 18 19 14 21 22 23 24 25 26 27 28 29 30], [0 1 13 20 4 5 20 7 13 9 10 11 12 14 14 15 20 20 18 19 14 21 22 23 13 25 20 13 28 13 13], [16 27 27 20 3 16 20 3 13 17 26 27 17 14 14 3 20 20 27 26 14 8 27 27 27 27 20 13 27 13 17], [16 11 27 20 2 16 20 2 30 17 5 27 11 14 14 21 20 20 11 26 14 8 27 11 27 27 20 13 11 13 11], [16 11 27 20 2 16 20 2 30 17 5 27 11 14 14 21 20 20 11 12 14 23 27 11 27 27 20 13 11 13 11] | [16 11 27 20 2 16 20 2 30 17 5 27 11 14 14 21 20 20 11 12 14 23 27 11 27 27 20 13 11 13 11]
bellman_ford
segments_intersect: x: [0.445 0.442 0.384 0.464], y: [0.984 0.506 0.441 0.701] intersect:
1
segments_intersect
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [3 0 2 1 0 0 2 1 3 2 0 2], initial_trace: 0 trace | s:
1 | 1
naive_string_matcher
dag_shortest_paths: s: 11, A: [[0 0 0.856 0.577 0 0 0.951 0 0 0 0.974 0.515], [0 0 0 0.897 0.387 0 0 0.565 0 0 0 0], [0 0 0 0 0 0 0 0 0.566 0 0 0], [0 0 0.945 0 0 0.0745 0 0 0.973 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0.279 0 0 0 0 0.239 0.734 0 0 0], [0 0 0.471 0.325 0.208 0 0 0.562 0.244 0 0.679 0.68], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.581 0 0 0 0 0 0 0], [0 0.737 0.385 0.722 0 0.318 0 0 0.166 0 0.38 0], [0 0 0 0 0.336 0.267 0 0 0.59 0 0 0], [0 0 0.551 0.00169 0.933 0 0 0 0.121 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 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 11 11 11 5 6 7 11 9 10 11], [0 1 11 11 11 3 6 7 11 9 10 11], [0 1 5 11 11 3 6 5 11 9 10 11], [0 1 5 11 11 3 6 5 11 9 10 11], [0 1 5 11 11 3 6 5 11 9 10 11] | [0 1 5 11 8 3 6 5 11 9 10 11]
dag_shortest_paths
minimum: key: [0.771 0.481 0.732 0.712 0.105 0.201 0.641 0.059 0.926 0.744 0.793 0.505 0.291 0.012 0.549 0.346 0.359 0.203 0.225 0.374 0.556 0.83 0.129 0.594 0.02 0.87 0.202 0.152 0.25 0.618 0.008], initial_trace: 0 trace | min:
1, 1, 1, 4, 4, 4, 7, 7, 7, 7, 7, 7, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13 | 30
minimum
binary_search: key: [0.009 0.082 0.109 0.138 0.144 0.148 0.182 0.259 0.29 0.293 0.314 0.394 0.437 0.463 0.621 0.73 0.765 0.826 0.93], target: 0.830, initial_trace: (0, 18) trace | (low, high):
(10, 18), (15, 18), (17, 18) | (18, 18)
binary_search
floyd_warshall: A: [[0 0 0.522 0 0 0.222 0 0 0.276 0.664], [0 0 0 0 0 0 0 0 0 0], [0.522 0 0 0 0 0 0 0 0.839 0.677], [0 0 0 0 0 0 0 0.287 0 0], [0 0 0 0 0 0 0.459 0 0 0], [0.222 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.459 0 0.695 0.328 0.168 0], [0 0 0 0.287 0 0 0.328 0.784 0 0], [0.276 0 0.839 0 0 0 0.168 0 0.037 0], [0.664 0 0.677 0 0 0 0 0 0 0]], initial_trace: [[0 0 0 0 0 0 0 0 0 0], [1 1 1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0 7 3 6 0], [8 8 0 7 6 0 8 6 8 0], [9 9 9 7 6 0 8 6 0 9]]
floyd_warshall
graham_scan: x: [0.108 0.291 -0.829 0.304 1.49 -0.473 -0.512 0.933 1.29 1.01 -1.8 -0.911], y: [0.02 -1.32 -1.55 0.127 0.225 -0.497 1.74 1.67 -1.37 0.207 0.39 -1.72], initial_trace: [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 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 1 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 1 0 0 0 1 0 0 1], [0 0 0 0 1 0 0 0 1 1 0 1], [0 0 0 1 1 0 0 0 1 1 0 1], [1 0 0 1 1 0 0 0 1 1 0 1], [0 0 0 1 1 0 0 0 1 1 0 1], [0 0 0 0 1 0 0 0 1 1 0 1], [0 0 0 0 1 0 0 0 1 0 0 1], [0 0 0 0 1 0 0 1 1 0 0 1], [0 0 1 0 1 0 0 1 1 0 0 1], [0 0 0 0 1 0 0 1 1 0 0 1], [0 0 0 0 1 1 0 1 1 0 0 1], [0 0 0 0 1 0 0 1 1 0 0 1], [0 0 0 0 1 0 1 1 1 0 0 1] | [0 0 0 0 1 0 1 1 1 0 1 1]
graham_scan
dag_shortest_paths: s: 4, A: [[0 0.401 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.828 0 0 0 0 0 0 0 0], [0.408 0.605 0 0.567 0.49 0 0 0.417 0.365 0.693 0.131 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0.646 0 0.389 0 0 0 0 0 0 0 0], [0 0.352 0 0.981 0 0 0 0.843 0 0 0 0], [0 0 0.148 0.817 0.324 0 0 0.957 0.765 0.0267 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0.865 0 0 0 0 0 0 0 0], [0.244 0.0248 0 0.453 0.55 0.236 0 0.543 0 0 0.348 0], [0 0 0 0 0 0 0 0 0.433 0 0 0], [0 0.0218 0 0 0 0.682 0 0.719 0.996 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 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 4 2 4 4 5 6 7 8 9 10 11] | [0 4 2 4 4 5 6 7 8 9 10 11]
dag_shortest_paths
minimum: key: [0.025 0.493 0.81 0.948], initial_trace: 0 trace | min:
0, 0 | 0
minimum
binary_search: key: [0.021 0.233 0.335 0.407 0.513 0.52 0.602 0.781 0.884 0.92], target: 0.261, initial_trace: (0, 9) trace | (low, high):
(0, 4), (0, 2) | (2, 2)
binary_search
minimum: key: [0.606 0.831 0.585 0.284 0.256 0.36 0.663 0.555 0.586 0.979 0.493 0.751 0.016 0.472 0.204 0.506 0.793 0.095 0.824 0.239 0.568 0.195 0.88], initial_trace: 0 trace | min:
0, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12 | 12
minimum
dag_shortest_paths: s: 10, A: [[0 0.527 0 0 0 0.373 0.216 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0.397 0 0 0 0 0 0.266 0 0 0 0 0], [0 0.376 0 0 0 0.918 0 0 0.00208 0 0.972 0.326], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.33 0.708 0 0 0 0.673 0 0], [0.726 0 0 0 0 0 0 0 0 0.0801 0 0], [0.802 0.483 0 0 0 0.24 0.447 0 0 0 0.913 0], [0 0 0 0 0 0.795 0 0 0 0 0 0], [0.454 0.214 0.293 0 0 0.352 0.989 0 0 0 0 0], [0.538 0.148 0 0 0 0 0 0.0261 0.826 0.774 0.283 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [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], [10 10 10 3 4 10 10 7 8 9 10 11], [10 10 10 3 4 10 2 7 8 9 10 11], [10 10 10 3 4 10 2 7 8 9 10 11], [10 10 10 3 6 10 2 7 8 6 10 11], [10 10 10 3 6 10 2 7 8 6 10 11], [10 10 10 3 6 10 2 7 8 6 10 11] | [10 10 10 3 6 10 2 7 8 6 10 11]
dag_shortest_paths
segments_intersect: x: [0.627 0.075 0.918 0.655], y: [0.706 0.765 0.963 0.844] intersect:
0
segments_intersect
quickselect: key: [0.021 0.089 0.958 0.652 0.011 0.791 0.844 0.216 0.745 0.878 0.992], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8 | 8
quickselect
quickselect: key: [0.421 0.635 0.084 0.827 0.792], initial_trace: 4 trace | pivot:
4, 4, 4, 4, 2, 2, 2, 0, 0 | 1
quickselect
bellman_ford: s: 6, A: [[0.474 0 0 0 0.612 0 0.466 0 0 0 0], [0 0 0.091 0.532 0 0 0 0.399 0 0 0], [0 0.091 0.77 0 0 0 0 0 0 0 0.31], [0 0.532 0 0 0 0 0 0 0.322 0 0], [0.612 0 0 0 0.994 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.206 0], [0.466 0 0 0 0 0 0.735 0 0.675 0.221 0], [0 0.399 0 0 0 0 0 0 0 0 0], [0 0 0 0.322 0 0 0.675 0 0 0 0], [0 0 0 0 0 0.206 0.221 0 0 0 0], [0 0 0.31 0 0 0 0 0 0 0 0.432]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[6 1 2 3 4 5 6 7 6 6 10], [6 1 2 8 0 9 6 7 6 6 10], [6 3 2 8 0 9 6 7 6 6 10], [6 3 1 8 0 9 6 1 6 6 10] | [6 3 1 8 0 9 6 1 6 6 2]
bellman_ford
topological_sort: A: [[0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 1 0 1 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 1 0 1 0 0 0 0 1 1 1 0 0 1 0 1], [1 1 0 1 1 1 1 0 0 0 0 0 1 0 1 1 1 0 0], [0 0 1 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 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 1 1 0 0 0 0 1 0 0 0 1 0 0 1 1], [0 0 1 1 0 1 0 1 0 0 0 0 1 0 0 0 0 1 0], [0 1 0 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0], [1 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0], [1 1 0 1 1 1 1 1 0 0 0 0 1 0 0 0 0 0 0], [1 1 1 0 1 1 0 0 0 1 1 0 0 0 0 0 0 1 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 2 3 4 5 6 7 8 9 10 2 12 13 14 15 16 17 18], 11, [0 1 2 3 4 5 6 7 8 9 10 2 12 13 14 15 16 17 18], 11, [0 1 2 3 4 5 6 7 8 9 10 2 11 13 14 15 16 17 18], 12, [0 1 2 3 4 5 6 7 8 9 12 2 11 13 14 15 16 17 18], 10, [0 1 2 3 4 10 6 7 8 9 12 2 11 13 14 15 16 17 18], 5, [5 1 2 3 4 10 6 7 8 9 12 2 11 13 14 15 16 17 18], 0, [5 1 2 3 4 10 6 7 8 9 12 2 11 13 14 15 16 17 18], 0, [5 1 2 3 4 10 6 7 8 9 12 2 11 13 14 15 16 17 18], 0, [5 1 2 3 4 10 6 7 8 9 12 2 11 13 14 15 16 17 18], 0, [5 1 2 3 4 10 6 7 8 9 12 2 11 13 14 15 16 17 18], 0, [5 1 2 3 4 10 0 7 8 9 12 2 11 13 14 15 16 17 18], 6, [5 1 2 6 4 10 0 7 8 9 12 2 11 13 14 15 16 17 18], 3, [5 1 2 6 4 10 0 7 8 9 12 2 11 13 14 15 16 17 18], 3, [5 1 2 6 4 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 7, [5 7 2 6 4 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 1, [5 7 2 6 4 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 1, [5 7 2 6 4 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 1, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 4, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 4, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 4, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 4, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 4, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 17 18], 4, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 14 15 16 4 18], 17, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 15 16 4 18], 14, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 15 16 4 18], 14, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 15 16 4 18], 14, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 15 16 4 18], 14, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 14 16 4 18], 15, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 14 16 4 18], 15, [5 7 2 6 1 10 0 3 8 9 12 2 11 13 17 14 15 4 18], 16, [5 7 2 6 1 10 0 3 8 16 12 2 11 13 17 14 15 4 18], 9, [5 7 2 6 1 10 0 3 8 16 12 2 11 13 17 14 15 4 9], 18, [5 7 2 6 1 10 0 3 8 16 12 2 11 18 17 14 15 4 9], 13 | [5 7 2 6 1 10 0 3 13 16 12 2 11 18 17 14 15 4 9], 8
topological_sort
topological_sort: A: [[0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0], [0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 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 0 0 0 0 0 0 1 0 0 1 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 0 0 0 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 1 1 1 0 0], [1 1 0 0 1 1 1 1 0 1 0 0 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 1 0 1 0 0 1 1 0 1 0 1 0 1 1 0 0 1 0], [0 1 1 0 1 1 1 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 0 0 0], [0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 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 1 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0], [0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 9, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 9, [0 1 2 3 4 5 6 7 8 9 10 11 9 13 14 15 16 17 18], 12, [0 1 2 3 12 5 6 7 8 9 10 11 9 13 14 15 16 17 18], 4, [0 1 2 3 12 5 6 7 8 9 10 11 9 13 14 15 16 17 18], 4, [0 1 2 3 12 5 6 7 8 9 10 11 9 13 14 15 16 17 18], 4, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 14 15 16 17 18], 6, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 14 15 16 17 18], 6, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 14 15 16 17 18], 6, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 14 15 16 17 18], 6, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 14 15 16 6 18], 17, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 17 15 16 6 18], 14, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 17 15 14 6 18], 16, [0 1 2 3 12 5 4 7 8 9 10 11 9 13 17 16 14 6 18], 15, [0 15 2 3 12 5 4 7 8 9 10 11 9 13 17 16 14 6 18], 1, [0 15 2 3 12 5 4 7 8 9 10 11 9 13 17 16 14 6 18], 1, [0 15 1 3 12 5 4 7 8 9 10 11 9 13 17 16 14 6 18], 2, [0 15 1 3 12 5 4 7 8 9 10 11 9 13 17 16 14 6 18], 2, [0 15 1 3 12 5 4 7 8 9 10 11 9 2 17 16 14 6 18], 13, [13 15 1 3 12 5 4 7 8 9 10 11 9 2 17 16 14 6 18], 0, [13 15 1 3 12 5 4 7 8 9 10 11 9 2 17 16 14 6 18], 0, [13 15 1 3 12 5 4 7 8 9 10 11 9 2 17 16 14 6 18], 0, [13 15 1 3 12 5 4 7 8 9 10 11 9 2 17 16 14 6 18], 0, [13 15 1 3 12 0 4 7 8 9 10 11 9 2 17 16 14 6 18], 5, [13 15 1 5 12 0 4 7 8 9 10 11 9 2 17 16 14 6 18], 3, [13 15 1 5 12 0 4 7 8 9 10 11 9 2 17 16 14 6 18], 3, [13 15 1 5 12 0 4 7 8 9 10 11 9 2 17 16 14 6 18], 3, [13 15 1 5 12 0 4 3 8 9 10 11 9 2 17 16 14 6 18], 7, [13 15 1 5 12 0 4 3 8 9 10 11 9 2 17 16 14 6 18], 7, [13 15 1 5 12 0 4 3 8 9 10 11 9 2 17 16 14 6 18], 7, [13 15 1 5 12 0 4 3 7 9 10 11 9 2 17 16 14 6 18], 8, [13 15 1 5 12 0 4 3 7 9 10 11 9 2 17 16 14 6 18], 8, [13 15 1 5 12 0 4 3 7 9 10 11 9 2 17 16 14 6 18], 8, [13 15 1 5 12 0 4 3 7 9 10 11 9 2 17 16 14 6 18], 8, [13 15 1 5 12 0 4 3 7 9 10 11 9 2 17 16 14 6 18], 8, [13 15 1 5 12 0 4 3 7 9 10 11 9 2 17 16 14 6 8], 18, [13 15 1 5 12 0 4 3 7 9 10 18 9 2 17 16 14 6 8], 11 | [13 15 1 5 12 0 4 3 7 9 11 18 9 2 17 16 14 6 8], 10
topological_sort
quickselect: key: [0.1 0.415 0.833 0.571 0.673 0.532 0.136 0.605 0.548 0.985 0.512 0.965 0.977 0.234 0.543 0.836 0.782 0.433 0.981], 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, 17, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 14, 14, 14, 14, 14, 14, 8, 8, 8, 7, 7 | 3
quickselect
segments_intersect: x: [0.9 0.959 0.288 0.069], y: [0.505 0.358 0.022 0.81] intersect:
0
segments_intersect
floyd_warshall: A: [[0.566 0.201 0.644 0 0 0 0.789 0 0 0], [0.201 0.407 0 0 0 0 0 0 0 0], [0.644 0 0 0.38 0 0.224 0.051 0 0.96 0], [0 0 0.38 0.065 0.595 0 0 0.076 0.384 0], [0 0 0 0.595 0 0 0 0 0 0], [0 0 0.224 0 0 0 0 0 0 0.29], [0.789 0 0.051 0 0 0 0.453 0 0 0], [0 0 0 0.076 0 0 0 0 0 0], [0 0 0.96 0.384 0 0 0 0 0 0], [0 0 0 0 0 0.29 0 0 0 0]], initial_trace: [[0 0 0 0 0 0 0 0 0 0], [1 1 1 1 1 1 1 1 1 1], [2 2 2 2 2 2 2 2 2 2], [3 3 3 3 3 3 3 3 3 3], [4 4 4 4 4 4 4 4 4 4], [5 5 5 5 5 5 5 5 5 5], [6 6 6 6 6 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 8 8 8 8 8 8], [9 9 9 9 9 9 9 9 9 9]] trace | Pi:
[[0 0 0 0 0 0 0 0 0 0], [1 0 0 1 1 1 0 1 1 1], [2 0 2 2 2 2 2 2 2 2], [3 3 3 3 3 3 3 3 3 3], [4 4 4 4 4 4 4 4 4 4], [5 5 5 5 5 5 5 5 5 5], [6 0 6 6 6 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 8 8 8 8 8 8], [9 9 9 9 9 9 9 9 9 9]], [[1 0 0 0 0 0 0 0 0 0], [1 0 0 1 1 1 0 1 1 1], [2 0 2 2 2 2 2 2 2 2], [3 3 3 3 3 3 3 3 3 3], [4 4 4 4 4 4 4 4 4 4], [5 5 5 5 5 5 5 5 5 5], [6 0 6 6 6 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 8 8 8 8 8 8], [9 9 9 9 9 9 9 9 9 9]], [[1 0 0 2 0 2 2 0 2 0], [1 0 0 2 1 2 2 1 2 1], [2 0 2 2 2 2 2 2 2 2], [2 0 3 3 3 2 2 3 3 3], [4 4 4 4 4 4 4 4 4 4], [2 0 5 2 5 5 2 5 2 5], [2 0 6 2 6 2 2 6 2 6], [7 7 7 7 7 7 7 7 7 7], [2 0 8 8 8 2 2 8 8 8], [9 9 9 9 9 9 9 9 9 9]], [[1 0 0 2 3 2 2 3 3 0], [1 0 0 2 3 2 2 3 3 1], [2 0 2 2 3 2 2 3 3 2], [2 0 3 3 3 2 2 3 3 3], [2 0 3 4 4 2 2 3 3 4], [2 0 5 2 3 5 2 3 3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 0 3 4 4 2 2 3 3 5], [2 0 5 2 3 5 2 3 3 5], [2 0 6 2 3 2 2 3 3 5], [2 0 3 7 3 2 2 7 3 5], [2 0 3 8 3 2 2 3 8 5], [2 0 5 2 3 9 2 3 3 9]]
floyd_warshall
bellman_ford: s: 0, A: [[0 0 0 0.701 0 0 0 0 0 0 0.518 0 0 0 0 0 0 0 0 0.072 0 0 0], [0 0.707 0.648 0 0.392 0 0.202 0 0 0.147 0 0.82 0 0.792 0.266 0 0 0.514 0.627 0.655 0 0 0.361], [0 0.648 0 0 0 0.385 0 0 0.914 0 0.714 0.24 0.217 0.358 0 0 0 0 0 0 0 0 0], [0.701 0 0 0.969 0 0 0.472 0 0.5 0 0.131 0 0 0.493 0 0 0 0 0 0.531 0 0 0], [0 0.392 0 0 0 0 0 0 0 0.338 0 0 0.356 0.757 0 0.466 0 0 0 0.806 0.375 0 0], [0 0 0.385 0 0 0 0 0 0 0 0 0 0.614 0.652 0.609 0 0 0 0 0 0.903 0 0], [0 0.202 0 0.472 0 0 0 0.603 0 0.71 0 0 0.429 0 0.572 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.603 0 0 0 0.183 0 0 0.238 0 0 0.383 0 0 0.274 0 0 0], [0 0 0.914 0.5 0 0 0 0 0 0.286 0 0 0 0 0 0.328 0.31 0.463 0 0 0 0 0], [0 0.147 0 0 0.338 0 0.71 0 0.286 0 0 0 0 0 0 0 0 0 0 0 0 0.618 0], [0.518 0 0.714 0.131 0 0 0 0.183 0 0 0.221 0 0 0.355 0 0.558 0 0 0 0.361 0 0 0], [0 0.82 0.24 0 0 0 0 0 0 0 0 0.191 0 0 0 0 0 0 0.252 0.657 0.552 0 0], [0 0 0.217 0 0.356 0.614 0.429 0 0 0 0 0 0 0 0.595 0 0 0 0 0 0 0.567 0], [0 0.792 0.358 0.493 0.757 0.652 0 0.238 0 0 0.355 0 0 0 0 0 0.627 0 0 0.53 0 0 0], [0 0.266 0 0 0 0.609 0.572 0 0 0 0 0 0.595 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.466 0 0 0 0.328 0 0.558 0 0 0 0 0 0 0 0 0.234 0.212 0 0], [0 0 0 0 0 0 0 0.383 0.31 0 0 0 0 0.627 0 0 0 0 0.347 0 0 0.537 0], [0 0.514 0 0 0 0 0 0 0.463 0 0 0 0 0 0 0 0 0.834 0.642 0.358 0 0 0.234], [0 0.627 0 0 0 0 0 0 0 0 0 0.252 0 0 0 0 0.347 0.642 0.631 0.053 0.478 0 0], [0.072 0.655 0 0.531 0.806 0 0 0.274 0 0 0.361 0.657 0 0.53 0 0.234 0 0.358 0.053 0 0 0 0], [0 0 0 0 0.375 0.903 0 0 0 0 0 0.552 0 0 0 0.212 0 0 0.478 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.618 0 0 0.567 0 0 0 0.537 0 0 0 0 0.334 0], [0 0.361 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234 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 0 4 5 6 7 8 9 0 11 12 13 14 15 16 17 18 0 20 21 22], [0 19 10 19 19 5 3 19 3 9 19 19 12 19 14 19 16 19 19 0 20 21 22], [0 19 13 10 15 13 1 19 15 1 19 18 4 7 1 19 18 19 19 0 15 21 17], [0 19 11 10 15 13 1 19 15 1 19 18 4 7 1 19 18 19 19 0 15 16 17] | [0 19 11 10 15 2 1 19 15 1 19 18 2 7 1 19 18 19 19 0 15 16 17]
bellman_ford
graham_scan: x: [1.4 -1.11 -1.03 0.106 -1.14 0.871 0.78 -0.73 0.091 0.967 1.33 -0.573 -1.74 0.498 -0.407], y: [-1.26 -0.536 0.923 -0.407 0.064 1.63 0.687 -1.08 1.26 0.586 1.32 0.415 -0.53 1.64 -1.27], initial_trace: [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 1], [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 0 0 0 0 1], [1 0 0 0 0 0 0 0 0 1 0 0 0 0 1], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 1], [1 0 0 0 0 0 0 0 0 0 1 0 0 0 1], [1 0 0 0 0 0 1 0 0 0 1 0 0 0 1], [1 0 0 1 0 0 1 0 0 0 1 0 0 0 1], [1 0 0 0 0 0 1 0 0 0 1 0 0 0 1], [1 0 0 0 0 0 0 0 0 0 1 0 0 0 1], [1 0 0 0 0 1 0 0 0 0 1 0 0 0 1], [1 0 0 0 0 1 0 0 0 0 1 0 0 1 1], [1 0 0 0 0 1 0 0 1 0 1 0 0 1 1], [1 0 0 0 0 1 0 0 1 0 1 1 0 1 1], [1 0 0 0 0 1 0 0 1 0 1 0 0 1 1], [1 0 0 0 0 1 0 0 0 0 1 0 0 1 1], [1 0 1 0 0 1 0 0 0 0 1 0 0 1 1], [1 0 1 0 1 1 0 0 0 0 1 0 0 1 1], [1 1 1 0 1 1 0 0 0 0 1 0 0 1 1], [1 1 1 0 1 1 0 1 0 0 1 0 0 1 1], [1 1 1 0 1 1 0 0 0 0 1 0 0 1 1], [1 0 1 0 1 1 0 0 0 0 1 0 0 1 1], [1 0 1 0 0 1 0 0 0 0 1 0 0 1 1] | [1 0 1 0 0 1 0 0 0 0 1 0 1 1 1]
graham_scan
mst_prim: s: 1, A: [[0 0.557 0 0 0 0 0 0 0 0 0.256], [0.557 0.828 0.822 0.503 0.318 0 0 0 0 0 0], [0 0.822 0 0 0 0 0 0.485 0 0 0.771], [0 0.503 0 0 0 0 0.757 0 0 0 0], [0 0.318 0 0 0.632 0 0 0 0.423 0 0], [0 0 0 0 0 0 0 0 0 0.332 0.846], [0 0 0 0.757 0 0 0.766 0 0 0 0.358], [0 0 0.485 0 0 0 0 0 0 0 0], [0 0 0 0 0.423 0 0 0 0 0 0.458], [0 0 0 0 0 0.332 0 0 0 0.048 0], [0.256 0 0.771 0 0 0.846 0.358 0 0.458 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[1 1 1 1 1 5 6 7 8 9 10], [1 1 1 1 1 5 6 7 4 9 10], [1 1 1 1 1 5 6 7 4 9 8], [10 1 10 1 1 10 10 7 4 9 8], [10 1 10 1 1 10 10 7 4 9 8], [10 1 10 1 1 10 10 7 4 9 8], [10 1 10 1 1 10 10 7 4 9 8], [10 1 10 1 1 10 10 2 4 9 8], [10 1 10 1 1 10 10 2 4 9 8], [10 1 10 1 1 10 10 2 4 5 8] | [10 1 10 1 1 10 10 2 4 5 8]
mst_prim
graham_scan: x: [1.35 -1.85 -0.418 1.34 -0.795], y: [-0.615 0.228 -1.83 -0.853 1.67], initial_trace: [0 0 0 0 0] trace | in_hull:
[0 0 1 0 0], [0 0 1 0 0], [0 0 1 1 0], [1 0 1 1 0], [1 0 1 1 1] | [1 1 1 1 1]
graham_scan
dfs: A: [[0 1 1 0 0], [1 0 1 1 0], [1 0 0 0 0], [1 0 0 1 1], [0 1 1 0 0]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 0 2 3 4], [0 0 2 3 4], [0 0 1 3 4], [0 0 1 3 4], [0 0 1 3 4], [0 0 1 1 4], [0 0 1 1 4], [0 0 1 1 3], [0 0 1 1 3], [0 0 1 1 3], [0 0 1 1 3], [0 0 1 1 3] | [0 0 1 1 3]
dfs
binary_search: key: [0.086 0.092 0.127 0.14 0.162 0.345 0.348 0.37 0.372 0.381 0.416 0.426 0.454 0.457 0.479 0.507 0.507 0.543 0.566 0.591 0.695 0.7 0.704 0.733 0.765 0.804 0.817 0.842 0.864 0.954 0.994], target: 0.405, initial_trace: (0, 30) trace | (low, high):
(0, 15), (8, 15), (8, 11), (10, 11) | (10, 10)
binary_search
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 1 1], key: [2 2 1 3 0 3 1 2 3 0 3], initial_trace: 0 trace | s:
1, 2, 3, 4 | 4
naive_string_matcher
mst_kruskal: 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]], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | in_mst:
| [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]]
mst_kruskal
matrix_chain_order: p: [0.608 0.758 0.484 0.356 0.984], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | s:
[[0 0 0 0 0], [0 0 1 0 0], [0 0 0 2 0], [0 0 0 0 3], [0 0 0 0 0]], [[0 0 0 0 0], [0 0 1 1 2], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]] | [[0 0 0 0 0], [0 0 1 1 3], [0 0 0 2 3], [0 0 0 0 3], [0 0 0 0 0]]
matrix_chain_order
bfs: s: 0, A: [[0 1 0 0], [1 1 0 0], [0 0 1 1], [0 0 1 1]], initial_trace: [0 1 2 3] trace | pi:
| [0 0 2 3]
bfs