Datasets:

question
stringlengths
65
3.42k
answer
stringlengths
3
5.8k
algo_name
stringclasses
30 values
task_scheduling: d: [4 1 4 1 2], w: [0.293 0.423 0.2 0.312 0.781], initial_trace: [0 0 0 0 0] trace | selected:
[0 0 0 0 1], [0 0 0 0 1], [0 0 0 0 1], [1 0 0 0 1] | [1 0 1 0 1]
task_scheduling
graham_scan: x: [-1.74 0.992 0.804 0.758 1.84 0.356 0.832 1.66 0.072 1.94 -0.42 1.96 1.04 -0.402 -0.914 1.3 -1.92 0.058 1.25 0.004 -0.479 0.333 -0.316 -1.47 0.957 0.594 -1.45 -0.355 -0.48 1 -1.22], y: [0.635 0.075 1.75 1.58 -0.156 -1.44 0.632 0.729 1.92 0.13 1.38 -0.244 1.26 0.091 -1.01 -0.935 0.276 -1.72 0.528 0.806 0.044 -0.38 -0.977 0.695 -0.199 0.103 0.294 -1.85 0.523 0.751 -1.21], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 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 0 0 0 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 1 0 0 0 1 0 1 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 1 0 1 0 0 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 0 0 0 0 0 0 1], [1 1 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1], [1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0], [0 0 0 1 0 1 0 0 0 0 1 1 0 1 0 0 1 0 0], [0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 1 0 1], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 1 0 0 0 0 1 0 1 0 0 1 1 1 0 0], [0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1], [0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0], [1 1 0 0 0 0 0 0 1 1 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 1 0], [0 0 0 0 0 0 1 1 0 0 0 1 0 0 1 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[0 1 2 3 6 5 6 7 8 9 10 11 12 13 14 15 16 17 6], [4 1 2 3 6 5 6 18 8 9 10 18 12 4 18 15 16 17 6], [4 0 2 7 6 7 6 18 0 11 10 18 0 4 18 13 0 7 6] | [4 0 1 7 6 7 6 18 0 11 1 18 0 4 18 13 0 7 6]
bfs
task_scheduling: d: [14 11 5 10 22 19 27 2 10 5 21 26 9 24 18 16 15 21 24 9 2 13 31 20 7 29 26 11 13 7 2], w: [0.8 0.029 0.557 0.671 0.153 0.828 0.275 0.391 0.533 0.956 0.323 0.905 0.126 0.333 0.116 0.337 0.662 0.81 0.903 0.516 0.316 0.485 0.146 0.717 0.126 0.554 0.612 0.057 0.346 0.86 0.03], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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[0.663 0.227 0 0 0 0 0.681 0.127 0 0 0 0 0 0 0], [0 0 0 0 0.54 0.184 0 0.371 0 0 0.456 0 0.541 0 0], [0 0 0.925 0 0.184 0.644 0 0 0 0 0.261 0 0 0 0], [0 0 0 0.681 0 0 0 0.28 0.169 0.3 0 0 0.048 0 0], [0.244 0.408 0.575 0.127 0.371 0 0.28 0 0 0.196 0 0.121 0.261 0 0], [0.609 0 0 0 0 0 0.169 0 0 0.643 0.344 0 0 0.72 0], [0 0 0.355 0 0 0 0.3 0.196 0.643 0 0 0 0 0 0], [0 0 0.297 0 0.456 0.261 0 0 0.344 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.121 0 0 0 0 0.043 0.38 0], [0 0.335 0 0 0.541 0 0.048 0.261 0 0 0 0.043 0 0.303 0], [0.623 0 0 0 0 0 0 0 0.72 0 0 0.38 0.303 0.295 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.348]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[8 1 2 3 4 5 8 7 8 8 8 11 12 8 14], [8 1 2 6 4 5 8 6 8 6 8 11 6 8 14], [8 12 2 6 12 5 8 6 8 6 8 12 6 12 14], [8 12 2 6 12 5 8 11 8 6 8 12 6 12 14], [8 12 10 6 12 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14], [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14] | [8 12 10 7 7 10 8 11 8 6 8 12 6 12 14]
dijkstra
binary_search: key: [0.039 0.156 0.159 0.165 0.262 0.363 0.422 0.432 0.446 0.459 0.479 0.491 0.503 0.509 0.536 0.541 0.555 0.558 0.643 0.651 0.697 0.709 0.798 0.811 0.821 0.859 0.864 0.939], target: 0.088, initial_trace: (0, 27) trace | (low, high):
(0, 13), (0, 6), (0, 3), (0, 1) | (1, 1)
binary_search
mst_kruskal: A: [[0 0 0 0 0 0 0 0.117 0 0.522], [0 0 0.395 0 0 0 0 0 0 0], [0 0.395 0 0 0 0 0 0 0 0.212], [0 0 0 0.116 0 0.71 0 0 0 0], [0 0 0 0 0.325 0 0 0 0 0], [0 0 0 0.71 0 0.0353 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0.117 0 0 0 0 0 0 0.579 0 0], [0 0 0 0 0 0 0 0 0 0], [0.522 0 0.212 0 0 0 0 0 0 0]], initial_trace: [[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]] trace | in_mst:
[[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]], [[0 0 0 0 0 0 0 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], [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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 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [1 0 1 0 0 0 0 0 0 0]]
mst_kruskal
binary_search: key: [0.114 0.173 0.181 0.201 0.278 0.326 0.561 0.615 0.669 0.709 0.873], target: 0.365, initial_trace: (0, 10) trace | (low, high):
(6, 10), (6, 8), (6, 7) | (6, 6)
binary_search
dijkstra: s: 2, A: [[0.514 0 0 0], [0 0.073 0 0.244], [0 0 0 0], [0 0.244 0 0.87]], initial_trace: [0 1 2 3] trace | pi:
| [0 1 2 3]
dijkstra
topological_sort: A: [[0 0 0 0 0], [0 0 0 0 0], [0 1 0 1 0], [1 1 0 0 0], [1 0 0 0 0]], initial_trace: [0 1 2 3 4], 0 trace | topo, topo_head:
[0 1 2 3 4], 0, [0 1 2 3 4], 0, [0 1 2 3 4], 0, [0 1 2 3 4], 0, [0 0 2 3 4], 1, [0 0 2 3 4], 1, [0 0 2 3 4], 1, [0 0 2 3 4], 1, [0 0 2 1 4], 3, [0 0 3 1 4], 2, [0 0 3 1 4], 2, [0 0 3 1 4], 2 | [0 0 3 1 2], 4
topological_sort
dijkstra: s: 14, A: [[0 0.224 0 0 0 0 0 0 0 0 0 0.381 0.774 0 0.874], [0.224 0.577 0.679 0 0 0 0.147 0 0.51 0.171 0 0 0 0 0.77], [0 0.679 0 0 0.817 0 0 0 0 0.172 0.436 0 0 0.416 0], [0 0 0 0 0 0 0.083 0 0.644 0 0 0.042 0.268 0.222 0], [0 0 0.817 0 0.639 0 0 0 0.447 0 0.245 0 0 0.235 0], [0 0 0 0 0 0.482 0.417 0.668 0.784 0 0.42 0.39 0 0 0], [0 0.147 0 0.083 0 0.417 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.668 0 0.972 0 0 0 0.627 0 0 0.743], [0 0.51 0 0.644 0.447 0.784 0 0 0.82 0 0 0 0 0 0], [0 0.171 0.172 0 0 0 0 0 0 0 0 0 0 0 0.511], [0 0 0.436 0 0.245 0.42 0 0 0 0 0.655 0.359 0 0 0], [0.381 0 0 0.042 0 0.39 0 0.627 0 0 0.359 0 0.337 0 0], [0.774 0 0 0.268 0 0 0 0 0 0 0 0.337 0.622 0.876 0.763], [0 0 0.416 0.222 0.235 0 0 0 0 0 0 0 0.876 0.837 0], [0.874 0.77 0 0 0 0 0 0.743 0 0.511 0 0 0.763 0 0.844]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[14 14 2 3 4 5 6 14 8 14 10 11 14 13 14], [14 9 9 3 4 5 6 14 8 14 10 11 14 13 14], [14 9 9 3 4 5 1 14 1 14 10 11 14 13 14], [14 9 9 3 2 5 1 14 1 14 2 11 14 2 14], [14 9 9 3 2 7 1 14 1 14 2 7 14 2 14], [14 9 9 12 2 7 1 14 1 14 2 12 14 2 14], [14 9 9 6 2 6 1 14 1 14 2 12 14 2 14], [14 9 9 6 2 6 1 14 1 14 2 12 14 2 14], [14 9 9 6 2 6 1 14 1 14 2 3 14 2 14], [14 9 9 6 2 6 1 14 1 14 2 3 14 2 14], [14 9 9 6 13 6 1 14 1 14 2 3 14 2 14], [14 9 9 6 13 6 1 14 1 14 2 3 14 2 14], [14 9 9 6 13 6 1 14 1 14 2 3 14 2 14], [14 9 9 6 13 6 1 14 1 14 2 3 14 2 14] | [14 9 9 6 13 6 1 14 1 14 2 3 14 2 14]
dijkstra
bellman_ford: s: 0, A: [[0.521 0 0 0 0 0 0 0 0 0 0.333 0], [0 0 0.275 0.32 0.443 0 0 0.044 0 0 0.441 0.269], [0 0.275 0 0.587 0 0 0 0 0 0 0 0], [0 0.32 0.587 0.671 0 0 0.363 0 0 0 0 0.266], [0 0.443 0 0 0.56 0 0 0 0 0.323 0 0], [0 0 0 0 0 0.808 0 0.255 0 0 0 0], [0 0 0 0.363 0 0 0.098 0.638 0 0.083 0 0], [0 0.044 0 0 0 0.255 0.638 0.836 0 0 0.458 0], [0 0 0 0 0 0 0 0 0 0.231 0 0], [0 0 0 0 0.323 0 0.083 0 0.231 0.968 0 0.323], [0.333 0.441 0 0 0 0 0 0.458 0 0 0 0], [0 0.269 0 0.266 0 0 0 0 0 0.323 0 0.079]], 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 0 11], [0 10 2 3 4 5 6 10 8 9 0 11], [0 10 1 1 1 7 7 10 8 9 0 1], [0 10 1 1 1 7 7 10 8 11 0 1] | [0 10 1 1 1 7 7 10 9 11 0 1]
bellman_ford
bfs: s: 7, A: [[1 0 0 0 0 0 1 1 1 0 0], [0 1 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 0 0 0 0 1 0], [0 0 0 0 1 0 0 0 0 0 1], [0 0 1 0 0 1 0 0 1 0 0], [1 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 1 0 0 1], [1 0 0 0 0 1 0 0 1 0 0], [0 0 1 1 0 0 0 0 0 1 0], [0 0 0 0 1 0 0 1 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[7 1 2 3 4 5 6 7 8 9 7], [7 1 2 3 10 5 0 7 0 9 7], [7 1 2 3 10 8 0 7 0 9 7], [7 1 5 3 10 8 0 7 0 9 7], [7 1 5 3 10 8 0 7 0 2 7] | [7 1 5 9 10 8 0 7 0 2 7]
bfs
minimum: key: [0.622 0.049 0.715 0.375 0.734 0.56 0.818 0.306 0.066 0.084], initial_trace: 0 trace | min:
1, 1, 1, 1, 1, 1, 1, 1 | 1
minimum
topological_sort: A: [[0 1 0 0], [0 0 0 0], [0 0 0 0], [0 1 0 0]], initial_trace: [0 1 2 3], 0 trace | topo, topo_head:
[0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 3], 1, [1 1 2 3], 0, [1 1 2 3], 0, [1 1 2 3], 0, [1 1 0 3], 2, [1 1 0 3], 2, [1 1 0 3], 2 | [1 1 0 2], 3
topological_sort
binary_search: key: [0.091 0.159 0.237 0.253 0.28 0.289 0.412 0.413 0.442 0.471 0.538 0.594 0.674 0.685 0.719 0.726 0.785 0.815 0.836 0.88 0.918 0.966 0.977], target: 0.037, initial_trace: (0, 22) trace | (low, high):
(0, 11), (0, 5), (0, 2), (0, 1) | (0, 0)
binary_search
activity_selector: s: [0.211 0.269 0.853 0.615 0.09 0.303 0.505 0.81 0.223 0.425 0.078 0.782 0.356 0.605 0.772 0.036 0.573 0.415 0.067], f: [0.55 0.344 0.953 0.905 0.357 0.639 0.944 0.965 0.261 0.453 0.499 0.887 0.387 0.806 0.933 0.194 0.586 0.978 0.495], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0], [0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0], [0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0], [0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0], [0 1 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 1 1 0 0 1 0 0 1 0 0 0], [0 1 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 1 1 0 0 1 0 0 1 0 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0], [0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0], [0 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0], [0 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0] | [0 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0]
activity_selector
heapsort: key: [0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868], initial_trace: [0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868] trace | pred:
[0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868], [0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868], [0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868], [0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868], [0.531 0.28 0.962 0.589 0.427 0.221 0.465 0.535 0.864 0.868], [0.531 0.28 0.962 0.589 0.868 0.221 0.465 0.535 0.864 0.427], [0.531 0.28 0.962 0.589 0.868 0.221 0.465 0.535 0.864 0.427], [0.531 0.28 0.962 0.864 0.868 0.221 0.465 0.535 0.589 0.427], [0.531 0.28 0.962 0.864 0.868 0.221 0.465 0.535 0.589 0.427], [0.531 0.28 0.962 0.864 0.868 0.221 0.465 0.535 0.589 0.427], [0.531 0.868 0.962 0.864 0.28 0.221 0.465 0.535 0.589 0.427], [0.531 0.868 0.962 0.864 0.427 0.221 0.465 0.535 0.589 0.28], [0.531 0.868 0.962 0.864 0.427 0.221 0.465 0.535 0.589 0.28], [0.962 0.868 0.531 0.864 0.427 0.221 0.465 0.535 0.589 0.28], [0.962 0.868 0.531 0.864 0.427 0.221 0.465 0.535 0.589 0.28], [0.28 0.868 0.531 0.864 0.427 0.221 0.465 0.535 0.589 0.962], [0.868 0.28 0.531 0.864 0.427 0.221 0.465 0.535 0.589 0.962], [0.868 0.864 0.531 0.28 0.427 0.221 0.465 0.535 0.589 0.962], [0.868 0.864 0.531 0.589 0.427 0.221 0.465 0.535 0.28 0.962], [0.868 0.864 0.531 0.589 0.427 0.221 0.465 0.535 0.28 0.962], [0.28 0.864 0.531 0.589 0.427 0.221 0.465 0.535 0.868 0.962], [0.864 0.28 0.531 0.589 0.427 0.221 0.465 0.535 0.868 0.962], [0.864 0.589 0.531 0.28 0.427 0.221 0.465 0.535 0.868 0.962], [0.864 0.589 0.531 0.535 0.427 0.221 0.465 0.28 0.868 0.962], [0.864 0.589 0.531 0.535 0.427 0.221 0.465 0.28 0.868 0.962], [0.28 0.589 0.531 0.535 0.427 0.221 0.465 0.864 0.868 0.962], [0.589 0.28 0.531 0.535 0.427 0.221 0.465 0.864 0.868 0.962], [0.589 0.535 0.531 0.28 0.427 0.221 0.465 0.864 0.868 0.962], [0.589 0.535 0.531 0.28 0.427 0.221 0.465 0.864 0.868 0.962], [0.465 0.535 0.531 0.28 0.427 0.221 0.589 0.864 0.868 0.962], [0.535 0.465 0.531 0.28 0.427 0.221 0.589 0.864 0.868 0.962], [0.535 0.465 0.531 0.28 0.427 0.221 0.589 0.864 0.868 0.962], [0.221 0.465 0.531 0.28 0.427 0.535 0.589 0.864 0.868 0.962], [0.531 0.465 0.221 0.28 0.427 0.535 0.589 0.864 0.868 0.962], [0.531 0.465 0.221 0.28 0.427 0.535 0.589 0.864 0.868 0.962], [0.427 0.465 0.221 0.28 0.531 0.535 0.589 0.864 0.868 0.962], [0.465 0.427 0.221 0.28 0.531 0.535 0.589 0.864 0.868 0.962], [0.465 0.427 0.221 0.28 0.531 0.535 0.589 0.864 0.868 0.962], [0.28 0.427 0.221 0.465 0.531 0.535 0.589 0.864 0.868 0.962], [0.427 0.28 0.221 0.465 0.531 0.535 0.589 0.864 0.868 0.962], [0.427 0.28 0.221 0.465 0.531 0.535 0.589 0.864 0.868 0.962], [0.221 0.28 0.427 0.465 0.531 0.535 0.589 0.864 0.868 0.962], [0.28 0.221 0.427 0.465 0.531 0.535 0.589 0.864 0.868 0.962], [0.28 0.221 0.427 0.465 0.531 0.535 0.589 0.864 0.868 0.962], [0.221 0.28 0.427 0.465 0.531 0.535 0.589 0.864 0.868 0.962] | [0.221 0.28 0.427 0.465 0.531 0.535 0.589 0.864 0.868 0.962]
heapsort
floyd_warshall: A: [[0 0 0 0 0.245 0.354 0 0 0.348 0.731], [0 0.883 0.501 0 0.149 0.127 0 0 0.187 0], [0 0.501 0.059 0 0 0.828 0.216 0 0 0], [0 0 0 0.557 0 0 0 0.098 0 0], [0.245 0.149 0 0 0 0 0 0 0 0], [0.354 0.127 0.828 0 0 0 0 0 0 0], [0 0 0.216 0 0 0 0.428 0 0 0], [0 0 0 0.098 0 0 0 0.52 0 0], [0.348 0.187 0 0 0 0 0 0 0 0], [0.731 0 0 0 0 0 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 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 0 4 4 0 0], [5 5 5 5 0 5 5 5 0 0], [6 6 6 6 6 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 0 0 8 8 8 0], [9 9 9 9 0 0 9 9 0 9]], [[0 0 0 0 0 0 0 0 0 0], [1 1 1 1 1 1 1 1 1 1], [2 2 2 2 1 1 2 2 1 2], [3 3 3 3 3 3 3 3 3 3], [4 4 1 4 4 1 4 4 1 0], [5 5 1 5 1 5 5 5 1 0], [6 6 6 6 6 6 6 6 6 6], [7 7 7 7 7 7 7 7 7 7], [8 8 1 8 1 1 8 8 8 0], [9 9 9 9 0 0 9 9 0 9]], [[0 0 0 0 0 0 0 0 0 0], [1 1 1 1 1 1 2 1 1 1], [2 2 2 2 1 1 2 2 1 2], [3 3 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1 2 1 1 0], [4 2 2 2 1 1 2 2 1 0], [3 3 3 7 3 3 3 3 3 3], [4 4 1 4 4 1 2 4 1 0], [5 5 1 5 1 5 2 5 1 0], [4 2 6 6 1 1 6 6 1 0], [7 7 7 7 7 7 7 3 7 7], [8 8 1 8 1 1 2 8 8 0], [9 4 1 9 0 0 2 9 0 9]] | [[0 4 1 0 0 0 2 0 0 0], [4 5 1 1 1 1 2 1 1 0], [4 2 2 2 1 1 2 2 1 0], [3 3 3 7 3 3 3 3 3 3], [4 4 1 4 4 1 2 4 1 0], [5 5 1 5 1 5 2 5 1 0], [4 2 6 6 1 1 6 6 1 0], [7 7 7 7 7 7 7 3 7 7], [8 8 1 8 1 1 2 8 8 0], [9 4 1 9 0 0 2 9 0 9]]
floyd_warshall
quickselect: key: [0.787 0.754 0.831 0.764 0.707 0.945 0.223 0.688 0.749 0.564 0.105], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 3, 3, 3, 3, 3, 8, 8, 8 | 8
quickselect
insertion_sort: key: [0.35 0.673 0.547 0.875 0.121 0.562 0.411 0.839 0.113 0.034], initial_trace: [0.35 0.673 0.547 0.875 0.121 0.562 0.411 0.839 0.113 0.034] trace | pred:
[0.35 0.673 0.547 0.875 0.121 0.562 0.411 0.839 0.113 0.034], [0.35 0.547 0.673 0.875 0.121 0.562 0.411 0.839 0.113 0.034], [0.35 0.547 0.673 0.875 0.121 0.562 0.411 0.839 0.113 0.034], [0.121 0.35 0.547 0.673 0.875 0.562 0.411 0.839 0.113 0.034], [0.121 0.35 0.547 0.562 0.673 0.875 0.411 0.839 0.113 0.034], [0.121 0.35 0.411 0.547 0.562 0.673 0.875 0.839 0.113 0.034], [0.121 0.35 0.411 0.547 0.562 0.673 0.839 0.875 0.113 0.034], [0.113 0.121 0.35 0.411 0.547 0.562 0.673 0.839 0.875 0.034] | [0.034 0.113 0.121 0.35 0.411 0.547 0.562 0.673 0.839 0.875]
insertion_sort
dfs: A: [[0 1 1 1 0 1 0 1 0 1 1 0 0 0 0], [1 1 0 1 0 1 1 1 0 1 0 1 0 1 1], [0 0 0 1 0 1 0 0 0 0 0 1 0 0 0], [0 1 0 0 0 0 0 1 1 1 1 0 1 0 0], [1 1 0 0 0 1 1 1 0 1 0 0 0 0 1], [0 1 1 1 0 1 1 1 0 0 1 0 1 1 1], [0 0 1 1 0 1 0 1 0 1 0 1 1 0 1], [1 0 0 1 0 0 0 1 1 0 1 0 1 0 1], [0 0 1 0 1 1 1 0 1 1 1 0 1 1 0], [0 1 0 1 1 0 0 1 0 1 0 1 0 1 0], [1 1 1 0 1 1 1 1 0 0 1 0 1 0 1], [1 0 1 0 1 0 1 0 1 0 1 0 1 1 0], [1 1 1 0 0 1 1 1 1 1 1 1 1 0 0], [0 1 0 1 1 0 0 0 0 1 1 1 1 0 1], [0 1 0 1 1 0 1 0 1 1 1 1 1 1 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 0 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 0 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 0 2 1 4 5 6 7 8 9 10 11 12 13 14], [0 0 2 1 4 5 6 7 8 9 10 11 12 13 14], [0 0 2 1 4 5 6 3 8 9 10 11 12 13 14], [0 0 2 1 4 5 6 3 8 9 10 11 12 13 14], [0 0 2 1 4 5 6 3 7 9 10 11 12 13 14], [0 0 2 1 4 5 6 3 7 9 10 11 12 13 14], [0 0 8 1 4 5 6 3 7 9 10 11 12 13 14], [0 0 8 1 4 5 6 3 7 9 10 11 12 13 14], [0 0 8 1 4 2 6 3 7 9 10 11 12 13 14], [0 0 8 1 4 2 6 3 7 9 10 11 12 13 14], [0 0 8 1 4 2 5 3 7 9 10 11 12 13 14], [0 0 8 1 4 2 5 3 7 9 10 11 12 13 14], [0 0 8 1 4 2 5 3 7 6 10 11 12 13 14], [0 0 8 1 4 2 5 3 7 6 10 11 12 13 14], [0 0 8 1 9 2 5 3 7 6 10 11 12 13 14], [0 0 8 1 9 2 5 3 7 6 10 11 12 13 14], [0 0 8 1 9 2 5 3 7 6 10 11 12 13 4], [0 0 8 1 9 2 5 3 7 6 10 11 12 13 4], [0 0 8 1 9 2 5 3 7 6 14 11 12 13 4], [0 0 8 1 9 2 5 3 7 6 14 11 12 13 4], [0 0 8 1 9 2 5 3 7 6 14 11 10 13 4], [0 0 8 1 9 2 5 3 7 6 14 11 10 13 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 13 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 13 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4], [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4] | [0 0 8 1 9 2 5 3 7 6 14 12 10 11 4]
dfs
task_scheduling: d: [11 10 7 8 7 6 1 7 10 1 5 8], w: [0.615 0.928 0.921 0.984 0.68 0.604 0.307 0.88 0.317 0.423 0.324 0.038], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[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 1 1 0 0 0 0 0 0 0 0], [0 1 1 1 0 0 0 1 0 0 0 0], [0 1 1 1 1 0 0 1 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0], [1 1 1 1 1 0 0 1 0 0 0 0], [1 1 1 1 1 0 0 1 1 0 0 0], [1 1 1 1 1 0 0 1 1 0 0 0] | [1 1 1 1 1 0 0 1 1 0 0 1]
task_scheduling
optimal_bst: p: [0.003 0.09 0.04 0.176 0.146 0], q: [0.177 0.028 0.185 0.019 0.043 0.092], 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 2 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 2 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 2 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 2 3], [0 0 0 0 3 4], [0 0 0 0 0 4], [0 0 0 0 0 0]]
optimal_bst
articulation_points: A: [[0 0 0 0], [0 0 0 0], [0 0 0 1], [0 0 1 1]], initial_trace: [0 0 0 0] trace | is_cut:
[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0] | [0 0 0 0]
articulation_points
segments_intersect: x: [0.62 0.437 0.661 0.592], y: [0.588 0.074 0.614 0.536] intersect:
1
segments_intersect
quicksort: key: [0.899 0.331 0.747 0.009 0.816 0.565 0.952 0.363 0.626 0.323], initial_trace: [0.899 0.331 0.747 0.009 0.816 0.565 0.952 0.363 0.626 0.323] trace | pred:
[0.899 0.331 0.747 0.009 0.816 0.565 0.952 0.363 0.626 0.323], [0.899 0.331 0.747 0.009 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.331 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.331 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.331 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.331 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.331 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.331 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.323], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.747 0.899 0.816 0.565 0.952 0.363 0.626 0.331], [0.009 0.323 0.331 0.899 0.816 0.565 0.952 0.363 0.626 0.747], [0.009 0.323 0.331 0.899 0.816 0.565 0.952 0.363 0.626 0.747], [0.009 0.323 0.331 0.899 0.816 0.565 0.952 0.363 0.626 0.747], [0.009 0.323 0.331 0.565 0.816 0.899 0.952 0.363 0.626 0.747], [0.009 0.323 0.331 0.565 0.816 0.899 0.952 0.363 0.626 0.747], [0.009 0.323 0.331 0.565 0.363 0.899 0.952 0.816 0.626 0.747], [0.009 0.323 0.331 0.565 0.363 0.626 0.952 0.816 0.899 0.747], [0.009 0.323 0.331 0.565 0.363 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.565 0.363 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.565 0.363 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.565 0.363 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.565 0.363 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.363 0.565 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.363 0.565 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.363 0.565 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.363 0.565 0.626 0.747 0.816 0.899 0.952], [0.009 0.323 0.331 0.363 0.565 0.626 0.747 0.816 0.899 0.952] | [0.009 0.323 0.331 0.363 0.565 0.626 0.747 0.816 0.899 0.952]
quicksort
bfs: s: 8, A: [[1 0 1 0 0 1 0 0 1 0 1], [0 0 0 0 0 0 1 0 0 0 1], [1 0 0 0 0 1 0 1 1 0 0], [0 0 0 0 0 0 1 1 0 1 1], [0 0 0 0 0 0 1 0 0 1 0], [1 0 1 0 0 0 0 1 0 1 1], [0 1 0 1 1 0 1 1 0 1 1], [0 0 1 1 0 1 1 0 0 0 1], [1 0 1 0 0 0 0 0 0 1 0], [0 0 0 1 1 1 1 0 1 0 0], [1 1 0 1 0 1 1 1 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[8 1 8 3 4 5 6 7 8 8 10], [8 1 8 9 9 0 9 2 8 8 0] | [8 6 8 9 9 0 9 2 8 8 0]
bfs
lcs_length: string: [0 0 1 1], key: [2 3 0 0], 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
find_maximum_subarray_kadane: key: [0.833 0.039 -0.487 0.586 -0.388], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 1), (0, 3) | (0, 3)
find_maximum_subarray_kadane
quickselect: key: [0.915 0.316 0.766 0.056 0.276 0.999 0.526 0.683 0.217 0.568 0.538 0.148], initial_trace: 11 trace | pivot:
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 10, 10, 10 | 10
quickselect
topological_sort: A: [[0 1 0 0 0 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 1 1 0 0 0 1 0 1 0 1 1], [0 0 1 0 0 0 0 0 1 1 0 1 1 0 1], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 1 1 0 0 1], [0 1 0 0 1 0 0 0 1 1 0 1 0 1 1], [0 1 0 0 1 0 0 0 1 0 1 1 1 1 0], [1 0 0 0 1 0 0 0 0 1 0 1 1 0 0], [0 1 0 0 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 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 1 0 0 1 0], [0 1 0 0 0 0 0 0 0 1 1 1 0 0 0], [1 1 0 0 1 0 0 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], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 1, [0 1 2 3 4 5 6 7 8 9 10 1 12 13 14], 11, [0 1 2 3 4 5 6 7 8 9 11 1 12 13 14], 10, [10 1 2 3 4 5 6 7 8 9 11 1 12 13 14], 0, [10 1 2 3 4 5 6 7 8 9 11 1 12 13 14], 0, [10 1 2 3 4 5 6 7 8 9 11 1 12 13 14], 0, [10 1 2 3 4 5 6 7 8 9 11 1 12 13 14], 0, [10 1 2 3 0 5 6 7 8 9 11 1 12 13 14], 4, [10 1 2 3 0 5 6 7 8 9 11 1 12 13 14], 4, [10 1 2 3 0 5 6 7 8 9 11 1 12 13 14], 4, [10 1 2 3 0 5 6 7 8 9 11 1 12 13 14], 4, [10 1 2 3 0 5 6 7 8 9 11 1 12 13 14], 4, [10 1 2 3 0 5 6 7 8 9 11 1 12 13 14], 4, [10 1 2 3 0 5 6 7 8 4 11 1 12 13 14], 9, [10 1 2 3 0 5 6 7 8 4 11 1 12 13 14], 9, [10 1 2 3 0 5 6 7 8 4 11 1 12 13 14], 9, [10 1 2 3 0 5 6 7 8 4 11 1 12 9 14], 13, [10 1 2 3 0 5 6 7 8 4 11 1 13 9 14], 12, [10 1 2 3 0 5 6 7 12 4 11 1 13 9 14], 8, [10 1 2 3 0 5 6 8 12 4 11 1 13 9 14], 7, [10 1 2 3 0 5 6 8 12 4 11 1 13 9 7], 14, [10 1 2 3 0 14 6 8 12 4 11 1 13 9 7], 5, [10 1 5 3 0 14 6 8 12 4 11 1 13 9 7], 2, [10 1 5 3 0 14 6 8 12 4 11 1 13 9 7], 2, [10 1 5 3 0 14 6 8 12 4 11 1 13 9 7], 2, [10 1 5 2 0 14 6 8 12 4 11 1 13 9 7], 3, [10 1 5 2 0 14 6 8 12 4 11 1 13 9 7], 3, [10 1 5 2 0 14 6 8 12 4 11 1 13 9 7], 3 | [10 1 5 2 0 14 3 8 12 4 11 1 13 9 7], 6
topological_sort
task_scheduling: d: [14 8 14 17 1 7 18 19 4 17 5 14 19 9 5 9 15 4 10], w: [0.944 0.213 0.75 0.098 0.512 0.516 0.19 0.572 0.896 0.843 0.917 0.267 0.744 0.772 0.079 0.902 0.727 0.744 0.191], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[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 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 0], [1 0 1 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 0], [1 0 1 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 0], [1 0 1 0 0 0 0 0 1 1 1 0 1 1 0 1 0 0 0], [1 0 1 0 0 0 0 0 1 1 1 0 1 1 0 1 1 0 0], [1 0 1 0 0 0 0 1 1 1 1 0 1 1 0 1 1 0 0], [1 0 1 0 0 0 0 1 1 1 1 0 1 1 0 1 1 0 0], [1 0 1 0 0 0 0 1 1 1 1 0 1 1 0 1 1 0 0], [1 0 1 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0], [1 0 1 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0], [1 0 1 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0], [1 0 1 0 0 0 1 1 1 1 1 1 1 1 0 1 1 0 0], [1 0 1 1 0 0 1 1 1 1 1 1 1 1 0 1 1 0 0] | [1 0 1 1 0 0 1 1 1 1 1 1 1 1 0 1 1 0 0]
task_scheduling
bellman_ford: s: 1, A: [[0.178 0 0.182 0.585], [0 0.142 0.114 0], [0.182 0.114 0 0], [0.585 0 0 0.12]], initial_trace: [0 1 2 3] trace | pi:
[0 1 1 3], [2 1 1 3] | [2 1 1 0]
bellman_ford
task_scheduling: d: [10 5 7 5 5 1 4 1 3 3], w: [0.788 0.961 0.753 0.497 0.502 0.188 0.812 0.624 0.404 0.246], initial_trace: [0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 1 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 1 0 0 0], [1 1 0 0 0 0 1 0 0 0], [1 1 1 0 0 0 1 0 0 0], [1 1 1 0 0 0 1 0 0 0], [1 1 1 0 1 0 1 0 0 0], [1 1 1 0 1 0 1 0 0 0], [1 1 1 0 1 0 1 0 0 0], [1 1 1 0 1 0 1 0 0 0] | [1 1 1 0 1 0 1 0 0 0]
task_scheduling
heapsort: key: [0.445 0.723 0.141 0.827 0.716], initial_trace: [0.445 0.723 0.141 0.827 0.716] trace | pred:
[0.445 0.723 0.141 0.827 0.716], [0.445 0.723 0.141 0.827 0.716], [0.445 0.723 0.141 0.827 0.716], [0.445 0.827 0.141 0.723 0.716], [0.445 0.827 0.141 0.723 0.716], [0.827 0.445 0.141 0.723 0.716], [0.827 0.723 0.141 0.445 0.716], [0.827 0.723 0.141 0.445 0.716], [0.716 0.723 0.141 0.445 0.827], [0.723 0.716 0.141 0.445 0.827], [0.723 0.716 0.141 0.445 0.827], [0.445 0.716 0.141 0.723 0.827], [0.716 0.445 0.141 0.723 0.827], [0.716 0.445 0.141 0.723 0.827], [0.141 0.445 0.716 0.723 0.827], [0.445 0.141 0.716 0.723 0.827], [0.445 0.141 0.716 0.723 0.827], [0.141 0.445 0.716 0.723 0.827] | [0.141 0.445 0.716 0.723 0.827]
heapsort
heapsort: key: [0.559 0.165 0.189 0.36 0.266], initial_trace: [0.559 0.165 0.189 0.36 0.266] trace | pred:
[0.559 0.165 0.189 0.36 0.266], [0.559 0.165 0.189 0.36 0.266], [0.559 0.165 0.189 0.36 0.266], [0.559 0.36 0.189 0.165 0.266], [0.559 0.36 0.189 0.165 0.266], [0.559 0.36 0.189 0.165 0.266], [0.266 0.36 0.189 0.165 0.559], [0.36 0.266 0.189 0.165 0.559], [0.36 0.266 0.189 0.165 0.559], [0.165 0.266 0.189 0.36 0.559], [0.266 0.165 0.189 0.36 0.559], [0.266 0.165 0.189 0.36 0.559], [0.189 0.165 0.266 0.36 0.559], [0.189 0.165 0.266 0.36 0.559], [0.165 0.189 0.266 0.36 0.559] | [0.165 0.189 0.266 0.36 0.559]
heapsort
activity_selector: s: [0.07 0.758 0.685 0.81 0.508 0.182 0.081 0.096 0.597 0.154 0.055 0.348 0.577 0.586 0.417], f: [0.256 0.935 0.749 0.972 0.584 0.333 0.747 0.359 0.823 0.581 0.542 0.416 0.607 0.957 0.418], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[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 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 0 0 0 0 0 0 1 0 0 1], [1 0 0 0 0 0 0 0 0 0 0 1 0 0 1], [1 0 0 0 0 0 0 0 0 0 0 1 0 0 1], [1 0 0 0 1 0 0 0 0 0 0 1 0 0 1], [1 0 0 0 1 0 0 0 0 0 0 1 0 0 1], [1 0 0 0 1 0 0 0 0 0 0 1 0 0 1], [1 0 1 0 1 0 0 0 0 0 0 1 0 0 1], [1 0 1 0 1 0 0 0 0 0 0 1 0 0 1], [1 1 1 0 1 0 0 0 0 0 0 1 0 0 1], [1 1 1 0 1 0 0 0 0 0 0 1 0 0 1] | [1 1 1 0 1 0 0 0 0 0 0 1 0 0 1]
activity_selector
floyd_warshall: A: [[0.076 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.096 0.337 0.406], [0 0 0 0 0 0 0 0 0.313 0], [0 0 0 0 0.392 0 0.352 0.677 0.535 0.634], [0 0 0 0.392 0.683 0 0 0.402 0 0], [0 0 0 0 0 0.59 0 0.628 0 0.574], [0 0 0 0.352 0 0 0 0 0 0], [0 0.096 0 0.677 0.402 0.628 0 0.887 0 0], [0 0.337 0.313 0.535 0 0 0 0 0.685 0], [0 0.406 0 0.634 0 0.574 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 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]], [[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 1 1 1], [8 8 8 8 8 8 8 1 1 1], [9 9 9 9 9 9 9 1 1 9]], [[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 1 1 1], [8 8 8 8 8 8 8 1 2 1], [9 9 9 9 9 9 9 1 1 9]], [[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 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2 8 2 8 7 7 3 1 2 1], [3 7 8 3 3 9 3 3 3 3], [4 7 8 4 4 7 3 4 1 1], [5 7 8 9 7 5 3 5 1 5], [6 7 8 6 3 9 6 3 3 3], [7 7 8 7 7 7 3 1 1 1], [8 8 8 8 7 7 3 1 2 1], [9 9 8 9 7 9 3 1 1 9]]
floyd_warshall
binary_search: key: [0.013 0.136 0.162 0.213 0.322 0.336 0.388 0.414 0.418 0.514 0.563 0.729 0.733 0.764 0.861 0.88 0.883 0.936 0.941], target: 0.536, initial_trace: (0, 18) trace | (low, high):
(10, 18), (10, 14), (10, 12), (10, 11) | (10, 10)
binary_search
dag_shortest_paths: s: 3, A: [[0 0 0.533 0 0 0 0.858 0.418 0 0.255 0.125 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0.134 0.314 0 0 0 0 0.0347 0 0.77 0.67 0], [0.71 0.739 0.94 0 0 0 0 0.38 0 0.798 0.374 0], [0.889 0 0 0 0 0 0.38 0 0.229 0.905 0.0767 0.721], [0 0 0.837 0 0 0 0 0 0 0.442 0 0], [0 0.574 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.614 0 0], [0 0.173 0 0 0 0 0 0.994 0 0 0 0], [0 0 0 0 0 0 0 0.839 0 0 0 0], [0 0 0.181 0 0 0 0 0.0813 0.788 0.954 0.0809 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 3 3 3 4 5 6 3 8 3 3 11], [0 3 3 3 4 5 6 3 8 3 3 11], [0 3 3 3 4 5 6 3 8 3 3 11], [0 3 3 3 4 5 6 3 8 3 3 11] | [0 3 3 3 4 5 6 3 8 3 3 11]
dag_shortest_paths
activity_selector: s: [0.246 0.178 0.043 0.65 0.048 0.109 0.331 0.076 0.117 0.189 0.467 0.404 0.174 0.292 0.43 0.741 0.116 0.718 0.478], f: [0.603 0.435 0.946 0.681 0.195 0.744 0.63 0.147 0.75 0.278 0.549 0.578 0.186 0.833 0.5 0.811 0.272 0.92 0.689], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 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 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0] | [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0]
activity_selector
topological_sort: A: [[0 0 0 0], [0 0 0 0], [1 1 0 1], [0 1 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], 0, [0 0 2 3], 1, [0 0 2 3], 1, [0 0 2 3], 1, [0 0 2 3], 1, [0 0 2 1], 3 | [0 0 3 1], 2
topological_sort
articulation_points: A: [[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 0 0 0 0 0], [0 0 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]], initial_trace: [0 0 0 0 0 0 0 0 0 0] trace | is_cut:
[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0] | [0 0 0 0 0 0 0 0 0 0]
articulation_points
bubble_sort: key: [0.879 0.826 0.395 0.099 0.054], initial_trace: [0.879 0.826 0.395 0.099 0.054] trace | pred:
[0.879 0.826 0.395 0.054 0.099], [0.879 0.826 0.054 0.395 0.099], [0.879 0.054 0.826 0.395 0.099], [0.054 0.879 0.826 0.395 0.099], [0.054 0.879 0.826 0.099 0.395], [0.054 0.879 0.099 0.826 0.395], [0.054 0.099 0.879 0.826 0.395], [0.054 0.099 0.879 0.395 0.826], [0.054 0.099 0.395 0.879 0.826] | [0.054 0.099 0.395 0.826 0.879]
bubble_sort
dijkstra: s: 0, A: [[0 0 0 0 0.439], [0 0 0 0 0], [0 0 0.512 0 0], [0 0 0 0 0.214], [0.439 0 0 0.214 0]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 0], [0 1 2 4 0] | [0 1 2 4 0]
dijkstra
dijkstra: s: 13, A: [[0 0 0 0 0 0 0 0 0 0 0.353 0 0 0 0 0 0 0.559 0.142], [0 0 0.838 0 0 0 0 0 0 0.341 0.6 0.459 0.504 0 0.244 0 0 0 0.483], [0 0.838 0 0 0 0.214 0 0 0 0.57 0 0 0 0 0.835 0 0 0 0.173], [0 0 0 0 0.61 0.614 0 0 0 0.372 0 0.231 0.838 0.396 0.574 0 0 0 0], [0 0 0 0.61 0 0 0 0 0 0 0 0 0.31 0 0.651 0 0 0 0], [0 0 0.214 0.614 0 0 0 0.816 0 0 0.335 0 0 0 0 0 0 0 0.557], [0 0 0 0 0 0 0.791 0 0 0 0 0 0 0 0 0 0.873 0 0], [0 0 0 0 0 0.816 0 0.135 0 0 0 0 0.752 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.469 0 0.333 0 0 0 0 0.759 0.087 0 0.349], [0 0.341 0.57 0.372 0 0 0 0 0 0 0 0 0 0 0 0 0.482 0 0], [0.353 0.6 0 0 0 0.335 0 0 0.333 0 0.314 0.627 0.346 0.677 0 0 0.669 0 0], [0 0.459 0 0.231 0 0 0 0 0 0 0.627 0 0 0 0 0.547 0.237 0 0], [0 0.504 0 0.838 0.31 0 0 0.752 0 0 0.346 0 0.344 0.097 0 0 0 0 0], [0 0 0 0.396 0 0 0 0 0 0 0.677 0 0.097 0.79 0 0 0 0.368 0], [0 0.244 0.835 0.574 0.651 0 0 0 0 0 0 0 0 0 0.411 0.605 0 0 0], [0 0 0 0 0 0 0 0 0.759 0 0 0.547 0 0 0.605 0 0 0 0], [0 0 0 0 0 0 0.873 0 0.087 0.482 0.669 0.237 0 0 0 0 0.232 0 0], [0.559 0 0 0 0 0 0 0 0 0 0 0 0 0.368 0 0 0 0 0], [0.142 0.483 0.173 0 0 0.557 0 0 0.349 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] trace | pi:
[0 1 2 13 4 5 6 7 8 9 13 11 13 13 14 15 16 13 18], [0 12 2 13 12 5 6 12 8 9 12 11 13 13 14 15 16 13 18], [17 12 2 13 12 5 6 12 8 9 12 11 13 13 14 15 16 13 18], [17 12 2 13 12 3 6 12 8 3 12 3 13 13 3 15 16 13 18], [17 12 2 13 12 3 6 12 8 3 12 3 13 13 3 15 16 13 18], [10 12 2 13 12 10 6 12 10 3 12 3 13 13 3 15 10 13 18], [10 12 1 13 12 10 6 12 10 3 12 3 13 13 1 15 10 13 1], [10 12 1 13 12 10 6 12 10 3 12 3 13 13 1 11 11 13 1], [10 12 9 13 12 10 6 12 10 3 12 3 13 13 1 11 11 13 1], [10 12 9 13 12 10 6 12 10 3 12 3 13 13 1 11 8 13 1], [10 12 5 13 12 10 6 12 10 3 12 3 13 13 1 11 8 13 1], [10 12 5 13 12 10 6 12 10 3 12 3 13 13 1 11 8 13 0], [10 12 5 13 12 10 6 12 10 3 12 3 13 13 1 11 8 13 0], [10 12 5 13 12 10 6 12 10 3 12 3 13 13 1 11 8 13 0], [10 12 5 13 12 10 16 12 10 3 12 3 13 13 1 11 8 13 0], [10 12 5 13 12 10 16 12 10 3 12 3 13 13 1 11 8 13 0], [10 12 5 13 12 10 16 12 10 3 12 3 13 13 1 11 8 13 0], [10 12 5 13 12 10 16 12 10 3 12 3 13 13 1 11 8 13 0] | [10 12 5 13 12 10 16 12 10 3 12 3 13 13 1 11 8 13 0]
dijkstra
insertion_sort: key: [0.682 0.498 0.437 0.184 0.042 0.66 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], initial_trace: [0.682 0.498 0.437 0.184 0.042 0.66 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743] trace | pred:
[0.498 0.682 0.437 0.184 0.042 0.66 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.437 0.498 0.682 0.184 0.042 0.66 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.184 0.437 0.498 0.682 0.042 0.66 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.682 0.66 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.66 0.682 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.66 0.682 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.66 0.682 0.694 0.919 0.568 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.568 0.66 0.682 0.694 0.919 0.907 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.568 0.66 0.682 0.694 0.907 0.919 0.721 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.437 0.498 0.568 0.66 0.682 0.694 0.721 0.907 0.919 0.226 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.437 0.498 0.568 0.66 0.682 0.694 0.721 0.907 0.919 0.781 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.437 0.498 0.568 0.66 0.682 0.694 0.721 0.781 0.907 0.919 0.572 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.437 0.498 0.568 0.572 0.66 0.682 0.694 0.721 0.781 0.907 0.919 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.437 0.498 0.568 0.572 0.66 0.682 0.694 0.721 0.781 0.907 0.919 0.942 0.639 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.781 0.907 0.919 0.942 0.827 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.781 0.827 0.907 0.919 0.942 0.253 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.781 0.827 0.907 0.919 0.942 0.763 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.763 0.781 0.827 0.907 0.919 0.942 0.925 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.763 0.781 0.827 0.907 0.919 0.925 0.942 0.087 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.087 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.763 0.781 0.827 0.907 0.919 0.925 0.942 0.899 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.087 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.682 0.694 0.721 0.763 0.781 0.827 0.899 0.907 0.919 0.925 0.942 0.666 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.087 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.827 0.899 0.907 0.919 0.925 0.942 0.844 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.087 0.184 0.226 0.253 0.437 0.498 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.545 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.05 0.813 0.049 0.059 0.77 0.743], [0.042 0.05 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.813 0.049 0.059 0.77 0.743], [0.042 0.05 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.813 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.049 0.059 0.77 0.743], [0.042 0.049 0.05 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.813 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.059 0.77 0.743], [0.042 0.049 0.05 0.059 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.781 0.813 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.77 0.743], [0.042 0.049 0.05 0.059 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.763 0.77 0.781 0.813 0.827 0.844 0.899 0.907 0.919 0.925 0.942 0.743] | [0.042 0.049 0.05 0.059 0.087 0.184 0.226 0.253 0.437 0.498 0.545 0.568 0.572 0.639 0.66 0.666 0.682 0.694 0.721 0.743 0.763 0.77 0.781 0.813 0.827 0.844 0.899 0.907 0.919 0.925 0.942]
insertion_sort
minimum: key: [0.139 0.048 0.433 0.644 0.055], initial_trace: 0 trace | min:
1, 1, 1 | 1
minimum
task_scheduling: d: [2 2 4 3], w: [0.319 0.593 0.941 0.389], initial_trace: [0 0 0 0] trace | selected:
[0 0 1 0], [0 1 1 0], [0 1 1 1] | [0 1 1 1]
task_scheduling
jarvis_march: x: [0.795 -1.35 -0.017 -0.514 0.427 -0.56 -0.012 0.145 0.962 1.35 -0.842], y: [-0.828 1.32 -1.97 -1.78 -1.95 0.929 -0.774 -1.81 1.55 -0.881 1.14], initial_trace: [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 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 0], [0 0 1 0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 0], [0 1 1 1 1 0 0 0 1 1 0], [0 1 1 1 1 0 0 0 1 1 0], [0 1 1 1 1 0 0 0 1 1 0], [0 1 1 1 1 0 0 0 1 1 0], [0 1 1 1 1 0 0 0 1 1 0], [0 1 1 1 1 0 0 0 1 1 0] | [0 1 1 1 1 0 0 0 1 1 0]
jarvis_march
dfs: A: [[1 0 1 1 0], [1 1 0 0 1], [1 0 0 0 1], [0 1 1 0 1], [0 0 0 1 1]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 1 0 3 4], [0 1 0 3 4], [0 1 0 3 2], [0 1 0 3 2], [0 1 0 4 2], [0 1 0 4 2], [0 3 0 4 2], [0 3 0 4 2], [0 3 0 4 2], [0 3 0 4 2], [0 3 0 4 2], [0 3 0 4 2] | [0 3 0 4 2]
dfs
quickselect: key: [0.409 0.771 0.51 0.276 0.202 0.935 0.201 0.392 0.737 0.437 0.712 0.734 0.574 0.94 0.038 0.167 0.885 0.696 0.049 0.348 0.277 0.833 0.377 0.617 0.529 0.498 0.499 0.234 0.675 0.27 0.302], 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, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 28, 28, 28, 28, 28, 28, 28, 28, 26, 26, 26, 26, 26, 26 | 25
quickselect
mst_kruskal: A: [[0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.316 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0.44 0 0 0], [0 0.316 0 0 0 0.44 0 0 0 0], [0 0 0 0 0 0 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 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 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 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 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 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 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 1 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 0], [0 1 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0]]
mst_kruskal
strongly_connected_components: A: [[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]], 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 3 2], [0 1 2 3 2], [0 1 2 3 2], [0 1 2 3 2], [0 1 2 3 2], [0 1 2 3 2], [0 1 2 3 2] | [0 1 2 3 2]
strongly_connected_components
bellman_ford: s: 8, A: [[0 0 0 0.128 0 0 0 0 0 0.563 0], [0 0 0 0 0 0 0.266 0 0 0 0], [0 0 0.066 0.746 0.665 0 0.259 0 0 0 0], [0.128 0 0.746 0 0 0 0 0 0 0 0], [0 0 0.665 0 0 0.835 0 0 0 0 0], [0 0 0 0 0.835 0 0 0 0.277 0 0], [0 0.266 0.259 0 0 0 0.493 0 0 0 0.502], [0 0 0 0 0 0 0 0.447 0 0 0], [0 0 0 0 0 0.277 0 0 0 0.484 0], [0.563 0 0 0 0 0 0 0 0.484 0.487 0.087], [0 0 0 0 0 0 0.502 0 0 0.087 0.311]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 1 2 3 4 8 6 7 8 8 10], [9 1 2 3 5 8 6 7 8 8 9], [9 1 4 0 5 8 10 7 8 8 9] | [9 6 6 0 5 8 10 7 8 8 9]
bellman_ford
graham_scan: x: [1.03 1.21 0.201 -0.483 -0.118], y: [-1.44 1.42 -1.84 0.551 0.647], initial_trace: [0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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 0 1 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 1 0 0 1 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 1 0 0 1 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 1 0 0 1 0 0]
articulation_points
minimum: key: [0.09 0.342 0.915 0.903 0.444 0.832 0.537 0.133 0.199 0.245 0.726 0.216 0.416 0.409 0.091 0.352 0.515 0.507 0.046 0.302 0.371 0.231 0.998 0.707 0.29 0.673 0.941 0.325], initial_trace: 0 trace | min:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 18, 18, 18, 18, 18, 18, 18, 18 | 18
minimum
insertion_sort: key: [0.379 0.947 0.889 0.802 0.506 0.806 0.922 0.849 0.711 0.285 0.959], initial_trace: [0.379 0.947 0.889 0.802 0.506 0.806 0.922 0.849 0.711 0.285 0.959] trace | pred:
[0.379 0.947 0.889 0.802 0.506 0.806 0.922 0.849 0.711 0.285 0.959], [0.379 0.889 0.947 0.802 0.506 0.806 0.922 0.849 0.711 0.285 0.959], [0.379 0.802 0.889 0.947 0.506 0.806 0.922 0.849 0.711 0.285 0.959], [0.379 0.506 0.802 0.889 0.947 0.806 0.922 0.849 0.711 0.285 0.959], [0.379 0.506 0.802 0.806 0.889 0.947 0.922 0.849 0.711 0.285 0.959], [0.379 0.506 0.802 0.806 0.889 0.922 0.947 0.849 0.711 0.285 0.959], [0.379 0.506 0.802 0.806 0.849 0.889 0.922 0.947 0.711 0.285 0.959], [0.379 0.506 0.711 0.802 0.806 0.849 0.889 0.922 0.947 0.285 0.959], [0.285 0.379 0.506 0.711 0.802 0.806 0.849 0.889 0.922 0.947 0.959] | [0.285 0.379 0.506 0.711 0.802 0.806 0.849 0.889 0.922 0.947 0.959]
insertion_sort
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [3 3 0 0 1 2 3 1 2 2 2 3], initial_trace: 0 trace | s:
1, 2, 3, 4, 5 | 5
naive_string_matcher
minimum: key: [0.125 0.142 0.141 0.882 0.793], initial_trace: 0 trace | min:
0, 0, 0 | 0
minimum
segments_intersect: x: [0.957 0.547 0.396 0.471], y: [0.392 0.441 0.932 0.462] intersect:
0
segments_intersect
jarvis_march: x: [-0.922 1.84 -0.474 -0.853 1.81 -0.396 0.826 0.895 0.58 0.677], y: [1 -0.007 0.074 -0.936 -0.502 -0.277 0.702 -0.515 -0.4 -1.46], initial_trace: [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 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 0 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 0 0 1 0 0 0 0 1], [0 1 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 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 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 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 1 1 0 1 0 0 1] | [1 1 0 1 1 0 1 0 0 1]
jarvis_march
matrix_chain_order: p: [0.091 0.517 0.693 0.332 0.292 0.035 0.704 0.312 0.294 0.546], 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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5], [0 0 0 0 0 0 0 6 7 8], [0 0 0 0 0 0 0 0 7 7], [0 0 0 0 0 0 0 0 0 8], [0 0 0 0 0 0 0 0 0 0]]
matrix_chain_order
bellman_ford: s: 9, A: [[0.16 0 0 0 0 0 0.453 0 0 0.117 0.284 0 0 0 0.359], [0 0 0.542 0 0 0.247 0.19 0 0 0.172 0 0.279 0 0.255 0], [0 0.542 0 0 0.347 0 0 0.255 0 0 0.496 0 0 0.506 0], [0 0 0 0 0.08 0 0 0 0 0 0 0 0 0 0.33], [0 0 0.347 0.08 0.809 0 0 0 0 0 0.469 0.661 0 0.494 0.302], [0 0.247 0 0 0 0 0 0.715 0 0.408 0.691 0 0.216 0 0], [0.453 0.19 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0.255 0 0 0.715 0 0.683 0 0.452 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.527 0 0 0.3 0 0.495 0], [0.117 0.172 0 0 0 0.408 0 0.452 0 0 0 0 0 0 0], [0.284 0 0.496 0 0.469 0.691 0 0 0 0 0.555 0.537 0 0 0], [0 0.279 0 0 0.661 0 0 0 0.3 0 0.537 0.428 0 0 0.395], [0 0 0 0 0 0.216 0 0 0 0 0 0 0.433 0.326 0], [0 0.255 0.506 0 0.494 0 0 0 0.495 0 0 0 0.326 0 0], [0.359 0 0 0.33 0.302 0 0 0 0 0 0 0.395 0 0 0.1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[9 9 2 3 4 9 6 9 8 9 10 11 12 13 14], [9 9 7 3 4 9 1 9 8 9 0 1 5 1 0] | [9 9 7 14 14 9 1 9 11 9 0 1 5 1 0]
bellman_ford
minimum: key: [0.866 0.375 0.835 0.889 0.629], initial_trace: 0 trace | min:
1, 1, 1 | 1
minimum
segments_intersect: x: [0.266 0.585 0.492 0.041], y: [0.385 0.992 0.991 0.251] intersect:
0
segments_intersect
strongly_connected_components: A: [[1 0 1 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 1 0], [0 0 0 0 1]], 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 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]
strongly_connected_components
task_scheduling: d: [13 3 2 10 18 18 5 8 4 8 10 14 18 15 15 2 7 12 19], w: [0.621 0.14 0.393 0.263 0.289 0.277 0.424 0.827 0.003 0.609 0.644 0.967 0.613 0.934 0.395 0.663 0.071 0.945 0.623], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 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 0 0 1 0 1 0 0 0 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 0 0 1 0 0 1 1 0 1 0 0 0 1 0], [0 0 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1], [1 0 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1], [1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 1 1], [1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 1 1], [1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 1 1], [1 0 0 0 0 0 0 1 0 0 1 1 1 1 1 0 0 1 1], [1 0 0 0 0 0 0 1 0 0 1 1 1 1 1 0 0 1 1], [1 0 0 0 1 0 0 1 0 0 1 1 1 1 1 0 0 1 1], [1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1 1], [1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1 1], [1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1 1], [1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1 1] | [1 0 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1 1]
task_scheduling
dag_shortest_paths: s: 6, A: [[0 0.968 0 0 0 0 0 0 0 0 0 0 0.387 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.569 0 0 0], [0 0.941 0 0 0.82 0 0 0 0 0.989 0 0 0 0 0], [0 0 0 0 0.918 0.499 0.206 0 0 0.374 0.0511 0 0 0.84 0], [0 0 0 0 0 0 0 0 0 0 0 0.707 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.48 0.908 0 0 0 0 0 0.493 0.821 0 0], [0.555 0 0 0.147 0 0.476 0.722 0 0.686 0.686 0.184 0.172 0 0.39 0], [0.869 0 0 0 0.25 0.947 0 0 0 0 0 0 0.93 0.449 0], [0 0.81 0 0 0.332 0 0 0 0 0 0 0 0 0 0], [0 0.113 0.41 0 0.245 0 0 0 0 0 0 0.943 0 0.254 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0.297 0 0 0 0 0 0.957 0 0.257 0], [0 0 0 0 0 0.617 0 0 0 0 0 0 0 0 0], [0 0.862 0 0 0 0 0 0 0 0.347 0 0.929 0.704 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], [0 1 2 3 6 6 6 7 8 9 10 6 6 13 14], [0 1 2 3 6 6 6 7 8 9 10 6 6 12 14], [0 1 2 3 6 6 6 7 8 9 10 6 6 12 14], [0 1 2 3 6 6 6 7 8 9 10 6 6 12 14] | [0 1 2 3 6 6 6 7 8 9 10 6 6 12 14]
dag_shortest_paths
mst_kruskal: A: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]], initial_trace: [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]] trace | in_mst:
| [[0 0 0 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]]
mst_kruskal
segments_intersect: x: [0.101 0.863 0.722 0.794], y: [0.694 0.168 0.173 0.841] intersect:
1
segments_intersect
floyd_warshall: A: [[0 0 0 0 0 0.671 0 0 0.093 0], [0 0.921 0 0.404 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0.404 0 0 0 0 0 0 0 0], [0 0 0 0 0.235 0 0 0 0.079 0.633], [0.671 0 0 0 0 0.223 0 0 0.802 0], [0 0 0 0 0 0 0.55 0 0.472 0], [0 0 0 0 0 0 0 0 0 0], [0.093 0 0 0 0.079 0.802 0.472 0 0 0], [0 0 0 0 0.633 0 0 0 0 0.422]], 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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 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 0 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 0 8 8 8 4], [9 9 9 9 9 9 9 9 4 9]], [[0 0 0 0 0 0 0 0 0 0], [1 3 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 0 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 0 8 8 8 4], [9 9 9 9 9 9 9 9 4 9]], [[0 0 0 0 0 0 0 0 0 0], [1 3 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 0 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 0 8 8 8 4], [9 9 9 9 9 9 9 9 4 9]], [[0 0 0 0 0 0 0 0 0 0], [1 3 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 0 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 0 8 8 8 4], [9 9 9 9 9 9 9 9 4 9]] | [[0 0 0 0 8 0 8 0 0 4], [1 3 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], [8 4 4 4 8 0 8 4 4 4], [5 5 5 5 8 5 8 5 0 4], [8 6 6 6 8 0 6 6 6 4], [7 7 7 7 7 7 7 7 7 7], [8 8 8 8 8 0 8 8 8 4], [8 9 9 9 9 0 8 9 4 9]]
floyd_warshall
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [3 3 2 3 3 3 0 0 2 0 2 0 2 1 3 3 3 3 0], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3 | 4
kmp_matcher
graham_scan: x: [0.623 -0.824 -0.187 -1.3 -1.29 0.345 0.974 0.532 -1.7 1.44 -1.07 1.24 -0.962 0.215 -0.289 0.405 1 -0.752 -0.604 -1.89 -0.659 0.76 -1.49], y: [0.334 1.75 -1.11 -0.186 -1.1 1.67 1.02 1.31 -0.869 0.749 -1.23 -1.15 -0.55 1.43 -1.62 0.35 -1.2 0.095 -0.197 0.57 0.713 0.447 -0.727], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 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 1 0 1 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 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 1 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 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0], [1 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 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1 0 0 0 0 1 0 0 0], [0 1 0 0 0 1 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0], [0 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0], [0 1 0 0 0 1 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0] | [0 1 0 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 0 1 0 0 0]
graham_scan
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 0 3 0 2 2 2 0 3 0 1 2 1 3 2 1 1 1 0 1 1 1 2 0 3 0 2], initial_trace: 0 trace | s:
0, 1, 1, 1, 1 | 1
naive_string_matcher
dag_shortest_paths: s: 1, A: [[0 0 0 0 0 0 0 0.858 0.669 0 0], [0 0 0 0 0 0 0 0.123 0.598 0 0], [0 0 0 0.854 0 0.367 0 0 0.172 0 0.113], [0 0 0 0 0 0 0 0.523 0.686 0.165 0], [0 0.6 0 0 0 0 0.443 0 0 0 0.513], [0 0.673 0 0.142 0.905 0 0.27 0.566 0 0.152 0], [0 0 0 0 0 0 0 0 0 0.72 0.0345], [0 0 0 0 0 0 0 0 0.423 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.0122 0 0 0.74], [0 0 0 0 0 0 0 0.34 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [0 1 2 3 4 5 6 7 8 9 10], [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 1 1 9 10] | [0 1 2 3 4 5 6 1 7 9 10]
dag_shortest_paths
bellman_ford: s: 5, A: [[0.345 0 0 0.373 0.549 0 0 0 0 0 0], [0 0 0.684 0 0 0.394 0 0 0 0 0], [0 0.684 0.486 0 0.279 0 0.532 0.78 0 0 0], [0.373 0 0 0.146 0 0 0 0.155 0 0 0], [0.549 0 0.279 0 0.405 0 0 0 0 0.472 0], [0 0.394 0 0 0 0.778 0 0 0 0 0], [0 0 0.532 0 0 0 0 0 0 0 0], [0 0 0.78 0.155 0 0 0 0.225 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.472 0 0 0 0 0.123 0.217], [0 0 0 0 0 0 0 0 0 0.217 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[0 5 2 3 4 5 6 7 8 9 10], [0 5 1 3 4 5 6 7 8 9 10], [0 5 1 3 2 5 2 2 8 9 10], [4 5 1 7 2 5 2 2 8 4 10] | [4 5 1 7 2 5 2 2 8 4 9]
bellman_ford
graham_scan: x: [-0.439 0.527 -0.839 0.917 -0.707 0.27 -0.123 -0.285 1.77 -0.305 1.5 -0.548 0.01 -1.05 1.93 -0.082 1.18 -0.205 -1.27 0.169 1.31 0.242 -0.66], y: [1.8 1.53 0.588 -0.516 0.072 -0.38 1.5 1.56 0.518 -0.4 -0.436 -0.514 1.39 1.68 0.008 1.73 -0.589 -1.49 -0.137 -1.08 -1.03 1.68 0.799], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 0 0 0 0 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 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 1 0 0 0 0 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 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1 0 0 1 0 0 1 1 1], [1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 1 0], [1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0], [1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0], [1 1 1 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0], [1 1 1 0 1 0 0 0 1 0 0 1 0 1 1 0 0 1 0 0 1 1 0], [1 1 1 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0], [1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0], [1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0] | [1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 1 1 0]
graham_scan
quickselect: key: [0.655 0.341 0.238 0.006 0.909 0.623 0.046 0.371 0.047 0.676 0.793 0.181 0.7 0.679 0.223 0.636 0.655 0.48 0.959 0.714 0.25 0.795 0.22 0.354 0.341 0.309 0.849 0.252 0.688 0.196 0.883], 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 17, 17, 17, 17, 17 | 17
quickselect
quickselect: key: [0.865 0.348 0.492 0.736 0.421 0.461 0.9 0.602 0.017 0.952 0.145], initial_trace: 10 trace | pivot:
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 | 2
quickselect
insertion_sort: key: [0.966 0.335 0.789 0.569 0.201 0.117 0.498 0.203 0.394 0.043 0.435 0.38], initial_trace: [0.966 0.335 0.789 0.569 0.201 0.117 0.498 0.203 0.394 0.043 0.435 0.38] trace | pred:
[0.335 0.966 0.789 0.569 0.201 0.117 0.498 0.203 0.394 0.043 0.435 0.38], [0.335 0.789 0.966 0.569 0.201 0.117 0.498 0.203 0.394 0.043 0.435 0.38], [0.335 0.569 0.789 0.966 0.201 0.117 0.498 0.203 0.394 0.043 0.435 0.38], [0.201 0.335 0.569 0.789 0.966 0.117 0.498 0.203 0.394 0.043 0.435 0.38], [0.117 0.201 0.335 0.569 0.789 0.966 0.498 0.203 0.394 0.043 0.435 0.38], [0.117 0.201 0.335 0.498 0.569 0.789 0.966 0.203 0.394 0.043 0.435 0.38], [0.117 0.201 0.203 0.335 0.498 0.569 0.789 0.966 0.394 0.043 0.435 0.38], [0.117 0.201 0.203 0.335 0.394 0.498 0.569 0.789 0.966 0.043 0.435 0.38], [0.043 0.117 0.201 0.203 0.335 0.394 0.498 0.569 0.789 0.966 0.435 0.38], [0.043 0.117 0.201 0.203 0.335 0.394 0.435 0.498 0.569 0.789 0.966 0.38] | [0.043 0.117 0.201 0.203 0.335 0.38 0.394 0.435 0.498 0.569 0.789 0.966]
insertion_sort
bellman_ford: s: 8, A: [[0 0 0 0 0 0 0 0 0 0], [0 0 0.67 0 0 0.921 0 0 0 0], [0 0.67 0 0.469 0 0 0 0 0 0.207], [0 0 0.469 0.066 0 0 0 0.363 0 0], [0 0 0 0 0.484 0 0 0 0 0], [0 0.921 0 0 0 0.195 0 0.918 0 0], [0 0 0 0 0 0 0 0 0.678 0], [0 0 0 0.363 0 0.918 0 0 0 0.502], [0 0 0 0 0 0 0.678 0 0.046 0], [0 0 0.207 0 0 0 0 0.502 0 0.344]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | pi:
| [0 1 2 3 4 5 8 7 8 9]
bellman_ford
segments_intersect: x: [0.658 0.355 0.727 0.766], y: [0.116 0.402 0.919 0.488] intersect:
0
segments_intersect
dijkstra: s: 4, A: [[0 0 0 0 0.312 0 0 0 0 0.283 0.182 0.611 0 0.302 0.503 0.128 0.681 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0.793 0 0.332 0.173 0 0 0 0 0 0 0 0 0 0 0.149 0], [0 0 0.071 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.21 0.148 0 0 0 0.674 0 0], [0 0 0 0 0.786 0.192 0 0.692 0 0 0 0.807 0 0 0 0.235 0 0.325 0.319 0 0 0 0 0 0 0 0 0], [0.312 0 0 0.786 0 0 0.119 0 0.789 0 0 0 0 0 0 0 0.541 0.815 0 0 0 0 0.318 0.25 0 0 0 0], [0 0 0 0.192 0 0.463 0 0 0 0 0 0 0 0 0.374 0 0 0 0 0 0.135 0 0 0 0 0 0 0], [0 0 0 0 0.119 0 0 0 0.614 0 0 0 0.133 0 0.632 0 0 0 0 0 0 0 0.343 0.109 0 0 0 0], [0 0 0 0.692 0 0 0 0.749 0.345 0.209 0 0.339 0 0.843 0 0 0 0 0 0 0 0.421 0 0 0 0.73 0.608 0], [0 0 0 0 0.789 0 0.614 0.345 0 0.472 0 0 0 0 0 0 0 0 0.181 0 0 0.399 0 0 0 0 0 0], [0.283 0 0 0 0 0 0 0.209 0.472 0 0.282 0 0.115 0 0 0 0 0.265 0.128 0 0.19 0 0 0 0 0.253 0.692 0], [0.182 0 0 0 0 0 0 0 0 0.282 0 0 0 0 0 0.649 0.314 0.535 0.318 0 0 0 0 0 0 0.469 0 0], [0.611 0 0 0.807 0 0 0 0.339 0 0 0 0.837 0 0 0 0.086 0 0.375 0 0 0 0 0 0 0 0 0 0.764], [0 0.793 0 0 0 0 0.133 0 0 0.115 0 0 0.296 0 0 0 0 0 0 0 0.251 0.603 0 0 0 0 0 0], [0.302 0 0 0 0 0 0 0.843 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0 0 0.449 0 0 0 0], [0.503 0.332 0 0 0 0.374 0.632 0 0 0 0 0 0 0 0 0.144 0 0 0 0 0 0 0 0 0 0.315 0 0], [0.128 0.173 0 0.235 0 0 0 0 0 0 0.649 0.086 0 0 0.144 0.467 0.069 0 0 0.33 0 0.852 0.313 0 0 0 0 0.3], [0.681 0 0 0 0.541 0 0 0 0 0 0.314 0 0 0 0 0.069 0.64 0.823 0 0.404 0.393 0.636 0.625 0.055 0 0.692 0.443 0.542], [0 0 0 0.325 0.815 0 0 0 0 0.265 0.535 0.375 0 0 0 0 0.823 0.249 0 0.502 0.657 0 0 0.24 0 0 0 0], [0 0 0 0.319 0 0 0 0 0.181 0.128 0.318 0 0 0 0 0 0 0 0.566 0 0 0 0 0.212 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.33 0.404 0.502 0 0.767 0 0 0.586 0.756 0 0 0 0], [0 0 0.21 0 0 0.135 0 0 0 0.19 0 0 0.251 0.08 0 0 0.393 0.657 0 0 0 0 0 0 0 0.718 0 0], [0 0 0.148 0 0 0 0 0.421 0.399 0 0 0 0.603 0 0 0.852 0.636 0 0 0 0 0.628 0 0 0 0 0 0], [0 0 0 0 0.318 0 0.343 0 0 0 0 0 0 0 0 0.313 0.625 0 0 0.586 0 0 0 0 0.182 0 0 0], [0 0 0 0 0.25 0 0.109 0 0 0 0 0 0 0.449 0 0 0.055 0.24 0.212 0.756 0 0 0 0.07 0.676 0.201 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.182 0.676 0.26 0 0 0], [0 0 0.674 0 0 0 0 0.73 0 0.253 0.469 0 0 0 0.315 0 0.692 0 0 0 0.718 0 0 0.201 0 0.593 0 0.719], [0 0.149 0 0 0 0 0 0.608 0 0.692 0 0 0 0 0 0 0.443 0 0 0 0 0 0 0 0 0 0 0.387], [0 0 0 0 0 0 0 0 0 0 0 0.764 0 0 0 0.3 0.542 0 0 0 0 0 0 0 0 0.719 0.387 0.32]], 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:
[4 1 2 4 4 5 4 7 4 9 10 11 12 13 14 15 4 4 18 19 20 21 4 4 24 25 26 27], [4 1 2 4 4 5 4 7 6 9 10 11 6 13 6 15 4 4 18 19 20 21 4 6 24 25 26 27], [4 1 2 4 4 5 4 7 6 9 10 11 6 23 6 15 23 23 23 23 20 21 4 6 23 23 26 27], [4 12 2 4 4 5 4 7 6 12 10 11 6 23 6 15 23 23 23 23 12 12 4 6 23 23 26 27], [4 12 2 4 4 5 4 7 6 12 16 11 6 23 6 16 23 23 23 16 12 12 4 6 23 23 16 16], [4 12 2 4 4 5 4 7 6 12 0 0 6 0 6 16 23 23 23 16 12 12 4 6 23 23 16 16], [4 12 2 4 4 5 4 7 6 12 0 0 6 0 6 16 23 23 23 16 12 12 4 6 22 23 16 16], [4 15 2 15 4 5 4 7 6 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 2 15 4 5 4 9 6 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 5 4 9 6 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 5 4 9 6 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 5 4 9 18 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 5 4 9 18 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 5 4 9 18 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 14 4 9 18 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 25 15 4 14 4 9 18 12 0 15 6 0 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 16 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15], [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15] | [4 15 20 15 4 20 4 9 18 12 0 15 6 20 15 16 23 23 23 15 12 12 4 6 22 23 1 15]
dijkstra
lcs_length: string: [0 0 1 1], key: [0 0 1 0], initial_trace: [[-1 -1 1 0], [-1 -1 1 0], [-1 -1 -1 -1], [-1 -1 -1 -1]] trace | b:
| [[-1 -1 1 0], [-1 -1 1 0], [-1 -1 -1 -1], [-1 -1 -1 -1]]
lcs_length
bellman_ford: s: 6, A: [[0 0 0.111 0 0 0 0.722 0 0 0 0], [0 0 0.219 0 0 0 0 0 0 0 0], [0.111 0.219 0 0 0 0 0 0 0 0 0.386], [0 0 0 0 0 0 0.484 0.328 0.141 0.05 0], [0 0 0 0 0.035 0 0 0.815 0 0 0], [0 0 0 0 0 0 0 0.641 0 0 0], [0.722 0 0 0.484 0 0 0.782 0.613 0 0 0], [0 0 0 0.328 0.815 0.641 0.613 0 0 0.733 0], [0 0 0 0.141 0 0 0 0 0 0 0], [0 0 0 0.05 0 0 0 0.733 0 0.661 0], [0 0 0.386 0 0 0 0 0 0 0 0.794]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[6 1 2 6 4 5 6 6 8 9 10], [6 1 0 6 7 7 6 6 3 3 10] | [6 2 0 6 7 7 6 6 3 3 2]
bellman_ford
activity_selector: s: [0.076 0.896 0.045 0.787 0.16 0.607 0.053 0.239 0.337 0.022 0.1 0.24 0.378 0.371 0.489], f: [0.833 0.984 0.28 0.822 0.235 0.648 0.239 0.895 0.93 0.544 0.804 0.715 0.705 0.928 0.642], initial_trace: [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 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 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 0 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 0 0 0 0 0 1], [0 0 0 0 1 0 0 0 0 0 0 0 0 0 1], [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 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 0 0 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 0 0 0 0 0 1] | [0 1 0 1 1 0 0 0 0 0 0 0 0 0 1]
activity_selector
quickselect: key: [0.496 0.925 0.653 0.234 0.516], initial_trace: 4 trace | pivot:
4, 4, 4 | 4
quickselect
task_scheduling: d: [1 1 5 1 1], w: [0.095 0.179 0.807 0.172 0.637], initial_trace: [0 0 0 0 0] trace | selected:
[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]
task_scheduling
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1], key: [0 0 2 2 3 2 0 0 2 2 1 0 3 3 2 3 3 1 3 0 2 2 3], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 0 | 1
kmp_matcher
bellman_ford: s: 8, A: [[0 0 0 0.44 0.595 0 0 0.569 0.299 0.716 0.394 0 0 0 0 0.731 0 0 0 0.978 0 0.396 0 0.524 0 0 0 0], [0 0 0 0.868 0 0 0 0 0 0 0 0 0 0.532 0 0 0 0.548 0.237 0 0 0 0.751 0.304 0 0 0.251 0], [0 0 0 0.35 0 0 0.973 0 0 0 0.131 0.134 0 0.713 0.544 0 0 0 0 0.699 0 0 0.482 0.298 0 0 0 0], [0.44 0.868 0.35 0 0 0 0.405 0 0.483 0 0.212 0 0 0 0 0 0 0 0.755 0 0 0 0 0.865 0.182 0 0 0.296], [0.595 0 0 0 0 0 0 0 0 0 0 0.789 0.421 0 0.177 0.418 0 0 0 0.449 0 0.26 0 0 0.34 0 0 0.609], [0 0 0 0 0 0.921 0 0 0 0.219 0.536 0 0.347 0.136 0.476 0.527 0 0.646 0 0 0 0 0 0 0.562 0 0 0], [0 0 0.973 0.405 0 0 0 0 0.477 0 0 0.886 0 0 0.237 0 0 0 0 0 0 0 0.535 0 0 0 0 0.764], [0.569 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.328 0.453 0 0 0 0 0 0 0 0 0 0], [0.299 0 0 0.483 0 0 0.477 0 0 0.384 0 0.831 0 0.066 0 0 0 0 0 0.963 0 0.276 0 0.583 0.143 0 0 0], [0.716 0 0 0 0 0.219 0 0 0.384 0.988 0 0.506 0 0 0.48 0 0 0.705 0 0 0 0 0.114 0 0 0 0 0.415], [0.394 0 0.131 0.212 0 0.536 0 0 0 0 0 0 0 0 0 0 0 0.24 0 0.478 0 0 0 0 0 0.459 0 0], [0 0 0.134 0 0.789 0 0.886 0 0.831 0.506 0 0 0 0 0 0 0 0 0.07 0 0 0 0 0 0 0.269 0 0], [0 0 0 0 0.421 0.347 0 0 0 0 0 0 0.644 0 0 0 0 0 0.343 0 0.635 0 0 0 0 0 0.493 0], [0 0.532 0.713 0 0 0.136 0 0 0.066 0 0 0 0 0.622 0 0 0 0.328 0 0 0.296 0 0.556 0 0 0 0 0], [0 0 0.544 0 0.177 0.476 0.237 0 0 0.48 0 0 0 0 0.506 0 0 0.689 0 0.804 0 0 0.316 0.32 0 0 0 0], [0.731 0 0 0 0.418 0.527 0 0 0 0 0 0 0 0 0 0.616 0.446 0 0 0.193 0.372 0 0 0.155 0 0 0.871 0], [0 0 0 0 0 0 0 0.328 0 0 0 0 0 0 0 0.446 0.346 0 0 0 0 0.662 0.262 0 0 0 0 0], [0 0.548 0 0 0 0.646 0 0.453 0 0.705 0.24 0 0 0.328 0.689 0 0 0.691 0 0 0 0 0.408 0 0.145 0 0 0], [0 0.237 0 0.755 0 0 0 0 0 0 0 0.07 0.343 0 0 0 0 0 0 0 0 0.454 0 0 0 0.541 0 0], [0.978 0 0.699 0 0.449 0 0 0 0.963 0 0.478 0 0 0 0.804 0.193 0 0 0 0.037 0.405 0 0 0 0 0.701 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0.635 0.296 0 0.372 0 0 0 0.405 0.349 0 0 0 0 0 0 0], [0.396 0 0 0 0.26 0 0 0 0.276 0 0 0 0 0 0 0 0.662 0 0.454 0 0 0 0 0 0 0 0 0], [0 0.751 0.482 0 0 0 0.535 0 0 0.114 0 0 0 0.556 0.316 0 0.262 0.408 0 0 0 0 0.303 0 0 0 0 0], [0.524 0.304 0.298 0.865 0 0 0 0 0.583 0 0 0 0 0 0.32 0.155 0 0 0 0 0 0 0 0.076 0.549 0.21 0 0.689], [0 0 0 0.182 0.34 0.562 0 0 0.143 0 0 0 0 0 0 0 0 0.145 0 0 0 0 0 0.549 0.4 0.084 0.535 0], [0 0 0 0 0 0 0 0 0 0 0.459 0.269 0 0 0 0 0 0 0.541 0.701 0 0 0 0.21 0.084 0 0 0.892], [0 0.251 0 0 0 0 0 0 0 0 0 0 0.493 0 0 0.871 0 0 0 0 0 0 0 0 0.535 0 0.904 0.279], [0 0 0 0.296 0.609 0 0.764 0 0 0.415 0 0 0 0 0 0 0 0 0 0 0 0 0 0.689 0 0.892 0.279 0.225]], 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:
[8 1 2 8 4 5 8 7 8 8 10 8 12 8 14 15 16 17 18 8 20 8 22 8 8 25 26 27], [8 13 13 24 24 13 8 0 8 8 0 8 12 8 6 23 21 24 21 8 13 8 9 8 8 24 24 3], [8 13 3 24 24 13 8 17 8 8 17 25 5 8 4 5 22 24 21 20 13 8 9 25 8 24 24 3] | [8 13 11 24 24 13 8 17 8 8 17 25 5 8 4 23 22 24 11 20 13 8 9 25 8 24 24 3]
bellman_ford
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [0 2 1 3 0 2 0 0 1 0 0 2], initial_trace: 0 trace | s:
0, 0 | 0
kmp_matcher
topological_sort: A: [[0 0 0 1 0 1 0 1 1 0 0 1 1 0 0], [0 0 1 0 0 0 1 0 0 1 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 1 0 0 0], [0 0 0 1 0 0 1 1 0 0 0 0 1 0 1], [0 0 0 0 0 0 0 1 1 0 0 1 1 0 1], [0 0 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 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 1 1 0 0 0 0 0 0 0 1 0 0 1], [0 0 1 0 0 0 0 0 1 0 0 0 1 0 1], [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 1 1 1 0 0 0 1 0 0], [0 0 1 0 0 0 0 0 1 0 0 0 1 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14], 2, [0 1 2 3 4 5 6 7 2 9 10 11 12 13 14], 8, [0 1 2 3 4 5 6 8 2 9 10 11 12 13 14], 7, [0 1 2 3 4 5 6 8 2 9 10 11 12 13 14], 7, [0 1 2 3 4 5 6 8 2 7 10 11 12 13 14], 9, [0 1 2 3 4 5 6 8 2 7 10 11 12 13 14], 9, [0 1 2 3 4 5 6 8 2 7 10 11 12 13 14], 9, [0 1 2 3 4 5 6 8 2 7 10 11 9 13 14], 12, [0 1 2 3 4 5 6 8 2 7 10 11 9 13 14], 12, [0 1 2 3 4 5 6 8 2 7 10 11 9 13 12], 14, [0 1 2 3 4 5 6 8 2 7 10 14 9 13 12], 11, [0 1 2 11 4 5 6 8 2 7 10 14 9 13 12], 3, [0 1 2 11 4 5 6 8 2 7 10 14 9 13 12], 3, [0 1 2 11 4 3 6 8 2 7 10 14 9 13 12], 5, [5 1 2 11 4 3 6 8 2 7 10 14 9 13 12], 0, [5 1 2 11 4 3 6 8 2 7 10 14 9 13 12], 0, [5 1 2 11 4 3 6 8 2 7 10 14 9 13 12], 0, [5 1 2 11 4 3 6 8 2 7 10 14 9 13 12], 0, [5 1 2 11 4 3 0 8 2 7 10 14 9 13 12], 6, [5 6 2 11 4 3 0 8 2 7 10 14 9 13 12], 1, [5 6 2 11 4 3 0 8 2 7 10 14 9 13 12], 1, [5 6 2 11 4 3 0 8 2 7 10 14 9 13 12], 1, [5 6 2 11 1 3 0 8 2 7 10 14 9 13 12], 4, [5 6 2 11 1 3 0 8 2 7 10 14 9 13 12], 4, [5 6 2 11 1 3 0 8 2 7 10 14 9 13 12], 4, [5 6 2 11 1 3 0 8 2 7 4 14 9 13 12], 10, [5 6 2 11 1 3 0 8 2 7 4 14 9 13 12], 10, [5 6 2 11 1 3 0 8 2 7 4 14 9 13 12], 10 | [5 6 2 11 1 3 0 8 2 7 4 14 9 10 12], 13
topological_sort
segments_intersect: x: [0.362 0.702 0.877 0.328], y: [0.627 0.431 0.212 0.515] intersect:
0
segments_intersect
find_maximum_subarray_kadane: key: [-0.345 -0.034 -0.474 0.708 -0.749 0.517 0.218 0.852 0.315 -0.083 0.67 0.856 -0.451 0.393 0.12 -0.403 0.059 0.912 -0.985], initial_trace: (0, 0) trace | (best_low, best_high):
(1, 1), (1, 1), (3, 3), (3, 3), (3, 3), (5, 6), (5, 7), (5, 8), (5, 8), (5, 10), (5, 11), (5, 11), (5, 11), (5, 14), (5, 14), (5, 14), (5, 17) | (5, 17)
find_maximum_subarray_kadane
minimum: key: [0.136 0.386 0.628 0.353 0.306 0.762 0.716 0.749 0.534 0.99 0.695 0.201 0.648 0.143 0.309 0.748 0.803 0.951 0.504 0.71 0.6 0.974 0.224 0.424 0.637 0.559 0.79 0.452], initial_trace: 0 trace | min:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | 0
minimum
find_maximum_subarray_kadane: key: [0.935 0.502 0 0.265 0.646 0.746 -0.884 0.232 -0.63 -0.99 0.512 -0.067 -0.071 -0.264 0.189 -0.523 0.007 -0.19 0.728], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 1), (0, 3), (0, 4), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5), (0, 5) | (0, 5)
find_maximum_subarray_kadane
activity_selector: s: [0.097 0.314 0.026 0.01 0.368 0.06 0.068 0.804 0.604 0.159 0.318 0.278 0.041 0.291 0.347 0.084 0.838 0.229 0.104], f: [0.856 0.994 0.204 0.692 0.497 0.532 0.929 0.967 0.883 0.815 0.352 0.497 0.81 0.649 0.362 0.815 0.847 0.934 0.587], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0], [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0] | [0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0]
activity_selector