question
stringlengths 65
3.42k
| answer
stringlengths 3
5.8k
| algo_name
stringclasses 30
values |
---|---|---|
dag_shortest_paths:
s: 7, A: [[0 0.0363 0 0 0 0 0 0.518 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0.838 0.814 0.163 0 0.986 0 0], [0.891 0 0 0 0 0 0 0 0 0], [0.052 0 0 0 0 0 0 0 0 0], [0.683 0 0 0.188 0 0 0 0 0 0], [0.898 0.29 0.354 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0.66 0.312 0 0.211 0 0 0.704], [0.188 0 0 0 0 0 0 0.325 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]
| dag_shortest_paths |
minimum:
key: [0.372 0.084 0.407 0.268 0.942 0.924 0.186 0.481 0.229 0.124 0.415 0.203 0.204 0.981 0.4 0.05 0.163 0.35 0.71 0.005 0.955 0.094 0.388 0.775 0.611 0.981 0.168 0.328], initial_trace: 0
trace | min:
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 15, 19, 19, 19, 19, 19, 19, 19, 19 | 19
| minimum |
strongly_connected_components:
A: [[1 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 1 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 1 0 0 1 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 1], [0 0 0 0 1 0 0 0 0 0 1], [0 0 0 0 0 0 1 0 1 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 4 10], [0 1 2 3 4 5 6 7 4 4 10], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 7 4 4 4], [0 1 2 3 4 5 6 1 4 4 4], [0 1 2 3 4 5 6 1 4 4 4], [0 1 2 3 4 5 6 1 4 4 4], [0 1 2 3 4 5 6 1 4 4 4] | [0 1 2 3 4 5 6 1 4 4 4]
| strongly_connected_components |
minimum:
key: [0.761 0.514 0.124 0.258 0.636 0.519 0.102 0.456 0.76 0.704 0.889 0.875 0.617 0.734 0.103 0.377 0.71 0.71 0.294 0.907 0.384 0.74 0.719 0.915 0.56 0.811 0.564 0.588], initial_trace: 0
trace | min:
| 1, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 | 6
| minimum |
find_maximum_subarray_kadane:
key: [-0.809 0.03 0.11 0.87 0.838 0.665 0.699 0.645 0.788 0.539 0.926 0.336 0.37 0.19 -0.498 -0.472 -0.36 -0.15 -0.372], initial_trace: (0, 0)
trace | (best_low, best_high):
| (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7), (1, 8), (1, 9), (1, 10), (1, 11), (1, 12), (1, 13), (1, 13), (1, 13), (1, 13), (1, 13) | (1, 13)
| find_maximum_subarray_kadane |
find_maximum_subarray_kadane:
key: [-0.068 0.674 0.721 -0.509 -0.489], initial_trace: (0, 0)
trace | (best_low, best_high):
| (1, 1), (1, 2), (1, 2) | (1, 2)
| find_maximum_subarray_kadane |
find_maximum_subarray_kadane:
key: [-0.236 -0.17 0.341 -0.056 -0.074 -0.327 -0.134 0.967 -0.257 -0.053 -0.826 -0.96], initial_trace: (0, 0)
trace | (best_low, best_high):
| (1, 1), (2, 2), (2, 2), (2, 2), (2, 2), (2, 2), (7, 7), (7, 7), (7, 7), (7, 7) | (7, 7)
| find_maximum_subarray_kadane |
binary_search:
key: [0.142 0.189 0.67 0.768 0.774 0.777 0.778 0.792 0.834 0.869], target: 0.036, initial_trace: (0, 9)
trace | (low, high):
| (0, 4), (0, 2), (0, 1) | (0, 0)
| binary_search |
task_scheduling:
d: [4 2 1 2 3], w: [0.616 0.692 0.447 0.569 0.108], initial_trace: [0 0 0 0 0]
trace | selected:
| [0 1 0 0 0], [1 1 0 0 0], [1 1 0 0 0], [1 1 0 0 0] | [1 1 0 0 1]
| task_scheduling |
bellman_ford:
s: 9, A: [[0.301 0 0 0 0 0 0.706 0 0 0 0 0], [0 0 0 0 0.639 0.663 0 0.584 0 0.435 0 0.218], [0 0 0.621 0 0 0.78 0 0.738 0 0 0 0], [0 0 0 0.621 0 0 0 0 0 0 0 0.859], [0 0.639 0 0 0.997 0 0 0 0 0 0 0], [0 0.663 0.78 0 0 0.463 0 0 0.502 0 0 0], [0.706 0 0 0 0 0 0.781 0 0 0.48 0 0], [0 0.584 0.738 0 0 0 0 0 0.477 0.592 0 0], [0 0 0 0 0 0.502 0 0.477 0.247 0.603 0 0.697], [0 0.435 0 0 0 0 0.48 0.592 0.603 0 0.333 0.725], [0 0 0 0 0 0 0 0 0 0.333 0 0], [0 0.218 0 0.859 0 0 0 0 0.697 0.725 0 0.519]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11]
trace | pi:
| [0 9 2 3 4 5 9 9 9 9 9 9], [6 9 7 11 1 1 9 9 9 9 9 1] | [6 9 7 11 1 1 9 9 9 9 9 1]
| bellman_ford |
minimum:
key: [0.889 0.48 0.155 0.316 0.188 0.662 0.127 0.818 0.207 0.6 0.941 0.527 0.943 0.177 0.692 0.119 0.603 0.872 0.396 0.265 0.46 0.546 0.438 0.117 0.522 0.307 0.734 0.844], initial_trace: 0
trace | min:
| 1, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 15, 15, 15, 15, 15, 15, 15, 15, 23, 23, 23, 23 | 23
| minimum |
dijkstra:
s: 4, A: [[0.67 0 0 0 0.106 0 0 0 0 0 0], [0 0 0 0 0.608 0 0 0 0 0.533 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.108 0 0.341], [0.106 0.608 0 0 0.894 0 0 0 0 0.347 0.427], [0 0 0 0 0 0.666 0 0.145 0 0 0], [0 0 0 0 0 0 0.774 0 0.453 0 0], [0 0 0 0 0 0.145 0 0.318 0 0 0], [0 0 0 0.108 0 0 0.453 0 0 0 0], [0 0.533 0 0 0.347 0 0 0 0 0 0.534], [0 0 0 0.341 0.427 0 0 0 0 0.534 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [4 4 2 3 4 5 6 7 8 4 4], [4 4 2 3 4 5 6 7 8 4 4], [4 4 2 3 4 5 6 7 8 4 4], [4 4 2 10 4 5 6 7 8 4 4], [4 4 2 10 4 5 6 7 8 4 4], [4 4 2 10 4 5 6 7 3 4 4], [4 4 2 10 4 5 8 7 3 4 4] | [4 4 2 10 4 5 8 7 3 4 4]
| dijkstra |
minimum:
key: [0.037 0.278 0.275 0.495 0.266 0.235 0.966 0.648 0.228 0.506 0.665 0.857], initial_trace: 0
trace | min:
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | 0
| minimum |
bridges:
A: [[1 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]], initial_trace: [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]]
trace | is_bridge:
| [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]], [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]] | [[0 -1 -1 -1], [-1 0 -1 -1], [-1 -1 0 -1], [-1 -1 -1 0]]
| bridges |
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: [0 2 2 1 2 0 3 1 1 1 1 2 3 0 1 0 3 1 1 0 3 3 2 3 2 1 1 1 2 3 0], initial_trace: 0
trace | s:
| 1, 2, 3, 3, 4, 5, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8 | 8
| naive_string_matcher |
bellman_ford:
s: 7, A: [[0.973 0 0 0 0 0 0 0 0 0.248], [0 0.431 0 0.296 0 0 0 0 0.379 0], [0 0 0.863 0 0 0 0.287 0.408 0.505 0], [0 0.296 0 0 0.615 0 0 0 0 0], [0 0 0 0.615 0.099 0 0 0 0.476 0.42], [0 0 0 0 0 0.493 0.083 0 0 0], [0 0 0.287 0 0 0.083 0 0 0.644 0], [0 0 0.408 0 0 0 0 0 0 0], [0 0.379 0.505 0 0.476 0 0.644 0 0.967 0], [0.248 0 0 0 0.42 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 1 7 3 4 5 6 7 8 9], [0 1 7 3 4 5 2 7 2 9], [0 8 7 3 8 6 2 7 2 9], [0 8 7 1 8 6 2 7 2 4] | [9 8 7 1 8 6 2 7 2 4]
| bellman_ford |
graham_scan:
x: [-1.93 0.317 0.278 0.827 0.206 0.112 0.672 0.366 1.78 0.202 1.17 -0.186], y: [0.256 -1.23 -1.57 0.339 -0.297 0.755 0.22 0.806 0.675 0.839 -0.398 0.114], initial_trace: [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 1 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 0], [0 0 1 0 0 0 0 0 1 0 1 0], [0 0 1 1 0 0 0 0 1 0 1 0], [0 0 1 1 0 0 1 0 1 0 1 0], [0 1 1 1 0 0 1 0 1 0 1 0], [0 0 1 1 0 0 1 0 1 0 1 0], [0 0 1 1 0 0 0 0 1 0 1 0], [0 0 1 0 0 0 0 0 1 0 1 0], [0 0 1 0 0 0 0 1 1 0 1 0], [0 0 1 0 0 0 0 0 1 0 1 0], [0 0 1 0 0 0 0 0 1 1 1 0], [0 0 1 0 1 0 0 0 1 1 1 0], [0 0 1 0 0 0 0 0 1 1 1 0], [0 0 1 0 0 1 0 0 1 1 1 0], [0 0 1 0 0 1 0 0 1 1 1 1], [0 0 1 0 0 1 0 0 1 1 1 0], [0 0 1 0 0 0 0 0 1 1 1 0] | [1 0 1 0 0 0 0 0 1 1 1 0]
| graham_scan |
dijkstra:
s: 3, A: [[0 0 0 0.576 0 0.277 0.366 0 0.396 0 0.46 0 0 0 0 0 0.266 0 0 0 0 0 0.224 0 0 0 0 0], [0 0.783 0.15 0 0.683 0 0 0 0 0.531 0 0 0 0 0.506 0 0 0 0 0 0 0 0 0.345 0.065 0 0.67 0], [0 0.15 0.869 0.707 0 0 0 0 0.324 0 0 0 0 0 0 0 0.403 0 0 0 0 0.482 0 0.066 0 0.116 0 0], [0.576 0 0.707 0.642 0 0 0 0.135 0 0 0 0 0 0 0 0 0 0.425 0.953 0.469 0 0 0.348 0 0 0 0 0], [0 0.683 0 0 0 0 0 0 0.31 0 0.131 0 0 0.27 0 0 0 0 0 0 0 0 0.515 0 0.756 0 0.26 0.611], [0.277 0 0 0 0 0 0 0 0.172 0 0.613 0 0 0.087 0 0 0.291 0 0 0.36 0 0 0 0 0.717 0 0.666 0], [0.366 0 0 0 0 0 0.78 0 0.689 0 0 0 0 0.602 0 0 0 0 0 0 0.721 0 0 0 0 0 0 0], [0 0 0 0.135 0 0 0 0 0 0 0 0.19 0 0.318 0 0 0.393 0 0 0 0.489 0 0 0 0 0 0 0], [0.396 0 0.324 0 0.31 0.172 0.689 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.715 0 0], [0 0.531 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.472 0 0.355 0.564 0.191 0 0 0 0 0], [0.46 0 0 0 0.131 0.613 0 0 0 0 0 0 0 0 0.478 0.53 0 0 0 0 0 0 0 0 0 0 0.242 0], [0 0 0 0 0 0 0 0.19 0 0 0 0 0 0 0 0 0 0.583 0 0 0 0 0.107 0 0.138 0 0 0.693], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.564 0 0 0.052 0 0 0 0 0], [0 0 0 0 0.27 0.087 0.602 0.318 0 0 0 0 0 0.037 0 0 0.87 0 0 0.751 0.262 0 0.329 0 0 0 0 0.809], [0 0.506 0 0 0 0 0 0 0 0 0.478 0 0 0 0.165 0 0 0 0 0 0.565 0 0.085 0.379 0 0 0.59 0.828], [0 0 0 0 0 0 0 0 0 0 0.53 0 0 0 0 0.93 0.425 0 0 0 0 0.038 0 0.54 0.163 0 0 0.051], [0.266 0 0.403 0 0 0.291 0 0.393 0 0 0 0 0 0.87 0 0.425 0.529 0.821 0 0 0 0 0.243 0.156 0 0 0 0], [0 0 0 0.425 0 0 0 0 0 0 0 0.583 0 0 0 0 0.821 0.881 0 0 0.538 0 0 0 0.829 0 0 0.184], [0 0 0 0.953 0 0 0 0 0 0.472 0 0 0 0 0 0 0 0 0.032 0 0 0 0 0 0 0.084 0 0.19], [0 0 0 0.469 0 0.36 0 0 0 0 0 0 0.564 0.751 0 0 0 0 0 0.303 0.821 0 0.863 0 0 0 0 0.211], [0 0 0 0 0 0 0.721 0.489 0 0.355 0 0 0 0.262 0.565 0 0 0.538 0 0.821 0.329 0 0 0 0 0 0.701 0], [0 0 0.482 0 0 0 0 0 0 0.564 0 0 0 0 0 0.038 0 0 0 0 0 0.803 0 0 0.744 0 0 0], [0.224 0 0 0.348 0.515 0 0 0 0 0.191 0 0.107 0.052 0.329 0.085 0 0.243 0 0 0.863 0 0 0 0 0 0.354 0 0], [0 0.345 0.066 0 0 0 0 0 0 0 0 0 0 0 0.379 0.54 0.156 0 0 0 0 0 0 0 0 0 0 0], [0 0.065 0 0 0.756 0.717 0 0 0 0 0 0.138 0 0 0 0.163 0 0.829 0 0 0 0.744 0 0 0 0.442 0 0], [0 0 0.116 0 0 0 0 0 0.715 0 0 0 0 0 0 0 0 0 0.084 0 0 0 0.354 0 0.442 0.599 0 0], [0 0.67 0 0 0.26 0.666 0 0 0 0 0.242 0 0 0 0.59 0 0 0 0 0 0.701 0 0 0 0 0 0 0], [0 0 0 0 0.611 0 0 0 0 0 0 0.693 0 0.809 0.828 0.051 0 0.184 0.19 0.211 0 0 0 0 0 0 0 0.598]], 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:
| [3 1 3 3 4 5 6 3 8 9 10 11 12 13 14 15 16 3 3 3 20 21 3 23 24 25 26 27], [3 1 3 3 4 5 6 3 8 9 10 7 12 7 14 15 7 3 3 3 7 21 3 23 24 25 26 27], [3 1 3 3 4 5 6 3 8 9 10 7 12 7 14 15 7 3 3 3 7 21 3 23 11 25 26 11], [22 1 3 3 22 5 6 3 8 22 10 7 22 7 22 15 7 3 3 3 7 21 3 23 11 22 26 11], [22 1 3 3 22 5 6 3 8 22 10 7 22 7 22 15 7 3 3 3 7 21 3 23 11 22 26 11], [22 1 3 3 22 5 6 3 8 22 10 7 22 7 22 15 7 3 3 3 7 21 3 23 11 22 26 17], [22 14 3 3 22 5 6 3 8 22 14 7 22 7 22 15 7 3 3 3 7 21 3 14 11 22 14 17], [22 14 3 3 13 13 13 3 8 22 14 7 22 7 22 15 7 3 3 3 7 21 3 14 11 22 14 17], [22 24 3 3 13 13 13 3 8 22 14 7 22 7 22 24 7 3 3 3 7 24 3 14 11 22 14 17], [22 24 3 3 13 13 13 3 8 22 14 7 22 7 22 24 7 3 3 3 7 24 3 14 11 22 14 17], [22 24 1 3 13 13 13 3 8 22 14 7 22 7 22 24 7 3 3 3 7 24 3 14 11 22 14 17], [22 24 1 3 13 13 13 3 8 22 14 7 22 7 22 24 7 3 3 3 7 24 3 16 11 22 14 17], [22 24 1 3 13 13 13 3 8 22 14 7 22 7 22 24 7 3 3 3 7 9 3 16 11 22 14 17], [22 24 1 3 13 13 13 3 5 22 14 7 22 7 22 24 7 3 3 3 7 9 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 3 3 7 9 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 27 3 7 9 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 27 3 7 9 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 27 3 7 15 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 27 3 7 15 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 27 3 7 15 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 27 3 7 15 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 14 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 14 17], [22 24 1 3 13 13 0 3 5 22 4 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 4 17], [22 24 1 3 13 13 0 3 5 22 4 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 4 17], [22 24 1 3 13 13 0 3 5 22 4 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 4 17], [22 24 1 3 13 13 0 3 5 22 4 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 4 17] | [22 24 1 3 13 13 0 3 5 22 4 7 22 7 22 24 7 3 25 3 7 15 3 16 11 22 4 17]
| dijkstra |
dfs:
A: [[1 0 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 1 1], [1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 0 0 0 0], [1 1 1 0 1 1 0 0 1 0 1 1 0 1 1 0 0 0 1], [0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1], [1 0 0 1 0 1 0 1 0 0 1 0 0 1 0 1 1 0 0], [1 1 1 1 1 0 1 1 0 0 0 0 0 1 1 1 0 1 0], [1 0 0 1 1 1 0 1 1 0 0 0 0 1 1 0 0 0 1], [1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1], [1 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0], [0 1 1 1 0 1 0 1 1 0 1 0 0 0 0 1 0 1 0], [0 0 1 0 1 1 1 0 1 1 0 0 1 0 0 1 0 0 0], [0 1 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 0], [0 1 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0], [1 1 0 1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 1], [0 0 0 1 0 0 0 0 1 1 0 0 0 1 1 0 0 1 1], [0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 0], [0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 0 1 1 1], [1 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 1 0 0], [0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 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 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 3 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 3 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 6 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 2 6 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 3 6 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 3 6 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 4 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 5 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 7 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 8 9 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 8 7 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 8 7 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 10 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 11 12 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 11 10 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 11 10 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 13 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 14 15 16 17 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 14 15 16 13 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 14 15 16 13 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 14 15 17 13 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 14 15 17 13 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 15 17 13 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 15 17 13 18], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 15 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 15 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14], [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14] | [0 2 3 6 1 4 0 5 9 7 8 12 10 11 16 18 17 13 14]
| dfs |
optimal_bst:
p: [0.046 0.052 0.014 0.113 0.105 0], q: [0.056 0.152 0.163 0.042 0.096 0.16], initial_trace: [[0 0 0 0 0 0], [0 0 0 0 0 0], [0 0 0 0 0 0], [0 0 0 0 0 0], [0 0 0 0 0 0], [0 0 0 0 0 0]]
trace | root:
| [[0 0 0 0 0 0], [0 0 1 0 0 0], [0 0 0 2 0 0], [0 0 0 0 3 0], [0 0 0 0 0 4], [0 0 0 0 0 0]], [[0 0 1 0 0 0], [0 0 1 1 0 0], [0 0 0 2 3 0], [0 0 0 0 3 4], [0 0 0 0 0 4], [0 0 0 0 0 0]], [[0 0 1 1 0 0], [0 0 1 1 2 0], [0 0 0 2 3 3], [0 0 0 0 3 4], [0 0 0 0 0 4], [0 0 0 0 0 0]], [[0 0 1 1 1 0], [0 0 1 1 2 3], [0 0 0 2 3 3], [0 0 0 0 3 4], [0 0 0 0 0 4], [0 0 0 0 0 0]] | [[0 0 1 1 1 3], [0 0 1 1 2 3], [0 0 0 2 3 3], [0 0 0 0 3 4], [0 0 0 0 0 4], [0 0 0 0 0 0]]
| optimal_bst |
quickselect:
key: [0.757 0.452 0.724 0.479 0.732 0.958 0.097 0.278 0.101 0.001 0.773 0.73 0.431 0.131 0.655 0.71 0.574 0.296 0.157 0.104 0.704 0.239 0.879 0.448 0.569 0.802 0.603 0.727 0.63 0.198 0.93], initial_trace: 30
trace | pivot:
| 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 26, 26, 26, 26, 26, 26, 26, 26, 24, 24, 24, 24, 24, 24, 24 | 16
| quickselect |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 1 1], key: [3 1 1 0 1 2 1 2 3 0 1], initial_trace: 0
trace | s:
| 0, 0, 0, 1, 2 | 3
| kmp_matcher |
minimum:
key: [0.524 0.646 0.702 0.923 0.41 0.775 0.445 0.342 0.737 0.614 0.31], initial_trace: 0
trace | min:
| 0, 0, 0, 4, 4, 4, 7, 7, 7 | 10
| minimum |
find_maximum_subarray_kadane:
key: [-0.645 0.736 -0.459 0.513 -0.553 0.563 0.567 0.557 0.322 -0.19 0.339 -0.754 0.669 -0.119 0.332 -0.823 -0.984 -0.382 -0.54], initial_trace: (0, 0)
trace | (best_low, best_high):
| (1, 1), (1, 1), (1, 3), (1, 3), (1, 5), (1, 6), (1, 7), (1, 8), (1, 8), (1, 10), (1, 10), (1, 10), (1, 10), (1, 14), (1, 14), (1, 14), (1, 14) | (1, 14)
| find_maximum_subarray_kadane |
task_scheduling:
d: [3 7 1 6 5 14 10 11 6 7 3 1 5 4 3], w: [0.316 0.148 0.197 0.286 0.167 0.294 0.837 0.569 0.494 0.573 0.689 0.563 0.452 0.988 0.975], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 1 1], [0 0 0 0 0 0 1 0 0 0 0 0 0 1 1], [0 0 0 0 0 0 1 0 0 0 0 0 0 1 1], [0 0 0 0 0 0 1 0 0 1 0 0 0 1 1], [0 0 0 0 0 0 1 1 0 1 0 0 0 1 1], [0 0 0 0 0 0 1 1 0 1 0 0 0 1 1], [0 0 0 0 0 0 1 1 1 1 0 0 0 1 1], [0 0 0 0 0 0 1 1 1 1 0 0 0 1 1], [0 0 0 0 0 0 1 1 1 1 0 0 0 1 1], [0 0 0 0 0 1 1 1 1 1 0 0 0 1 1], [0 0 0 0 0 1 1 1 1 1 0 0 0 1 1], [0 0 0 0 0 1 1 1 1 1 0 0 0 1 1], [0 0 0 0 0 1 1 1 1 1 0 0 0 1 1] | [0 0 0 0 0 1 1 1 1 1 0 0 0 1 1]
| task_scheduling |
topological_sort:
A: [[0 1 0 1 1 0 0 1 0 0 0], [0 0 0 0 0 0 0 1 0 0 0], [1 0 0 1 1 0 1 1 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], [0 1 0 1 0 0 0 1 0 0 1], [1 1 0 1 0 1 0 1 0 0 1], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 1 1 0 1 1 0 0 1], [1 1 1 1 0 0 0 1 0 0 1], [0 0 0 1 1 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9 10], 0, [0 1 2 3 4 5 6 7 8 9 10], 0, [0 1 2 3 4 5 6 7 8 9 10], 0, [0 1 2 3 4 5 6 7 8 9 10], 7, [0 7 2 3 4 5 6 7 8 9 10], 1, [0 7 2 3 4 5 6 7 8 9 10], 1, [0 7 2 1 4 5 6 7 8 9 10], 3, [0 7 2 1 4 5 6 7 8 9 10], 3, [0 7 2 1 3 5 6 7 8 9 10], 4, [4 7 2 1 3 5 6 7 8 9 10], 0, [4 7 2 1 3 5 6 7 8 9 10], 0, [4 7 2 1 3 5 6 7 8 9 10], 0, [4 7 2 1 3 5 6 7 8 9 10], 0, [4 7 2 1 3 5 6 7 8 9 10], 0, [4 7 2 1 3 5 6 7 8 9 10], 0, [4 7 2 1 3 5 6 7 8 9 0], 10, [4 7 2 1 3 10 6 7 8 9 0], 5, [4 7 2 1 3 10 5 7 8 9 0], 6, [4 7 2 1 3 10 5 7 8 9 0], 6, [4 7 2 1 3 10 5 7 6 9 0], 8, [4 7 8 1 3 10 5 7 6 9 0], 2, [4 7 8 1 3 10 5 7 6 9 0], 2, [4 7 8 1 3 10 5 7 6 9 0], 2 | [4 7 8 1 3 10 5 7 6 2 0], 9
| topological_sort |
activity_selector:
s: [0.311 0.293 0.809 0.331 0.073 0.127 0.027 0.223 0.579 0.03 0.461 0.945 0.612 0.256 0.433 0.191 0.184 0.373 0.459 0.328 0.203 0.393 0.03 0.049 0.375 0.104 0.299 0.222], f: [0.51 0.839 0.973 0.38 0.175 0.967 0.858 0.491 0.917 0.352 0.726 0.979 0.665 0.67 0.713 0.772 0.571 0.685 0.906 0.595 0.984 0.86 0.37 0.962 0.438 0.161 0.576 0.432], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 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 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 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 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 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 1 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1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0] | [0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0]
| activity_selector |
topological_sort:
A: [[0 1 0 1 0 0 0 0 0 1], [0 0 0 1 0 0 0 0 0 0], [1 0 0 1 0 1 0 1 0 1], [0 0 0 0 0 0 0 0 0 0], [1 1 0 0 0 1 1 0 0 1], [0 0 0 1 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 1 0 0 0], [1 1 0 1 1 1 0 0 0 0], [0 1 0 1 0 0 1 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 0, [0 1 2 3 4 5 6 7 8 9], 3, [0 3 2 3 4 5 6 7 8 9], 1, [0 3 2 3 4 5 6 7 8 9], 1, [0 3 2 3 4 5 6 7 8 9], 1, [0 3 2 3 4 5 1 7 8 9], 6, [0 3 2 3 4 5 1 7 8 9], 6, [0 3 2 3 4 5 1 6 8 9], 7, [0 3 2 3 4 5 1 6 8 7], 9, [9 3 2 3 4 5 1 6 8 7], 0, [9 3 2 3 4 5 1 6 8 7], 0, [9 3 2 3 4 5 1 6 8 7], 0, [9 3 2 3 4 5 1 6 8 7], 0, [9 3 2 3 4 0 1 6 8 7], 5, [9 3 5 3 4 0 1 6 8 7], 2, [9 3 5 3 4 0 1 6 8 7], 2, [9 3 5 3 4 0 1 6 8 7], 2, [9 3 5 3 2 0 1 6 8 7], 4, [9 3 5 3 2 0 1 6 8 7], 4, [9 3 5 3 2 0 1 6 8 7], 4 | [9 3 5 3 2 0 1 6 4 7], 8
| topological_sort |
dijkstra:
s: 0, A: [[0 0 0 0.889], [0 0.518 0 0], [0 0 0.034 0], [0.889 0 0 0]], initial_trace: [0 1 2 3]
trace | pi:
| [0 1 2 0] | [0 1 2 0]
| dijkstra |
graham_scan:
x: [0.754 1.44 -0.863 0.744 -1.64 0.479 -0.604 0.126 -1.8 0.505 -0.591 0.135 -0.032 -1.85 -0.947], y: [-0.923 -0.718 -1.12 -1.63 -0.408 -1.12 -1.04 0.869 0.009 0.209 1.9 0.156 0.601 -0.654 0.128], initial_trace: [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 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], [1 1 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 0 0 1 0 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 1 0 0 0 1 0 0 0], [0 1 0 1 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 1 0 0 0 0 1 0 0], [0 1 0 1 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 1 0 0 0 0], [0 1 0 1 0 1 0 0 0 0 1 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 1 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 1 0 0 0 1], [0 1 0 1 0 0 0 0 0 0 1 0 0 0 0], [0 1 0 1 0 0 0 0 1 0 1 0 0 0 0], [0 1 0 1 1 0 0 0 1 0 1 0 0 0 0], [0 1 0 1 1 0 1 0 1 0 1 0 0 0 0], [0 1 0 1 1 0 0 0 1 0 1 0 0 0 0], [0 1 0 1 0 0 0 0 1 0 1 0 0 0 0], [0 1 0 1 0 0 0 0 1 0 1 0 0 1 0] | [0 1 1 1 0 0 0 0 1 0 1 0 0 1 0]
| graham_scan |
bfs:
s: 1, A: [[0 1 0 0 0 0 0 0 0 0 1 0], [1 0 1 0 0 0 0 0 0 1 0 0], [0 1 1 1 0 0 0 0 1 1 0 0], [0 0 1 0 0 0 0 0 0 1 0 0], [0 0 0 0 1 0 0 1 0 0 1 0], [0 0 0 0 0 0 1 0 0 1 0 0], [0 0 0 0 0 1 1 1 1 0 0 0], [0 0 0 0 1 0 1 0 0 1 0 1], [0 0 1 0 0 0 1 0 0 0 0 0], [0 1 1 1 0 1 0 1 0 0 0 1], [1 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11]
trace | pi:
| [1 1 1 3 4 5 6 7 8 1 10 11], [1 1 1 2 4 9 6 9 2 1 0 9] | [1 1 1 2 7 9 5 9 2 1 0 9]
| bfs |
mst_kruskal:
A: [[0 0 0 0], [0 0 0 0], [0 0 0 0.314], [0 0 0.314 0]], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]]
trace | in_mst:
| [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] | [[0 0 0 0], [0 0 0 0], [0 0 0 1], [0 0 1 0]]
| mst_kruskal |
activity_selector:
s: [0.562 0.46 0.35 0.613 0.316 0.42 0.663 0.082 0.008 0.102 0.107], f: [0.756 0.797 0.612 0.837 0.809 0.484 0.957 0.191 0.252 0.427 0.561], initial_trace: [0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 1 0 1 0 0 0], [0 0 0 0 0 1 0 1 0 0 0], [0 0 0 0 0 1 0 1 0 0 0], [1 0 0 0 0 1 0 1 0 0 0], [1 0 0 0 0 1 0 1 0 0 0], [1 0 0 0 0 1 0 1 0 0 0], [1 0 0 0 0 1 0 1 0 0 0] | [1 0 0 0 0 1 0 1 0 0 0]
| activity_selector |
graham_scan:
x: [-1.56 -1.4 1.25 -1.32 -0.65 1.35 1.31 0.554 0.085 0.012 0.476 0.938 0.192 1.86 0.287], y: [0.7 -1.27 1.43 0.673 -1.8 0.729 -1.5 -1.58 1.8 1.12 1.16 1.12 1.44 -0.286 0.484], initial_trace: [0 0 0 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 0 0 0 1 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 1 1 0 0 0 0 0 0 0], [0 0 0 0 1 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 1 1 1 0 0 0 0 0 0 1 0], [0 0 0 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 0 0 0 1 0 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 0 1 1], [0 0 1 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 0 0 1 0 0 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 1 1 0], [0 0 1 0 1 0 1 0 0 1 0 0 1 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 1 1 0], [0 0 1 0 1 0 1 0 0 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 1 0 0 0 0 1 0], [0 0 1 1 1 0 1 0 1 0 0 0 0 1 0], [0 0 1 0 1 0 1 0 1 0 0 0 0 1 0], [1 0 1 0 1 0 1 0 1 0 0 0 0 1 0] | [1 1 1 0 1 0 1 0 1 0 0 0 0 1 0]
| graham_scan |
mst_prim:
s: 5, A: [[0.845 0 0 0 0 0 0 0.414 0 0], [0 0.366 0 0 0.613 0 0 0 0 0], [0 0 0 0 0 0.408 0.361 0 0 0], [0 0 0 0 0 0 0 0 0 0.246], [0 0.613 0 0 0 0 0 0.153 0 0], [0 0 0.408 0 0 0.507 0 0 0.664 0], [0 0 0.361 0 0 0 0.546 0 0 0.132], [0.414 0 0 0 0.153 0 0 0.032 0 0.203], [0 0 0 0 0 0.664 0 0 0 0], [0 0 0 0.246 0 0 0.132 0.203 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 1 5 3 4 5 6 7 5 9], [0 1 5 3 4 5 2 7 5 9], [0 1 5 3 4 5 2 7 5 6], [0 1 5 9 4 5 2 9 5 6], [7 1 5 9 7 5 2 9 5 6], [7 4 5 9 7 5 2 9 5 6], [7 4 5 9 7 5 2 9 5 6], [7 4 5 9 7 5 2 9 5 6], [7 4 5 9 7 5 2 9 5 6] | [7 4 5 9 7 5 2 9 5 6]
| mst_prim |
activity_selector:
s: [0.677 0.483 0.637 0.631 0.937 0.355 0.501 0.476 0.255 0.135], f: [0.997 0.748 0.794 0.933 0.943 0.757 0.816 0.518 0.391 0.463], initial_trace: [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 1 0], [0 0 0 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 1 1 0], [0 0 1 0 0 0 0 1 1 0], [0 0 1 0 0 0 0 1 1 0], [0 0 1 0 0 0 0 1 1 0], [0 0 1 0 1 0 0 1 1 0] | [0 0 1 0 1 0 0 1 1 0]
| activity_selector |
floyd_warshall:
A: [[0.114 0 0 0 0], [0 0.305 0 0 0], [0 0 0.492 0.787 0], [0 0 0.787 0.542 0], [0 0 0 0 0]], initial_trace: [[0 0 0 0 0], [1 1 1 1 1], [2 2 2 2 2], [3 3 3 3 3], [4 4 4 4 4]]
trace | Pi:
| [[0 0 0 0 0], [1 1 1 1 1], [2 2 2 2 2], [3 3 3 3 3], [4 4 4 4 4]], [[0 0 0 0 0], [1 1 1 1 1], [2 2 2 2 2], [3 3 3 3 3], [4 4 4 4 4]], [[0 0 0 0 0], [1 1 1 1 1], [2 2 2 2 2], [3 3 3 3 3], [4 4 4 4 4]] | [[0 0 0 0 0], [1 1 1 1 1], [2 2 2 2 2], [3 3 3 3 3], [4 4 4 4 4]]
| floyd_warshall |
dijkstra:
s: 7, A: [[0 0 0 0.283 0.312 0 0 0.603 0 0.721 0 0 0 0 0 0 0 0.508 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0.525 0 0 0 0 0], [0 0 0.334 0 0 0.063 0.083 0 0 0.512 0 0 0 0.621 0.51 0.118 0 0 0], [0.283 0 0 0 0 0 0 0.754 0.172 0.782 0.27 0 0 0.196 0.596 0 0.351 0 0], [0.312 0 0 0 0.396 0 0 0 0.058 0 0.63 0 0.311 0.555 0 0 0 0 0.324], [0 0 0.063 0 0 0.856 0.518 0.282 0 0 0 0 0 0 0.376 0 0 0.795 0], [0 0 0.083 0 0 0.518 0.145 0.448 0 0 0 0 0.041 0 0 0 0 0.156 0], [0.603 0 0 0.754 0 0.282 0.448 0 0.696 0 0 0 0 0.329 0.369 0.434 0 0 0], [0 0 0 0.172 0.058 0 0 0.696 0.923 0 0 0.54 0 0 0 0 0.664 0 0], [0.721 0 0.512 0.782 0 0 0 0 0 0 0 0.41 0 0 0 0 0 0 0.224], [0 0 0 0.27 0.63 0 0 0 0 0 0 0 0.261 0 0 0 0.116 0 0], [0 0 0 0 0 0 0 0 0.54 0.41 0 0.95 0.359 0 0 0 0 0.332 0], [0 0 0 0 0.311 0 0.041 0 0 0 0.261 0.359 0.54 0 0 0.364 0 0 0], [0 0.525 0.621 0.196 0.555 0 0 0.329 0 0 0 0 0 0 0 0 0 0.352 0], [0 0 0.51 0.596 0 0.376 0 0.369 0 0 0 0 0 0 0.432 0 0 0 0], [0 0 0.118 0 0 0 0 0.434 0 0 0 0 0.364 0 0 0.713 0 0.156 0], [0 0 0 0.351 0 0 0 0 0.664 0 0.116 0 0 0 0 0 0 0 0], [0.508 0 0 0 0 0.795 0.156 0 0 0 0 0.332 0 0.352 0 0.156 0 0.244 0], [0 0 0 0 0.324 0 0 0 0 0.224 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]
trace | pi:
| [7 1 2 7 4 7 7 7 7 9 10 11 12 7 7 7 16 17 18], [7 1 5 7 4 7 7 7 7 9 10 11 12 7 7 7 16 5 18], [7 13 5 13 13 7 7 7 7 9 10 11 12 7 7 7 16 13 18], [7 13 5 13 13 7 2 7 7 2 10 11 12 7 7 7 16 13 18], [7 13 5 13 13 7 2 7 7 2 10 11 12 7 7 7 16 13 18], [7 13 5 13 13 7 2 7 7 2 10 11 6 7 7 7 16 6 18], [7 13 5 13 13 7 2 7 7 2 10 11 6 7 7 7 16 6 18], [7 13 5 13 12 7 2 7 7 2 12 12 6 7 7 7 16 6 18], [7 13 5 13 12 7 2 7 7 2 12 12 6 7 7 7 3 6 18], [7 13 5 13 12 7 2 7 7 2 12 12 6 7 7 7 3 6 18], [7 13 5 13 12 7 2 7 7 2 12 12 6 7 7 7 3 6 18], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 3 6 18], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 18], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 4], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 4], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 4], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 4], [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 4] | [7 13 5 13 8 7 2 7 7 2 12 12 6 7 7 7 10 6 4]
| dijkstra |
mst_prim:
s: 4, A: [[0 0 0 0.242 0 0.453 0.644 0 0.293 0 0 0 0.323 0.846 0 0.551 0 0 0 0 0 0 0 0 0 0 0 0], [0 0.23 0 0 0 0 0 0 0 0.509 0.69 0.626 0 0 0 0 0.147 0.807 0 0 0.468 0 0 0 0.335 0 0 0], [0 0 0.212 0 0.213 0 0 0 0 0.381 0 0.465 0 0.355 0 0 0 0 0 0 0.426 0.558 0 0 0.279 0 0 0], [0.242 0 0 0 0 0 0.587 0 0.779 0.772 0.617 0 0 0 0.164 0 0.252 0 0 0.332 0 0 0 0 0.295 0 0 0.67], [0 0 0.213 0 0.071 0 0 0.882 0.519 0 0.089 0 0 0 0 0.51 0 0 0 0.739 0 0 0 0.111 0 0.583 0 0], [0.453 0 0 0 0 0 0 0 0 0 0 0 0.769 0 0 0 0 0 0 0.306 0 0.668 0.752 0 0 0 0 0.428], [0.644 0 0 0.587 0 0 0 0 0.213 0.716 0.454 0 0 0.301 0 0 0.387 0.217 0 0 0 0 0 0.749 0 0 0 0], [0 0 0 0 0.882 0 0 0.089 0 0.65 0.341 0 0 0.42 0 0 0 0 0 0.582 0 0 0.699 0 0.362 0 0 0], [0.293 0 0 0.779 0.519 0 0.213 0 0 0 0 0 0.903 0 0 0 0 0 0.833 0 0 0 0 0 0 0 0.994 0], [0 0.509 0.381 0.772 0 0 0.716 0.65 0 0.241 0 0 0 0 0 0 0 0.452 0.249 0 0.752 0 0.446 0 0.207 0 0 0], [0 0.69 0 0.617 0.089 0 0.454 0.341 0 0 0 0 0.617 0 0 0 0 0 0.818 0.144 0 0.427 0.086 0 0 0 0.478 0], [0 0.626 0.465 0 0 0 0 0 0 0 0 0.281 0 0 0.577 0 0 0 0 0 0 0 0.859 0 0 0 0 0], [0.323 0 0 0 0 0.769 0 0 0.903 0 0.617 0 0 0 0.375 0 0 0 0 0.181 0 0 0 0.868 0 0 0.641 0.41], [0.846 0 0.355 0 0 0 0.301 0.42 0 0 0 0 0 0.429 0.181 0.347 0 0.159 0.456 0.221 0 0 0 0.497 0.372 0 0.7 0], [0 0 0 0.164 0 0 0 0 0 0 0 0.577 0.375 0.181 0.188 0 0 0 0 0 0 0 0 0.116 0 0 0 0.302], [0.551 0 0 0 0.51 0 0 0 0 0 0 0 0 0.347 0 0.755 0.41 0 0 0 0.444 0 0.511 0 0.771 0 0 0.255], [0 0.147 0 0.252 0 0 0.387 0 0 0 0 0 0 0 0 0.41 0 0 0 0 0 0.068 0 0 0.109 0 0 0], [0 0.807 0 0 0 0 0.217 0 0 0.452 0 0 0 0.159 0 0 0 0.854 0 0.52 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.833 0.249 0.818 0 0 0.456 0 0 0 0 0.828 0.366 0 0 0 0 0 0 0 0], [0 0 0 0.332 0.739 0.306 0 0.582 0 0 0.144 0 0.181 0.221 0 0 0 0.52 0.366 0.558 0.277 0.841 0 0 0 0 0 0], [0 0.468 0.426 0 0 0 0 0 0 0.752 0 0 0 0 0 0.444 0 0 0 0.277 0.515 0.836 0 0.551 0.591 0 0 0.915], [0 0 0.558 0 0 0.668 0 0 0 0 0.427 0 0 0 0 0 0.068 0 0 0.841 0.836 0 0 0 0 0.395 0 0.231], [0 0 0 0 0 0.752 0 0.699 0 0.446 0.086 0.859 0 0 0 0.511 0 0 0 0 0 0 0.099 0 0 0 0 0], [0 0 0 0 0.111 0 0.749 0 0 0 0 0 0.868 0.497 0.116 0 0 0 0 0 0.551 0 0 0 0 0.541 0 0], [0 0.335 0.279 0.295 0 0 0 0.362 0 0.207 0 0 0 0.372 0 0.771 0.109 0 0 0 0.591 0 0 0 0.82 0 0 0.703], [0 0 0 0 0.583 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.395 0 0.541 0 0.733 0 0], [0 0 0 0 0 0 0 0 0.994 0 0.478 0 0.641 0.7 0 0 0 0 0 0 0 0 0 0 0 0 0.166 0], [0 0 0 0.67 0 0.428 0 0 0 0 0 0 0.41 0 0.302 0.255 0 0 0 0 0.915 0.231 0 0 0.703 0 0 0.27]], 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 4 3 4 5 6 4 4 9 4 11 12 13 14 4 16 17 18 4 20 21 22 4 24 4 26 27], [0 10 4 10 4 5 10 10 4 9 4 11 10 13 14 4 16 17 10 10 20 10 10 4 24 4 10 27], [0 10 4 10 4 22 10 10 4 22 4 22 10 13 14 4 16 17 10 10 20 10 10 4 24 4 10 27], [0 10 4 10 4 22 10 10 4 22 4 22 10 23 23 4 16 17 10 10 23 10 10 4 24 23 10 27], [0 10 4 14 4 22 10 10 4 22 4 14 14 14 23 4 16 17 10 10 23 10 10 4 24 23 10 14], [0 10 4 14 4 19 10 10 4 22 4 14 19 14 23 4 16 19 19 10 19 10 10 4 24 23 10 14], [3 10 4 14 4 19 10 10 4 22 4 14 19 14 23 4 3 19 19 10 19 10 10 4 3 23 10 14], [3 10 4 14 4 19 13 10 4 22 4 14 19 14 23 13 3 13 19 10 19 10 10 4 3 23 10 14], [3 10 4 14 4 19 17 10 4 22 4 14 19 14 23 13 3 13 19 10 19 10 10 4 3 23 10 14], [3 10 4 14 4 19 17 10 4 22 4 14 19 14 23 13 3 13 19 10 19 10 10 4 3 23 10 14], [3 10 4 14 4 19 17 10 4 2 4 2 19 14 23 13 3 13 19 10 19 10 10 4 2 23 10 14], [3 10 4 14 4 19 17 10 6 2 4 2 19 14 23 13 3 13 19 10 19 10 10 4 2 23 10 14], [3 10 4 14 4 19 17 10 6 2 4 2 19 14 23 13 3 13 19 10 19 10 10 4 2 23 10 14], [3 10 4 14 4 19 17 10 6 2 4 2 19 14 23 13 3 13 19 10 19 10 10 4 2 23 10 14], [3 16 4 14 4 19 17 10 6 2 4 2 19 14 23 13 3 13 19 10 19 16 10 4 16 23 10 14], [3 16 4 14 4 19 17 10 6 2 4 2 19 14 23 13 3 13 19 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 13 3 13 19 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 13 3 13 19 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 13 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21], [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21] | [3 16 4 14 4 19 17 10 6 24 4 2 19 14 23 27 3 13 9 10 19 16 10 4 16 21 10 21]
| mst_prim |
dijkstra:
s: 2, A: [[0 0.442 0.164 0.192 0 0 0.757 0 0.102 0 0 0 0 0.695 0 0 0 0 0], [0.442 0 0 0 0 0.217 0 0 0 0.313 0 0 0 0.492 0.394 0 0 0 0.747], [0.164 0 0.049 0 0 0.219 0 0.479 0.49 0 0 0 0.336 0.631 0 0 0 0.361 0], [0.192 0 0 0 0.586 0 0.322 0 0 0.671 0 0 0 0 0.262 0.607 0 0.518 0], [0 0 0 0.586 0 0 0 0 0.076 0.187 0 0.587 0 0 0 0 0.421 0.712 0], [0 0.217 0.219 0 0 0.745 0 0 0.371 0 0 0 0 0 0 0 0 0 0], [0.757 0 0 0.322 0 0 0 0.523 0 0 0.65 0 0.346 0 0 0 0.302 0.423 0], [0 0 0.479 0 0 0 0.523 0.103 0 0 0 0.701 0.071 0 0 0 0.28 0.493 0], [0.102 0 0.49 0 0.076 0.371 0 0 0.349 0 0 0 0 0 0 0 0 0 0], [0 0.313 0 0.671 0.187 0 0 0 0 0 0 0 0 0 0.835 0 0 0 0], [0 0 0 0 0 0 0.65 0 0 0 0 0.742 0 0 0 0.226 0.704 0 0.277], [0 0 0 0 0.587 0 0 0.701 0 0 0.742 0.438 0 0.333 0 0.118 0 0 0.187], [0 0 0.336 0 0 0 0.346 0.071 0 0 0 0 0 0 0 0 0.536 0 0], [0.695 0.492 0.631 0 0 0 0 0 0 0 0 0.333 0 0.301 0 0 0 0 0], [0 0.394 0 0.262 0 0 0 0 0 0.835 0 0 0 0 0.032 0.687 0 0 0.43], [0 0 0 0.607 0 0 0 0 0 0 0.226 0.118 0 0 0.687 0.517 0 0 0], [0 0 0 0 0.421 0 0.302 0.28 0 0 0.704 0 0.536 0 0 0 0.709 0 0.793], [0 0 0.361 0.518 0.712 0 0.423 0.493 0 0 0 0 0 0 0 0 0 0 0.492], [0 0.747 0 0 0 0 0 0 0 0 0.277 0.187 0 0 0.43 0 0.793 0.492 0.053]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
trace | pi:
| [2 1 2 3 4 2 6 2 2 9 10 11 2 2 14 15 16 2 18], [2 0 2 0 4 2 0 2 0 9 10 11 2 2 14 15 16 2 18], [2 5 2 0 4 2 0 2 0 9 10 11 2 2 14 15 16 2 18], [2 5 2 0 8 2 0 2 0 9 10 11 2 2 14 15 16 2 18], [2 5 2 0 8 2 12 12 0 9 10 11 2 2 14 15 12 2 18], [2 5 2 0 8 2 12 12 0 4 10 4 2 2 14 15 4 2 18], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 4 2 18], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 4 2 17], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 10 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 6 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 6 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 18 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 18 4 2 2 3 3 7 2 17], [2 5 2 0 8 2 3 12 0 4 18 4 2 2 3 3 7 2 17] | [2 5 2 0 8 2 3 12 0 4 18 4 2 2 3 3 7 2 17]
| dijkstra |
optimal_bst:
p: [0.161 0.166 0.099 0.035 0], q: [0.001 0.14 0.16 0.174 0.065], 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 |
naive_string_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [0 3 3 1 3 2 2 0 1 0 3 2 2 2 0], initial_trace: 0
trace | s:
| 1, 2, 3, 4, 5, 5 | 5
| naive_string_matcher |
mst_prim:
s: 0, A: [[0 0 0 0.462 0], [0 0 0 0.361 0.844], [0 0 0 0 0], [0.462 0.361 0 0.647 0], [0 0.844 0 0 0]], initial_trace: [0 1 2 3 4]
trace | pi:
| [0 1 2 0 4], [0 3 2 0 4], [0 3 2 0 1] | [0 3 2 0 1]
| mst_prim |
dijkstra:
s: 4, A: [[0 0 0 0 0.291 0 0 0 0 0], [0 0 0.597 0 0.256 0 0 0.204 0 0], [0 0.597 0.624 0 0 0 0 0.651 0 0], [0 0 0 0 0 0 0 0 0 0], [0.291 0.256 0 0 0 0 0 0 0 0.454], [0 0 0 0 0 0.035 0 0.415 0 0], [0 0 0 0 0 0 0.728 0.31 0.115 0.574], [0 0.204 0.651 0 0 0.415 0.31 0 0 0], [0 0 0 0 0 0 0.115 0 0.608 0], [0 0 0 0 0.454 0 0.574 0 0 0.198]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [4 4 2 3 4 5 6 7 8 4], [4 4 1 3 4 5 6 1 8 4], [4 4 1 3 4 5 6 1 8 4], [4 4 1 3 4 5 9 1 8 4], [4 4 1 3 4 7 7 1 8 4], [4 4 1 3 4 7 7 1 6 4], [4 4 1 3 4 7 7 1 6 4], [4 4 1 3 4 7 7 1 6 4] | [4 4 1 3 4 7 7 1 6 4]
| dijkstra |
find_maximum_subarray_kadane:
key: [0.231 -0.333 -0.01 0.531 0.544], initial_trace: (0, 0)
trace | (best_low, best_high):
| (0, 0), (0, 0), (3, 3) | (3, 4)
| find_maximum_subarray_kadane |
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: [3 2 3 2 2 0 2 2 3 0 2 0 0 1 3 2 0 0 1 3 1 0 3 3 2 2 0 2], initial_trace: 0
trace | s:
| 0, 0, 1, 2, 2, 2, 2 | 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 1 1 1 1 1], key: [2 3 1 2 1 0 0 1 2 0 3 1 3 0 0 3 3 2 3 3 0 1 2 2 3 3 0 1], initial_trace: 0
trace | s:
| 0, 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, 17 | 17
| naive_string_matcher |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [3 0 2 3 1 2 1 0 3 2 3 3 3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1 0 0 1 0 1 0 0 0 0 1 1 1 0 0 1], [0 0 0 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 1 1 1 1 1 1 0 1 1 0 1 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], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 14, [0 14 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 1, [0 14 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 1, [0 14 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 1, [0 14 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], 1, [0 14 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 18 19 20 21 22], 17, [0 14 2 3 17 5 6 7 8 9 10 11 12 13 14 15 16 1 18 19 20 21 22], 4, [0 14 2 3 17 5 6 7 8 9 10 11 12 13 14 15 16 1 18 19 20 21 22], 4, [0 14 2 3 17 5 6 7 4 9 10 11 12 13 14 15 16 1 18 19 20 21 22], 8, [0 14 2 3 17 5 6 7 4 9 10 11 12 13 14 15 16 1 18 19 20 21 22], 8, [0 14 2 3 17 5 6 7 4 9 10 11 12 13 14 15 16 1 18 19 20 21 22], 8, [0 14 2 3 17 5 6 7 4 8 10 11 12 13 14 15 16 1 18 19 20 21 22], 9, [0 14 2 3 17 5 6 7 4 8 10 11 12 13 14 15 16 1 18 19 20 21 22], 9, [0 14 2 3 17 5 6 7 4 8 10 11 12 13 14 15 16 1 18 19 20 9 22], 21, [0 14 2 3 17 5 6 7 4 8 10 11 21 13 14 15 16 1 18 19 20 9 22], 12, [0 14 2 3 17 5 6 7 4 8 10 11 21 13 14 15 16 1 18 19 20 9 22], 12, [0 14 2 3 17 5 6 7 4 8 10 11 21 13 14 15 16 1 12 19 20 9 22], 18, [0 14 2 3 17 18 6 7 4 8 10 11 21 13 14 15 16 1 12 19 20 9 22], 5, [0 14 2 3 17 18 6 7 4 8 10 11 21 13 14 15 16 1 12 19 20 9 22], 5, [0 14 2 3 17 18 6 5 4 8 10 11 21 13 14 15 16 1 12 19 20 9 22], 7, [0 14 2 3 17 18 6 5 4 8 10 11 21 13 14 15 16 1 12 19 20 9 22], 7, [0 14 2 3 17 18 6 5 4 8 7 11 21 13 14 15 16 1 12 19 20 9 22], 10, [0 14 2 3 17 18 6 5 4 8 7 11 21 13 14 15 16 1 12 19 20 9 22], 10, [0 14 2 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 15, [15 14 2 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 0, [15 14 2 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 0, [15 14 2 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 0, [15 14 0 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 2, [15 14 0 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 2, [15 14 0 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 2, [15 14 0 3 17 18 6 5 4 8 7 11 21 13 14 10 16 1 12 19 20 9 22], 2, [15 14 0 3 17 18 6 5 4 8 7 11 21 2 14 10 16 1 12 19 20 9 22], 13, [15 14 0 3 17 18 6 5 4 8 7 11 21 2 14 10 16 1 12 19 20 9 22], 13, [15 14 0 3 17 18 6 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 19, [15 14 0 19 17 18 6 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 3, [15 14 0 19 17 18 6 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 3, [15 14 0 19 17 18 6 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 3, [15 14 0 19 17 18 3 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 6, [15 14 0 19 17 18 3 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 6, [15 14 0 19 17 18 3 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 6, [15 14 0 19 17 18 3 5 4 8 7 11 21 2 14 10 16 1 12 13 20 9 22], 6, [15 14 0 19 17 18 3 5 4 8 7 11 21 2 14 10 6 1 12 13 20 9 22], 16, [15 14 0 19 17 18 3 5 4 8 7 16 21 2 14 10 6 1 12 13 20 9 22], 11, [15 14 0 19 17 18 3 5 4 8 7 16 21 2 14 10 6 1 12 13 20 9 22], 11, [15 14 0 19 17 18 3 5 4 8 7 16 21 2 14 10 6 1 12 13 20 9 22], 11, [15 14 0 19 17 18 3 5 4 8 7 16 21 2 14 10 6 1 12 13 20 9 22], 11, [15 14 0 19 17 18 3 5 4 8 7 16 21 2 14 10 6 1 12 13 20 9 11], 22 | [15 14 0 19 17 18 3 5 4 8 7 16 21 2 14 10 6 1 12 13 22 9 11], 20
| topological_sort |
binary_search:
key: [0.035 0.094 0.384 0.421 0.459 0.52 0.553 0.646 0.848 0.866], target: 0.668, initial_trace: (0, 9)
trace | (low, high):
| (5, 9), (8, 9) | (8, 8)
| binary_search |
kmp_matcher:
string: [0 0 0 0 1], key: [3 0 0 0 3], initial_trace: 0
trace | s:
| | 0
| kmp_matcher |
dag_shortest_paths:
s: 1, A: [[0 0.201 0 0 0.175 0 0 0 0.711 0 0 0 0 0 0], [0 0 0 0 0 0 0.648 0.27 0 0 0 0.731 0 0 0], [0 0.71 0 0 0 0 0 0.126 0 0 0.479 0 0 0 0], [0 0 0.637 0 0 0 0.0469 0 0.0253 0 0.124 0.255 0.871 0 0], [0 0 0 0 0 0 0.101 0 0 0 0 0.946 0 0 0], [0 0.913 0.416 0.191 0 0 0 0 0.455 0 0.0207 0 0.984 0 0.383], [0 0 0 0 0 0 0 0.0274 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0.427 0 0 0.42 0 0 0.612 0 0 0 0 0 0 0], [0 0 0.25 0 0.0132 0 0.759 0.985 0 0 0.585 0 0 0 0], [0 0.83 0 0 0 0 0.964 0.108 0.69 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.994 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0.187 0.0736 0 0 0], [0.272 0 0.766 0 0 0 0 0 0 0 0 0.804 0 0 0], [0.237 0.916 0.39 0 0 0 0.833 0.272 0 0 0.89 0 0 0.517 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 1 1 8 9 10 1 12 13 14], [0 1 2 3 4 5 1 1 8 9 10 1 12 13 14] | [0 1 2 3 4 5 1 1 8 9 10 1 12 13 14]
| dag_shortest_paths |
topological_sort:
A: [[0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 1 0 0 1 1 0 1 0 0 1 0 0 0], [0 1 1 0 0 0 1 0 0 0 0 1 0 0 0], [1 1 1 0 1 0 1 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 1 1 0 1 0 0 0 1 0 0 0 0 0], [1 1 0 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 1 0 1 0 0 0 0 1 0], [1 0 0 0 1 1 1 0 1 0 0 1 1 1 0], [0 1 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 1 0 0 1 1 0 0 1 0 0 1 0 1 0], [0 0 1 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 1 1 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], 1, [0 1 2 3 4 5 1 7 8 9 10 11 12 13 14], 6, [6 1 2 3 4 5 1 7 8 9 10 11 12 13 14], 0, [6 1 2 3 4 5 1 7 8 9 10 11 12 13 14], 0, [6 1 2 3 4 5 1 7 8 9 10 11 12 13 14], 0, [6 1 0 3 4 5 1 7 8 9 10 11 12 13 14], 2, [6 1 0 3 4 5 1 7 8 9 10 11 12 13 14], 2, [6 1 0 3 4 5 1 7 8 9 10 11 12 13 14], 2, [6 1 0 3 4 5 1 7 8 9 10 11 12 13 14], 2, [6 1 0 3 4 5 1 7 8 9 10 11 12 13 14], 2, [6 1 0 3 4 5 1 7 8 9 10 11 12 13 14], 2, [6 1 0 3 4 5 1 7 8 9 10 2 12 13 14], 11, [6 1 0 3 11 5 1 7 8 9 10 2 12 13 14], 4, [6 1 0 3 11 4 1 7 8 9 10 2 12 13 14], 5, [6 1 0 3 11 4 1 7 8 9 10 2 12 13 14], 5, [6 1 0 3 11 4 1 7 5 9 10 2 12 13 14], 8, [6 1 0 8 11 4 1 7 5 9 10 2 12 13 14], 3, [6 1 0 8 11 4 1 7 5 9 10 2 12 13 14], 3, [6 1 0 8 11 4 1 7 5 9 10 2 12 13 14], 3, [6 1 0 8 11 4 1 7 5 9 10 2 12 13 14], 3, [6 1 0 8 11 4 1 7 5 9 10 2 12 13 14], 3, [6 1 0 8 11 4 1 7 5 9 10 2 12 3 14], 13, [6 1 0 8 11 4 1 7 5 13 10 2 12 3 14], 9, [6 1 0 8 11 4 1 9 5 13 10 2 12 3 14], 7, [6 1 0 8 11 4 1 9 5 13 10 2 12 3 14], 7, [6 1 0 8 11 4 1 9 5 13 10 2 12 3 14], 7, [6 1 0 8 11 4 1 9 5 13 10 2 12 3 14], 7, [6 1 0 8 11 4 1 9 5 13 10 2 7 3 14], 12, [6 1 0 8 11 4 1 9 5 13 12 2 7 3 14], 10, [6 1 0 8 11 4 1 9 5 13 12 2 7 3 14], 10, [6 1 0 8 11 4 1 9 5 13 12 2 7 3 14], 10 | [6 1 0 8 11 4 1 9 5 13 12 2 7 3 10], 14
| topological_sort |
insertion_sort:
key: [0.735 0.094 0.196 0.771 0.408 0.356 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], initial_trace: [0.735 0.094 0.196 0.771 0.408 0.356 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615]
trace | pred:
| [0.094 0.735 0.196 0.771 0.408 0.356 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.735 0.771 0.408 0.356 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.735 0.771 0.408 0.356 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.408 0.735 0.771 0.356 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.356 0.408 0.735 0.771 0.197 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.197 0.356 0.408 0.735 0.771 0.467 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.901 0.18 0.989 0.811 0.825 0.615], [0.094 0.18 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.901 0.989 0.811 0.825 0.615], [0.094 0.18 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.901 0.989 0.811 0.825 0.615], [0.094 0.18 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.811 0.901 0.989 0.825 0.615], [0.094 0.18 0.196 0.197 0.356 0.408 0.467 0.735 0.771 0.8 0.811 0.825 0.901 0.989 0.615] | [0.094 0.18 0.196 0.197 0.356 0.408 0.467 0.615 0.735 0.771 0.8 0.811 0.825 0.901 0.989]
| insertion_sort |
activity_selector:
s: [0.147 0.015 0.415 0.148 0.469 0.46 0.63 0.294 0.197 0.909 0.457], f: [0.767 0.098 0.671 0.166 0.729 0.904 0.83 0.732 0.836 0.973 0.786], initial_trace: [0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 1 0 0 0 0 0 0 0 0 0], [0 1 0 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 0 0] | [0 1 1 1 0 0 0 0 0 1 0]
| activity_selector |
bfs:
s: 7, A: [[0 0 0 0 1 0 0 0 0 0 1 0], [0 0 1 1 0 0 0 0 0 0 0 1], [0 1 1 1 0 0 1 0 0 0 1 1], [0 1 1 1 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 1 0 0 0 1 0], [0 0 0 0 0 1 0 1 0 0 1 1], [0 0 1 0 1 0 1 0 1 0 0 0], [0 0 0 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 1 0 1 0 1 0], [0 0 0 0 0 0 0 0 0 1 0 1], [1 0 1 0 1 1 0 0 1 0 1 0], [0 1 1 0 0 1 0 0 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11]
trace | pi:
| [0 1 2 3 4 7 6 7 8 9 10 11], [0 1 2 3 4 7 6 7 8 9 5 5], [10 11 10 3 10 7 6 7 10 11 5 5] | [10 11 10 1 10 7 2 7 10 11 5 5]
| bfs |
segments_intersect:
x: [0.061 0.677 0.828 0.021], y: [0.024 0.129 0.313 0.67]
intersect:
| 0
| segments_intersect |
bellman_ford:
s: 7, A: [[0 0 0.849 0 0 0 0 0.185 0 0 0 0], [0 0.76 0.317 0.338 0 0 0 0 0 0.837 0.62 0], [0.849 0.317 0.322 0 0 0 0 0 0 0 0 0], [0 0.338 0 0 0 0 0 0 0 0.373 0.427 0.331], [0 0 0 0 0 0.588 0 0 0 0 0 0], [0 0 0 0 0.588 0.314 0 0.381 0 0 0 0.268], [0 0 0 0 0 0 0.048 0 0 0 0 0.319], [0.185 0 0 0 0 0.381 0 0.337 0 0 0 0.464], [0 0 0 0 0 0 0 0 0 0 0.68 0], [0 0.837 0 0.373 0 0 0 0 0 0 0 0], [0 0.62 0 0.427 0 0 0 0 0.68 0 0 0], [0 0 0 0.331 0 0.268 0.319 0.464 0 0 0 0.9]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11]
trace | pi:
| [7 1 2 3 4 7 6 7 8 9 10 7], [7 1 0 11 5 7 11 7 8 9 10 7], [7 3 0 11 5 7 11 7 8 3 3 7] | [7 3 0 11 5 7 11 7 10 3 3 7]
| bellman_ford |
bfs:
s: 6, A: [[0 0 0 1 0 0 0 1 0 1], [0 0 1 0 0 1 0 1 0 1], [0 1 1 0 0 1 1 1 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 0 1 0 0 0 0], [0 0 1 0 0 0 1 1 1 0], [1 1 1 0 0 0 1 1 1 1], [0 0 0 0 0 0 1 1 1 0], [1 1 1 0 0 0 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 1 6 3 4 5 6 6 6 9], [7 2 6 3 4 2 6 6 6 2] | [7 2 6 0 4 2 6 6 6 2]
| bfs |
dijkstra:
s: 11, A: [[0 0 0.411 0 0.454 0 0 0.133 0 0 0 0], [0 0 0.786 0 0 0 0 0 0.168 0 0 0], [0.411 0.786 0.386 0 0 0 0 0 0.853 0 0.579 0], [0 0 0 0.737 0 0.794 0 0 0 0 0 0], [0.454 0 0 0 0 0 0.455 0 0 0 0 0], [0 0 0 0.794 0 0.603 0 0 0 0 0 0], [0 0 0 0 0.455 0 0 0 0 0.565 0.447 0], [0.133 0 0 0 0 0 0 0 0 0 0 0], [0 0.168 0.853 0 0 0 0 0 0 0.244 0 0], [0 0 0 0 0 0 0.565 0 0.244 0 0 0.054], [0 0 0.579 0 0 0 0.447 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.054 0 0.774]], 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 11 10 11], [0 1 2 3 4 5 9 7 9 11 10 11], [0 8 8 3 4 5 9 7 9 11 10 11], [0 8 8 3 4 5 9 7 9 11 10 11], [0 8 8 3 6 5 9 7 9 11 6 11], [0 8 8 3 6 5 9 7 9 11 6 11], [4 8 8 3 6 5 9 7 9 11 6 11], [4 8 8 3 6 5 9 7 9 11 6 11], [4 8 8 3 6 5 9 0 9 11 6 11] | [4 8 8 3 6 5 9 0 9 11 6 11]
| dijkstra |
binary_search:
key: [0.107 0.231 0.337 0.654 0.747 0.828 0.831 0.906 0.911 0.942 0.995], target: 0.137, initial_trace: (0, 10)
trace | (low, high):
| (0, 5), (0, 2), (0, 1) | (1, 1)
| binary_search |
task_scheduling:
d: [27 2 28 25 1 3 6 13 2 25 20 26 15 5 10 11 14 3 11 28 14 29 5 5 29 20 8 2 8 31 2], w: [0.074 0.755 0.979 0.875 0.468 0.31 0.862 0.243 0.136 0.059 0.338 0.389 0.977 0.859 0.919 0.861 0.375 0.631 0.6 0.092 0.554 0.733 0.756 0.364 0.695 0.747 0.784 0.382 0.888 0.441 0.167], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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 0 0 0 0 1 0 0], [0 0 1 1 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0], [0 0 1 1 0 0 1 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 0 1 1 0 0 1 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 0 1 1 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0], [0 0 1 1 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 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 1 1 0 0 1 0 0 0 1 1 1 0 1 1 0 0 0 0 1 1 0 0 1 1 1 0 1 1 0], [0 0 1 1 0 0 1 0 0 0 1 1 1 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 1 1 0], [1 0 1 1 0 0 1 0 0 0 1 1 1 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 1 1 0] | [1 0 1 1 0 0 1 0 0 1 1 1 1 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 1 1 0]
| task_scheduling |
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: [2 2 1 2 3 3 2 3 3 0 1 1 3 0 1 1 1 3 2 2 2 3 3 1 1 3 2 2], initial_trace: 0
trace | s:
| 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 11, 12, 13, 14, 14, 14, 15, 15, 15, 15 | 15
| naive_string_matcher |
quickselect:
key: [0.527 0.119 0.772 0.362 0.455 0.727 0.757 0.167 0.29 0.678], initial_trace: 9
trace | pivot:
| 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 3, 3, 3, 4, 4 | 0
| quickselect |
graham_scan:
x: [0.437 -1.91 1.82 -0.826 -0.059 -0.003 1.67 1.74 -0.353 -0.374 -0.807 -0.428 1.98 -1.91 1.67], y: [-0.957 0.336 0.275 1.63 -0.768 -0.203 -1.07 0.881 0.869 0.435 -1.38 -0.596 -0.107 0.009 0.469], 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 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 0 0 0 1 0 0 0 0], [1 0 0 0 0 0 1 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 1 0 0 0 1 0 1 0 0], [0 0 1 0 0 0 1 0 0 0 1 0 1 0 0], [0 0 1 0 0 0 1 0 0 0 1 0 1 0 1], [0 0 1 0 1 0 1 0 0 0 1 0 1 0 1], [0 0 1 0 0 0 1 0 0 0 1 0 1 0 1], [0 0 1 0 0 0 1 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 1 0 0], [0 0 0 0 0 1 1 1 0 0 1 0 1 0 0], [0 0 0 0 0 1 1 1 0 0 1 1 1 0 0], [0 0 0 0 0 1 1 1 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 1 0 1 1 0 1 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 1 0 0], [0 0 0 0 0 0 1 1 1 0 1 0 1 0 0], [0 0 0 0 0 0 1 1 0 0 1 0 1 0 0], [0 0 0 1 0 0 1 1 0 0 1 0 1 0 0], [0 1 0 1 0 0 1 1 0 0 1 0 1 0 0] | [0 1 0 1 0 0 1 1 0 0 1 0 1 1 0]
| graham_scan |
graham_scan:
x: [-0.932 -0.393 -0.77 -1.59 0.219 0.829 1.29 0.925 -1.56 0.004 0.58 -0.55 1.23 1.2 0.447 -0.77 1.68 -0.04 -1.14 0.284 1.22 0.302 -0.438], y: [-0.664 -1.23 -0.563 0.573 0.58 0.074 0.155 -1.26 1.02 -1.74 0.491 -0.231 -1.43 1 0.411 -0.839 -0.19 1.25 -1.29 1.56 -1.04 -0.788 0.719], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
trace | in_hull:
| [0 0 0 0 0 0 0 0 0 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 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0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 1 0 1 0 0 1], [0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 1 0 1 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 1 0 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 1 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [1 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0] | [0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 0 0]
| graham_scan |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1], key: [0 2 0 0 0 1 1 3 0 1 0 2 0 0 0 1 2 1 2 2 1 1 0 0 0 0 1 2], initial_trace: 0
trace | s:
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9, 10, 11 | 12
| kmp_matcher |
graham_scan:
x: [0.471 -1.27 1.82 1.13 -0.185 -0.673 0.261 1 -1.03 -0.312 1.61 -1.06 0.195 0.257 0.018 -1.15 0.105 -0.644 0.375 -0.753 0.263 0.971 0.341], y: [-0.073 0.023 0.138 1.5 1.9 -1.1 1.35 -1.53 1.1 0.325 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 0 0.582 0 0 0 0 0.0911 0 0], [0 0.582 0 0 0 0 0 0 0 0], [0 0 0 0.218 0 0 0 0 0 0], [0 0 0 0 0.131 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.0449], [0 0.0911 0 0 0 0 0 0.667 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.0449 0 0 0]], initial_trace: [[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]]
trace | in_mst:
| [[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]], [[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 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 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 1], [0 0 0 0 0 0 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 0 1 0 1 0 0 1], [0 0 0 0 1 1 0 1 0 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 1 0 0 1 1 0 0 0 1 0], [0 1 1 1 0 0 1 0 0 1 0], [0 0 0 0 0 0 0 1 1 0 0], [0 0 0 0 1 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | pi:
| [2 1 2 3 4 5 6 7 2 9 10], [2 8 2 0 4 5 8 7 2 8 10], [2 8 2 0 1 5 8 1 2 8 10] | [2 8 2 0 1 4 8 1 2 8 4]
| bfs |
segments_intersect:
x: [0.4 0.193 0.193 0.694], y: [0.656 0.995 0.92 0.73]
intersect:
| 1
| segments_intersect |
bellman_ford:
s: 0, A: [[0 0.191 0 0 0 0 0 0.275 0.785 0.396 0 0 0 0 0 0 0 0.059 0.084 0 0.131 0 0 0 0.524 0.571 0 0], [0.191 0 0 0.092 0 0 0 0 0 0.635 0.701 0 0 0 0 0 0 0 0.331 0.2 0 0 0 0 0 0.475 0.612 0], [0 0 0.938 0 0.885 0.084 0 0 0.349 0 0 0.238 0.289 0 0 0 0 0 0.823 0.689 0.272 0 0 0 0.142 0 0 0.203], [0 0.092 0 0 0.506 0 0 0 0 0 0 0 0.173 0.434 0 0 0 0 0.221 0.417 0 0 0.24 0 0 0 0 0], [0 0 0.885 0.506 0.787 0 0 0 0 0 0 0 0 0 0 0 0.442 0 0 0 0 0 0.664 0 0 0 0 0], [0 0 0.084 0 0 0.518 0.248 0 0.582 0 0.429 0.067 0 0 0.706 0 0.554 0 0.424 0 0 0.479 0 0.212 0 0.783 0 0], [0 0 0 0 0 0.248 0.151 0 0 0 0.946 0 0.624 0.358 0 0.142 0 0.573 0 0 0 0 0 0.64 0 0 0 0], [0.275 0 0 0 0 0 0 0.418 0 0 0 0 0 0 0.458 0 0 0 0 0 0 0.334 0.25 0 0 0 0.561 0], [0.785 0 0.349 0 0 0.582 0 0 0.722 0 0 0.588 0 0.906 0.468 0 0.052 0 0.527 0 0 0 0 0.397 0.068 0 0 0], [0.396 0.635 0 0 0 0 0 0 0 0 0.526 0 0 0 0 0 0 0.398 0 0 0 0.498 0.769 0 0 0 0 0.315], [0 0.701 0 0 0 0.429 0.946 0 0 0.526 0 0 0.618 0 0 0.642 0.688 0 0.487 0 0.218 0 0 0 0 0 0 0.081], [0 0 0.238 0 0 0.067 0 0 0.588 0 0 0.781 0.26 0.689 0 0 0 0 0.053 0 0 0 0 0 0 0 0.444 0], [0 0 0.289 0.173 0 0 0.624 0 0 0 0.618 0.26 0.281 0 0 0 0 0 0 0 0 0 0 0.417 0 0 0 0], [0 0 0 0.434 0 0 0.358 0 0.906 0 0 0.689 0 0.631 0 0.681 0 0 0 0 0 0 0.378 0 0 0.316 0 0], [0 0 0 0 0 0.706 0 0.458 0.468 0 0 0 0 0 0 0 0.724 0 0 0 0 0 0 0.155 0 0 0 0], [0 0 0 0 0 0 0.142 0 0 0 0.642 0 0 0.681 0 0 0 0 0 0 0 0 0 0 0 0.24 0.274 0], [0 0 0 0 0.442 0.554 0 0 0.052 0 0.688 0 0 0 0.724 0 0.244 0.71 0 0 0 0.684 0 0 0.621 0 0.296 0], [0.059 0 0 0 0 0 0.573 0 0 0.398 0 0 0 0 0 0 0.71 0 0 0 0 0 0 0 0 0.391 0.202 0], [0.084 0.331 0.823 0.221 0 0.424 0 0 0.527 0 0.487 0.053 0 0 0 0 0 0 0.474 0 0 0.673 0 0 0 0 0.504 0], [0 0.2 0.689 0.417 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3], [0.131 0 0.272 0 0 0 0 0 0 0 0.218 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.688 0], [0 0 0 0 0 0.479 0 0.334 0 0.498 0 0 0 0 0 0 0.684 0 0.673 0 0 0 0 0.792 0 0 0 0], [0 0 0 0.24 0.664 0 0 0.25 0 0.769 0 0 0 0.378 0 0 0 0 0 0 0 0 0 0.447 0 0.469 0.811 0.679], [0 0 0 0 0 0.212 0.64 0 0.397 0 0 0 0.417 0 0.155 0 0 0 0 0 0 0.792 0.447 0.228 0 0 0.398 0], [0.524 0 0.142 0 0 0 0 0 0.068 0 0 0 0 0 0 0 0.621 0 0 0 0 0 0 0 0.561 0 0 0], [0.571 0.475 0 0 0 0.783 0 0 0 0 0 0 0 0.316 0 0.24 0 0.391 0 0 0 0 0.469 0 0 0 0 0], [0 0.612 0 0 0 0 0 0.561 0 0 0 0.444 0 0 0 0.274 0.296 0.202 0.504 0 0.688 0 0.811 0.398 0 0 0 0], [0 0 0.203 0 0 0 0 0 0 0.315 0.081 0 0 0 0 0 0 0 0 0.3 0 0 0.679 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 0 2 3 4 5 6 0 0 0 10 11 12 13 14 15 16 0 0 19 0 21 22 23 0 0 26 27], [0 0 20 1 4 18 17 0 24 0 20 18 12 25 7 25 17 0 0 1 0 7 7 8 0 17 17 9], [0 0 11 1 3 11 17 0 24 0 20 18 11 3 7 26 26 0 0 1 0 7 3 26 0 17 17 10], [0 0 5 1 3 11 5 0 24 0 20 18 11 3 7 26 26 0 0 1 0 7 3 5 2 17 17 10], [0 0 5 1 3 11 5 0 24 0 20 18 11 3 23 26 26 0 0 1 0 7 3 5 2 17 17 10], [0 0 5 1 3 11 5 0 24 0 20 18 11 3 23 26 26 0 0 1 0 7 3 5 2 17 17 10] | [0 0 5 1 3 11 5 0 24 0 20 18 11 3 23 26 8 0 0 1 0 7 3 5 2 17 17 10]
| bellman_ford |
bubble_sort:
key: [0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.028 0.532], initial_trace: [0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.028 0.532]
trace | pred:
| [0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.028 0.532], [0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.028 0.446 0.532], [0.539 0.323 0.14 0.836 0.56 0.803 0.028 0.139 0.446 0.532], [0.539 0.323 0.14 0.836 0.56 0.028 0.803 0.139 0.446 0.532], [0.539 0.323 0.14 0.836 0.028 0.56 0.803 0.139 0.446 0.532], [0.539 0.323 0.14 0.028 0.836 0.56 0.803 0.139 0.446 0.532], [0.539 0.323 0.028 0.14 0.836 0.56 0.803 0.139 0.446 0.532], [0.539 0.028 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.532], [0.028 0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.532], [0.028 0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.532], [0.028 0.539 0.323 0.14 0.836 0.56 0.803 0.139 0.446 0.532], [0.028 0.539 0.323 0.14 0.836 0.56 0.139 0.803 0.446 0.532], [0.028 0.539 0.323 0.14 0.836 0.139 0.56 0.803 0.446 0.532], [0.028 0.539 0.323 0.14 0.139 0.836 0.56 0.803 0.446 0.532], [0.028 0.539 0.323 0.139 0.14 0.836 0.56 0.803 0.446 0.532], [0.028 0.539 0.139 0.323 0.14 0.836 0.56 0.803 0.446 0.532], [0.028 0.139 0.539 0.323 0.14 0.836 0.56 0.803 0.446 0.532], [0.028 0.139 0.539 0.323 0.14 0.836 0.56 0.803 0.446 0.532], [0.028 0.139 0.539 0.323 0.14 0.836 0.56 0.446 0.803 0.532], [0.028 0.139 0.539 0.323 0.14 0.836 0.446 0.56 0.803 0.532], [0.028 0.139 0.539 0.323 0.14 0.446 0.836 0.56 0.803 0.532], [0.028 0.139 0.539 0.323 0.14 0.446 0.836 0.56 0.803 0.532], [0.028 0.139 0.539 0.14 0.323 0.446 0.836 0.56 0.803 0.532], [0.028 0.139 0.14 0.539 0.323 0.446 0.836 0.56 0.803 0.532], [0.028 0.139 0.14 0.539 0.323 0.446 0.836 0.56 0.532 0.803], [0.028 0.139 0.14 0.539 0.323 0.446 0.836 0.532 0.56 0.803], [0.028 0.139 0.14 0.539 0.323 0.446 0.532 0.836 0.56 0.803], [0.028 0.139 0.14 0.539 0.323 0.446 0.532 0.836 0.56 0.803], [0.028 0.139 0.14 0.539 0.323 0.446 0.532 0.836 0.56 0.803], [0.028 0.139 0.14 0.323 0.539 0.446 0.532 0.836 0.56 0.803], [0.028 0.139 0.14 0.323 0.539 0.446 0.532 0.836 0.56 0.803], [0.028 0.139 0.14 0.323 0.539 0.446 0.532 0.56 0.836 0.803], [0.028 0.139 0.14 0.323 0.539 0.446 0.532 0.56 0.836 0.803], [0.028 0.139 0.14 0.323 0.539 0.446 0.532 0.56 0.836 0.803], [0.028 0.139 0.14 0.323 0.446 0.539 0.532 0.56 0.836 0.803], [0.028 0.139 0.14 0.323 0.446 0.539 0.532 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.539 0.532 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.539 0.532 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836], [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836] | [0.028 0.139 0.14 0.323 0.446 0.532 0.539 0.56 0.803 0.836]
| bubble_sort |
mst_kruskal:
A: [[0 0 0 0], [0 0 0 0], [0 0 0 0.254], [0 0 0.254 0.473]], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]]
trace | in_mst:
| [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] | [[0 0 0 0], [0 0 0 0], [0 0 0 1], [0 0 1 0]]
| mst_kruskal |
insertion_sort:
key: [0.163 0.357 0.536 0.291 0.904 0.614 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], initial_trace: [0.163 0.357 0.536 0.291 0.904 0.614 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837]
trace | pred:
| [0.163 0.357 0.536 0.291 0.904 0.614 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.357 0.536 0.291 0.904 0.614 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.536 0.904 0.614 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.536 0.904 0.614 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.536 0.614 0.904 0.814 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.536 0.614 0.814 0.904 0.37 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.536 0.614 0.814 0.904 0.755 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.536 0.614 0.755 0.814 0.904 0.402 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.402 0.536 0.614 0.755 0.814 0.904 0.394 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.536 0.614 0.755 0.814 0.904 0.532 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.614 0.755 0.814 0.904 0.573 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.755 0.814 0.904 0.614 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.614 0.755 0.814 0.904 0.818 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.614 0.755 0.814 0.818 0.904 0.764 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.614 0.755 0.764 0.814 0.818 0.904 0.719 0.026 0.141 0.519 0.617 0.026 0.837], [0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.614 0.719 0.755 0.764 0.814 0.818 0.904 0.026 0.141 0.519 0.617 0.026 0.837], [0.026 0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.614 0.719 0.755 0.764 0.814 0.818 0.904 0.141 0.519 0.617 0.026 0.837], [0.026 0.141 0.163 0.291 0.357 0.37 0.394 0.402 0.532 0.536 0.573 0.614 0.614 0.719 0.755 0.764 0.814 0.818 0.904 0.519 0.617 0.026 0.837], [0.026 0.141 0.163 0.291 0.357 0.37 0.394 0.402 0.519 0.532 0.536 0.573 0.614 0.614 0.719 0.755 0.764 0.814 0.818 0.904 0.617 0.026 0.837], [0.026 0.141 0.163 0.291 0.357 0.37 0.394 0.402 0.519 0.532 0.536 0.573 0.614 0.614 0.617 0.719 0.755 0.764 0.814 0.818 0.904 0.026 0.837], [0.026 0.026 0.141 0.163 0.291 0.357 0.37 0.394 0.402 0.519 0.532 0.536 0.573 0.614 0.614 0.617 0.719 0.755 0.764 0.814 0.818 0.904 0.837] | [0.026 0.026 0.141 0.163 0.291 0.357 0.37 0.394 0.402 0.519 0.532 0.536 0.573 0.614 0.614 0.617 0.719 0.755 0.764 0.814 0.818 0.837 0.904]
| insertion_sort |
dfs:
A: [[1 0 1 1 1 0 1 1 0 1 0 0 0 1 1 0 0 1 1], [1 0 1 0 0 0 1 0 1 1 0 0 1 0 0 1 1 0 0], [0 0 0 1 1 1 0 1 1 1 1 1 0 0 0 1 0 1 0], [1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 0 0 1 0], [0 1 0 1 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0], [0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0], [0 1 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 1 1], [1 0 0 0 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1], [0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 1 1], [0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0], [0 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 0 1 1], [1 1 1 0 1 0 0 1 1 0 1 1 0 1 1 1 0 1 0], [1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 0], [0 1 0 1 1 0 1 0 0 0 0 1 1 0 0 0 0 0 1], [1 1 0 0 1 1 0 1 0 1 0 0 0 0 1 0 1 0 1], [0 1 0 1 0 0 0 1 0 0 0 1 1 0 0 1 1 1 0], [0 0 0 0 1 1 1 1 0 0 1 1 1 0 1 0 1 0 0], [1 0 0 0 0 1 1 1 0 1 1 0 1 0 1 0 1 1 0], [1 0 0 0 1 1 1 1 1 1 1 1 0 0 1 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]
trace | pi:
| [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 1 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 5 1 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 5 1 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 6 1 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 6 1 7 8 9 10 11 12 13 14 15 16 17 18], [0 3 0 2 4 6 1 7 8 9 10 11 5 13 14 15 16 17 18], [0 3 0 2 4 6 1 7 8 9 10 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 7 8 9 10 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 7 8 9 10 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 8 9 10 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 8 9 10 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 8 9 7 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 8 9 7 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 10 9 7 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 10 9 7 11 5 13 14 15 16 17 18], [0 3 0 2 12 6 1 4 10 9 7 11 5 13 14 15 16 8 18], [0 3 0 2 12 6 1 4 10 9 7 11 5 13 14 15 16 8 18], [0 3 0 2 12 6 1 4 10 17 7 11 5 13 14 15 16 8 18], [0 3 0 2 12 6 1 4 10 17 7 11 5 13 14 15 16 8 18], [0 3 0 2 12 6 1 4 10 17 7 11 5 13 9 15 16 8 18], [0 3 0 2 12 6 1 4 10 17 7 11 5 13 9 15 16 8 18], [0 3 0 2 12 6 1 4 10 17 7 11 5 13 9 15 14 8 18], [0 3 0 2 12 6 1 4 10 17 7 11 5 13 9 15 14 8 18], [0 3 0 2 12 6 1 4 10 17 7 16 5 13 9 15 14 8 18], [0 3 0 2 12 6 1 4 10 17 7 16 5 13 9 15 14 8 18], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 15 14 8 18], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 15 14 8 18], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 15 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 15 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 15 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 15 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13], [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13] | [0 3 0 2 12 6 1 4 10 17 7 16 5 11 9 11 14 8 13]
| dfs |
mst_prim:
s: 1, A: [[0 0 0.231 0.652], [0 0.034 0.555 0], [0.231 0.555 0.494 0], [0.652 0 0 0.075]], initial_trace: [0 1 2 3]
trace | pi:
| [0 1 1 3], [2 1 1 3], [2 1 1 0] | [2 1 1 0]
| mst_prim |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1], key: [2 0 2 0 1 2 3 3 2 3 1 3 3 0 1 1 3 0 3 3 0 2 3 1 3 3 0 1], initial_trace: 0
trace | s:
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9 | 10
| kmp_matcher |
insertion_sort:
key: [0.932 0.134 0.438 0.583 0.16 0.167 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], initial_trace: [0.932 0.134 0.438 0.583 0.16 0.167 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64]
trace | pred:
| [0.134 0.932 0.438 0.583 0.16 0.167 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.438 0.932 0.583 0.16 0.167 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.438 0.583 0.932 0.16 0.167 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.438 0.583 0.932 0.167 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.438 0.583 0.932 0.394 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.583 0.932 0.926 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.583 0.926 0.932 0.438 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.438 0.583 0.926 0.932 0.759 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.438 0.583 0.759 0.926 0.932 0.606 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.438 0.583 0.606 0.759 0.926 0.932 0.497 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.438 0.497 0.583 0.606 0.759 0.926 0.932 0.873 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.438 0.497 0.583 0.606 0.759 0.873 0.926 0.932 0.607 0.64], [0.134 0.16 0.167 0.394 0.438 0.438 0.497 0.583 0.606 0.607 0.759 0.873 0.926 0.932 0.64] | [0.134 0.16 0.167 0.394 0.438 0.438 0.497 0.583 0.606 0.607 0.64 0.759 0.873 0.926 0.932]
| insertion_sort |
segments_intersect:
x: [0.845 0.706 0.002 0.331], y: [0.146 0.014 0.28 0.476]
intersect:
| 0
| segments_intersect |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1], key: [2 2 1 2 0 0 1 3 3 1 0 3 2 1 0 1 3 1 0 0 1 2 3 2 2 0 1 3 3 1 0], initial_trace: 0
trace | s:
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4 | 5
| kmp_matcher |
insertion_sort:
key: [0.037 0.328 0.115 0.283 0.993 0.241 0.788 0.789 0.065 0.392 0.149 0.325], initial_trace: [0.037 0.328 0.115 0.283 0.993 0.241 0.788 0.789 0.065 0.392 0.149 0.325]
trace | pred:
| [0.037 0.328 0.115 0.283 0.993 0.241 0.788 0.789 0.065 0.392 0.149 0.325], [0.037 0.115 0.328 0.283 0.993 0.241 0.788 0.789 0.065 0.392 0.149 0.325], [0.037 0.115 0.283 0.328 0.993 0.241 0.788 0.789 0.065 0.392 0.149 0.325], [0.037 0.115 0.283 0.328 0.993 0.241 0.788 0.789 0.065 0.392 0.149 0.325], [0.037 0.115 0.241 0.283 0.328 0.993 0.788 0.789 0.065 0.392 0.149 0.325], [0.037 0.115 0.241 0.283 0.328 0.788 0.993 0.789 0.065 0.392 0.149 0.325], [0.037 0.115 0.241 0.283 0.328 0.788 0.789 0.993 0.065 0.392 0.149 0.325], [0.037 0.065 0.115 0.241 0.283 0.328 0.788 0.789 0.993 0.392 0.149 0.325], [0.037 0.065 0.115 0.241 0.283 0.328 0.392 0.788 0.789 0.993 0.149 0.325], [0.037 0.065 0.115 0.149 0.241 0.283 0.328 0.392 0.788 0.789 0.993 0.325] | [0.037 0.065 0.115 0.149 0.241 0.283 0.325 0.328 0.392 0.788 0.789 0.993]
| insertion_sort |
bfs:
s: 4, A: [[1 0 1 0 0 1 0 0 0 0 1 0 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 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0], [1 0 1 1 1 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 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0], [0 0 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0 1 0 1 1], [1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 1 1 1 0 1 0 0 0 0 1 0 1], [0 0 0 0 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0], [0 1 0 0 0 0 1 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 1 0 1 0 0 1], [0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0], [0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0], [1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1], [0 0 1 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1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 4 4 17 18 19 4 21 22 23 4 25 4 4] | [2 26 4 4 4 4 13 13 20 5 5 2 2 4 4 4 4 3 3 3 4 3 3 16 4 5 4 4]
| bfs |
strongly_connected_components:
A: [[0 0 0 0 0], [0 0 0 0 0], [0 0 1 1 0], [0 0 1 0 0], [0 0 0 0 0]], initial_trace: [0 1 2 3 4]
trace | scc_id:
| [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 3 4], [0 1 2 2 4], [0 1 2 2 4], [0 1 2 2 4], [0 1 2 2 4], [0 1 2 2 4], [0 1 2 2 4], [0 1 2 2 4] | [0 1 2 2 4]
| strongly_connected_components |
optimal_bst:
p: [0.031 0.053 0.049 0.036 0.007 0.009 0.053 0.106 0.021 0.044 0], q: [0.076 0.104 0.114 0.094 0.069 0.049 0.021 0.006 0.001 0.006 0.049], initial_trace: [[0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0]]
trace | root:
| [[0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 0 2 0 0 0 0 0 0 0], [0 0 0 0 3 0 0 0 0 0 0], [0 0 0 0 0 4 0 0 0 0 0], [0 0 0 0 0 0 5 0 0 0 0], [0 0 0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 6 7 7 7], [0 0 0 0 0 0 0 0 7 7 7], [0 0 0 0 0 0 0 0 0 8 9], [0 0 0 0 0 0 0 0 0 0 9], [0 0 0 0 0 0 0 0 0 0 0]] | [[0 0 1 1 1 2 2 2 3 3 3], [0 0 1 1 2 2 2 2 3 3 3], [0 0 0 2 2 2 3 3 3 3 3], [0 0 0 0 3 3 3 4 6 6 6], [0 0 0 0 0 4 4 5 6 6 7], [0 0 0 0 0 0 5 6 6 7 7], [0 0 0 0 0 0 0 6 7 7 7], [0 0 0 0 0 0 0 0 7 7 7], [0 0 0 0 0 0 0 0 0 8 9], [0 0 0 0 0 0 0 0 0 0 9], [0 0 0 0 0 0 0 0 0 0 0]]
| optimal_bst |
bellman_ford:
s: 5, A: [[0 0 0.42 0 0 0 0 0 0 0], [0 0.888 0 0 0 0 0 0.517 0.36 0], [0.42 0 0.951 0.37 0 0 0.211 0 0 0], [0 0 0.37 0 0 0 0 0 0.593 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.752 0.469 0 0.162 0.4], [0 0 0.211 0 0 0.469 0.454 0 0 0], [0 0.517 0 0 0 0 0 0 0.482 0], [0 0.36 0 0.593 0 0.162 0 0.482 0.033 0], [0 0 0 0 0 0.4 0 0 0 0.478]], initial_trace: [0 1 2 3 4 5 6 7 8 9]
trace | pi:
| [0 1 2 3 4 5 5 7 5 5], [0 8 6 8 4 5 5 8 5 5] | [2 8 6 8 4 5 5 8 5 5]
| bellman_ford |
mst_prim:
s: 1, A: [[0.898 0 0 0], [0 0 0.58 0], [0 0.58 0.972 0], [0 0 0 0]], initial_trace: [0 1 2 3]
trace | pi:
| [0 1 1 3] | [0 1 1 3]
| mst_prim |
insertion_sort:
key: [0.907 0.24 0.181 0.859 0.27 0.379 0.797 0.032 0.048 0.709 0.418], initial_trace: [0.907 0.24 0.181 0.859 0.27 0.379 0.797 0.032 0.048 0.709 0.418]
trace | pred:
| [0.24 0.907 0.181 0.859 0.27 0.379 0.797 0.032 0.048 0.709 0.418], [0.181 0.24 0.907 0.859 0.27 0.379 0.797 0.032 0.048 0.709 0.418], [0.181 0.24 0.859 0.907 0.27 0.379 0.797 0.032 0.048 0.709 0.418], [0.181 0.24 0.27 0.859 0.907 0.379 0.797 0.032 0.048 0.709 0.418], [0.181 0.24 0.27 0.379 0.859 0.907 0.797 0.032 0.048 0.709 0.418], [0.181 0.24 0.27 0.379 0.797 0.859 0.907 0.032 0.048 0.709 0.418], [0.032 0.181 0.24 0.27 0.379 0.797 0.859 0.907 0.048 0.709 0.418], [0.032 0.048 0.181 0.24 0.27 0.379 0.797 0.859 0.907 0.709 0.418], [0.032 0.048 0.181 0.24 0.27 0.379 0.709 0.797 0.859 0.907 0.418] | [0.032 0.048 0.181 0.24 0.27 0.379 0.418 0.709 0.797 0.859 0.907]
| insertion_sort |
mst_kruskal:
A: [[0 0 0 0], [0 0 0 0], [0 0 0.862 0], [0 0 0 0]], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]]
trace | in_mst:
| | [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]]
| mst_kruskal |
jarvis_march:
x: [1.3 1.38 -1.34 -0.3 1.81], y: [1.15 1.21 -0.221 1.94 -0.246], initial_trace: [0 0 0 0 0]
trace | in_hull:
| [0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1], [0 1 0 0 1], [0 1 0 0 1], [0 1 0 0 1], [0 1 0 0 1], [0 1 0 0 1], [0 1 0 0 1], [0 1 0 1 1], [0 1 0 1 1], [0 1 0 1 1], [0 1 0 1 1], [0 1 0 1 1], [0 1 0 1 1], [0 1 1 1 1], [0 1 1 1 1], [0 1 1 1 1], [0 1 1 1 1], [0 1 1 1 1] | [0 1 1 1 1]
| jarvis_march |
strongly_connected_components:
A: [[0 0 0 1 1 1 0 1 0 0 0], [0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [1 0 0 1 1 1 0 1 0 0 0], [1 0 0 0 0 1 0 1 0 0 0], [0 0 0 1 1 0 0 1 0 0 0], [0 0 0 0 0 0 1 0 0 0 0], [1 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 0 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 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10]
trace | scc_id:
| [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 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 0 4 5 6 7 8 9 10], [0 1 2 0 4 0 6 7 8 9 10], [0 1 2 0 0 0 6 7 8 9 10], [0 1 2 0 0 0 6 7 8 9 10], [0 1 2 0 0 0 6 7 8 9 10], [0 1 2 0 0 0 6 0 8 9 10], [0 1 2 0 0 0 6 0 8 9 10] | [0 1 2 0 0 0 6 0 8 9 10]
| strongly_connected_components |
task_scheduling:
d: [24 7 25 22 16 17 13 23 25 26 8 4 12 9 21 2 8 4 16 1 13 19 5 9 11 9 6 8], w: [0.846 0.212 0.289 0.119 0.302 0.572 0.133 0.869 0.669 0.725 0.728 0.604 0.426 0.594 0.664 0.521 0.824 0.795 0.489 0.78 0.381 0.168 0.57 0.176 0.496 0.481 0.41 0.536], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 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1 0 0 0 1 0 0 0], [1 0 0 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 0 0 1 0 0 0], [1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 0 0 1 0 0 0], [1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 0 0 1 0 0 0], [1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 0 0 1 0 0 0], [1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 0], [1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 0] | [1 0 1 1 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 0]
| task_scheduling |
topological_sort:
A: [[0 0 0 1 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0 0], [0 0 0 1 0 1 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 1 1], [0 0 0 1 0 0 0 0 0 0 0], [0 1 1 0 1 0 0 0 1 0 0], [0 0 0 1 1 0 0 0 1 0 1], [0 1 0 1 0 1 0 0 0 1 1], [1 0 0 0 0 1 0 0 0 0 0], [1 1 0 1 0 1 0 0 0 1 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10], 0
trace | topo, topo_head:
| [0 1 2 3 4 5 6 7 8 9 10], 0, [0 1 2 3 4 5 6 7 8 9 10], 0, [0 1 2 3 4 5 6 7 8 9 10], 3, [3 1 2 3 4 5 6 7 8 9 10], 0, [3 1 2 3 4 5 6 7 8 9 10], 0, [3 1 2 3 4 5 6 7 8 9 10], 0, [3 0 2 3 4 5 6 7 8 9 10], 1, [3 0 2 3 4 5 6 7 8 9 10], 1, [3 0 2 3 4 5 6 7 8 9 10], 1, [3 0 2 3 4 5 6 7 8 9 10], 1, [3 0 2 3 4 1 6 7 8 9 10], 5, [3 0 5 3 4 1 6 7 8 9 10], 2, [3 0 5 3 4 1 6 7 8 9 10], 2, [3 0 5 3 4 1 6 7 8 9 10], 2, [3 0 5 3 4 1 6 7 8 9 10], 2, [3 0 5 3 4 1 6 7 8 2 10], 9, [3 0 5 3 4 1 6 7 8 2 10], 9, [3 0 5 3 4 1 6 7 8 2 9], 10, [3 0 5 3 10 1 6 7 8 2 9], 4, [3 0 5 3 10 1 6 7 8 2 9], 4, [3 0 5 3 10 1 6 7 8 2 9], 4, [3 0 5 3 10 1 6 7 8 2 9], 4, [3 0 5 3 10 1 6 7 4 2 9], 8, [3 0 5 3 10 1 8 7 4 2 9], 6, [3 0 5 3 10 1 8 7 4 2 9], 6, [3 0 5 3 10 1 8 7 4 2 9], 6 | [3 0 5 3 10 1 8 6 4 2 9], 7
| topological_sort |
kmp_matcher:
string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1], key: [1 0 2 0 1 0 0 1 0 0 2 0 3 2 2 0 0 3 2 2 0 3 2 0 1 2 0 0 3 2 2], initial_trace: 0
trace | s:
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 9, 10, 11, 12, 13 | 14
| kmp_matcher |
insertion_sort:
key: [0.668 0.892 0.274 0.32 0.772 0.207 0.136 0.071 0.462 0.433 0.595], initial_trace: [0.668 0.892 0.274 0.32 0.772 0.207 0.136 0.071 0.462 0.433 0.595]
trace | pred:
| [0.668 0.892 0.274 0.32 0.772 0.207 0.136 0.071 0.462 0.433 0.595], [0.274 0.668 0.892 0.32 0.772 0.207 0.136 0.071 0.462 0.433 0.595], [0.274 0.32 0.668 0.892 0.772 0.207 0.136 0.071 0.462 0.433 0.595], [0.274 0.32 0.668 0.772 0.892 0.207 0.136 0.071 0.462 0.433 0.595], [0.207 0.274 0.32 0.668 0.772 0.892 0.136 0.071 0.462 0.433 0.595], [0.136 0.207 0.274 0.32 0.668 0.772 0.892 0.071 0.462 0.433 0.595], [0.071 0.136 0.207 0.274 0.32 0.668 0.772 0.892 0.462 0.433 0.595], [0.071 0.136 0.207 0.274 0.32 0.462 0.668 0.772 0.892 0.433 0.595], [0.071 0.136 0.207 0.274 0.32 0.433 0.462 0.668 0.772 0.892 0.595] | [0.071 0.136 0.207 0.274 0.32 0.433 0.462 0.595 0.668 0.772 0.892]
| insertion_sort |
dag_shortest_paths:
s: 1, A: [[0 0 0 0 0.692], [0 0 0 0 0], [0.654 0.157 0 0 0.186], [0 0 0 0 0], [0 0 0 0 0]], initial_trace: [0 1 2 3 4]
trace | pi:
| [0 1 2 3 4], [0 1 2 3 4] | [0 1 2 3 4]
| dag_shortest_paths |
minimum:
key: [0.95 0.813 0.811 0.617 0.038 0.541 0.115 0.135 0.768 0.456 0.607 0.083 0.495 0.107 0.734 0.641 0.488 0.068 0.078], initial_trace: 0
trace | min:
| 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 | 4
| minimum |
quickselect:
key: [0.081 0.625 0.743 0.982 0.115 0.842 0.767 0.76 0.964 0.892], initial_trace: 9
trace | pivot:
| 9, 9, 9, 9, 9, 9, 9, 9, 9, 7, 7, 7, 7, 7, 7, 7, 5, 5 | 6
| quickselect |
task_scheduling:
d: [22 12 19 26 17 28 25 2 9 10 16 24 14 8 18 23 28 10 9 14 28 5 19 11 2 11 25 18], w: [0.74 0.175 0.571 0.846 0.998 0.201 0.21 0.751 0.79 0.597 0.769 0.934 0.111 0.335 0.832 0.453 0.701 0.486 0.899 0.222 0.543 0.057 0.661 0.651 0.733 0.804 0.633 0.576], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
trace | selected:
| [0 0 0 0 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 1 0 0 0 0 0 0 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0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 0 1 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 1 1 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 1 1 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1], [1 0 1 1 1 1 1 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1] | [1 0 1 1 1 1 1 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1]
| task_scheduling |
activity_selector:
s: [0.204 0.167 0.743 0.922 0.114], f: [0.83 0.258 0.99 0.941 0.409], initial_trace: [0 0 0 0 0]
trace | selected:
| [0 1 0 0 0], [0 1 0 0 0], [0 1 0 0 0], [0 1 0 1 0] | [0 1 0 1 0]
| activity_selector |
Subsets and Splits