Datasets:

question
stringlengths
65
3.42k
answer
stringlengths
3
5.8k
algo_name
stringclasses
30 values
topological_sort: A: [[0 1 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 1 0 0 0 0 0 0 0 0 0], [0 0 0 1 1 1 1 1 0 1 0 1 1 1 0 0 0 0 0], [1 0 0 0 1 0 0 0 0 0 0 1 0 1 1 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 1 0 1 0 0 0 1 1 0 1 0 1], [0 0 0 0 1 0 0 0 0 1 0 1 0 1 1 0 0 1 1], [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0], [0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0], [0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 1 0 0 0 1 0 0 0 0 1 0 0], [1 1 0 0 0 0 1 0 1 1 1 0 1 1 1 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [1 0 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 9, [0 9 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 9 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 9 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 9 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 9 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 17 18], 16, [0 9 2 3 16 5 6 7 8 9 10 11 12 13 14 15 1 17 18], 4, [0 9 2 3 16 5 6 7 8 9 10 4 12 13 14 15 1 17 18], 11, [0 9 2 3 16 5 6 7 8 9 10 4 12 13 14 15 1 17 18], 11, [0 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 18], 13, [0 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 18], 13, [0 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 18, [18 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 0, [18 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 0, [18 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 0, [18 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 0, [18 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 0, [18 9 2 3 16 5 6 7 8 9 10 4 12 11 14 15 1 17 13], 0, [18 9 2 3 16 5 6 0 8 9 10 4 12 11 14 15 1 17 13], 7, [18 9 2 3 16 5 6 0 8 9 10 4 12 11 7 15 1 17 13], 14, [18 9 2 14 16 5 6 0 8 9 10 4 12 11 7 15 1 17 13], 3, [18 9 2 14 16 5 6 0 8 9 10 4 12 11 7 15 1 17 13], 3, [18 9 2 14 16 3 6 0 8 9 10 4 12 11 7 15 1 17 13], 5, [18 9 2 14 16 3 6 0 8 9 10 4 12 11 7 15 1 17 13], 5, [18 9 2 14 16 3 6 0 8 9 10 4 12 11 7 15 1 17 13], 5, [18 9 2 14 16 3 6 0 8 9 10 4 12 11 7 15 1 5 13], 17, [18 9 2 14 16 3 17 0 8 9 10 4 12 11 7 15 1 5 13], 6, [18 9 2 14 16 3 17 0 8 9 10 4 12 11 7 15 1 5 13], 6, [18 9 2 14 16 3 17 0 8 9 10 4 6 11 7 15 1 5 13], 12, [18 9 12 14 16 3 17 0 8 9 10 4 6 11 7 15 1 5 13], 2, [18 9 12 14 16 3 17 0 8 9 10 4 6 11 7 15 1 5 13], 2, [18 9 12 14 16 3 17 0 8 9 10 4 6 11 7 15 1 5 13], 2, [18 9 12 14 16 3 17 0 2 9 10 4 6 11 7 15 1 5 13], 8, [18 9 12 14 16 3 17 0 2 9 10 4 6 11 7 15 1 5 13], 8, [18 9 12 14 16 3 17 0 2 9 10 4 6 11 7 15 1 5 13], 8, [18 9 12 14 16 3 17 0 2 9 8 4 6 11 7 15 1 5 13], 10, [18 9 12 14 16 3 17 0 2 9 8 4 6 11 7 15 1 5 13], 10, [18 9 12 14 16 3 17 0 2 9 8 4 6 11 7 15 1 5 13], 10 | [18 9 12 14 16 3 17 0 2 9 8 4 6 11 7 10 1 5 13], 15
topological_sort
lcs_length: string: [0 0 1 1], key: [2 1 2 1], initial_trace: [[-1 -1 0 2], [-1 -1 1 0], [-1 -1 -1 -1], [-1 -1 -1 -1]] trace | b:
| [[-1 -1 0 2], [-1 -1 1 0], [-1 -1 -1 -1], [-1 -1 -1 -1]]
lcs_length
floyd_warshall: A: [[0.568 0.75 0 0 0], [0.75 0.117 0 0 0], [0 0 0 0 0], [0 0 0 0.094 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
bellman_ford: s: 2, A: [[0 0.25 0.667 0 0 0.517 0 0 0.16 0.115 0 0], [0.25 0 0 0 0 0 0.215 0 0 0.338 0 0], [0.667 0 0.617 0 0 0 0.505 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0.503 0 0], [0 0 0 0 0.673 0 0 0.815 0 0 0 0], [0.517 0 0 0 0 0.868 0 0 0 0 0 0], [0 0.215 0.505 0 0 0 0.684 0 0 0 0.387 0.221], [0 0 0 0 0.815 0 0 0 0 0 0.774 0.299], [0.16 0 0 0 0 0 0 0 0 0.679 0.154 0.724], [0.115 0.338 0 0.503 0 0 0 0 0.679 0.032 0 0.59], [0 0 0 0 0 0 0.387 0.774 0.154 0 0.253 0], [0 0 0 0 0 0 0.221 0.299 0.724 0.59 0 0.299]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | pi:
[2 1 2 3 4 5 2 7 8 9 10 11], [2 6 2 3 4 0 2 7 0 0 6 6], [2 6 2 9 4 0 2 11 0 0 6 6] | [2 6 2 9 7 0 2 11 0 0 6 6]
bellman_ford
topological_sort: A: [[0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 0 1 1 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 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 1 1 1 0 0 0 0 1 0 0], [0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0], [0 0 1 1 0 0 0 0 0 1 0 1 1 1 0 1 1 0 0], [0 0 0 0 1 0 0 1 0 1 1 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0], [0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1], [0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0], [0 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 1 0], [0 1 1 0 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0], [0 0 0 0 1 1 0 1 0 0 0 0 1 1 0 1 0 0 0], [0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 0 1 1 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0], [0 1 0 1 1 1 0 0 0 1 0 0 1 0 0 0 0 1 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0 trace | topo, topo_head:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 0, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 2, [0 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18], 1, [0 2 2 3 4 5 6 7 8 9 10 1 12 13 14 15 16 17 18], 11, [0 2 2 3 4 5 6 7 8 9 10 1 12 13 14 15 16 17 18], 11, [0 2 2 3 4 5 6 7 8 9 10 1 12 13 14 15 11 17 18], 16, [0 2 2 3 4 5 6 7 8 9 10 1 12 13 14 15 11 17 18], 16, [0 2 2 3 4 5 6 7 8 9 10 1 12 13 14 15 11 16 18], 17, [0 2 2 3 4 5 6 17 8 9 10 1 12 13 14 15 11 16 18], 7, [0 2 2 3 4 5 6 17 8 9 10 1 12 13 14 15 11 16 18], 7, [0 2 2 3 4 5 6 17 8 9 10 1 12 13 14 15 11 16 18], 7, [0 2 2 3 7 5 6 17 8 9 10 1 12 13 14 15 11 16 18], 4, [0 2 2 3 7 5 6 17 8 4 10 1 12 13 14 15 11 16 18], 9, [0 2 2 3 7 5 6 17 8 4 10 1 12 13 14 15 11 16 18], 9, [0 2 2 3 7 5 6 17 8 4 10 1 12 13 14 15 11 16 18], 9, [0 2 2 3 7 5 6 17 8 4 10 1 9 13 14 15 11 16 18], 12, [0 2 2 3 7 5 6 17 8 4 12 1 9 13 14 15 11 16 18], 10, [0 2 2 10 7 5 6 17 8 4 12 1 9 13 14 15 11 16 18], 3, [0 2 2 10 7 5 6 17 8 4 12 1 9 13 14 15 11 16 18], 3, [0 2 2 10 7 5 6 17 8 4 12 1 9 13 14 15 11 16 18], 3, [0 2 2 10 7 5 6 17 8 4 12 1 9 3 14 15 11 16 18], 13, [0 2 2 10 7 5 6 17 8 4 12 1 9 3 14 15 11 16 18], 13, [0 2 2 10 7 5 6 17 8 4 12 1 9 3 14 13 11 16 18], 15, [0 2 2 10 7 15 6 17 8 4 12 1 9 3 14 13 11 16 18], 5, [0 2 2 10 7 15 6 17 8 4 12 1 9 3 14 13 11 16 18], 5, [0 2 2 10 7 15 6 17 8 4 12 1 9 3 14 13 11 16 5], 18, [18 2 2 10 7 15 6 17 8 4 12 1 9 3 14 13 11 16 5], 0, [18 2 2 10 7 15 6 17 8 4 12 1 9 3 14 13 11 16 5], 0, [18 2 2 10 7 15 6 17 8 4 12 1 9 3 14 13 11 16 5], 0, [18 2 2 10 7 15 0 17 8 4 12 1 9 3 14 13 11 16 5], 6, [18 2 2 10 7 15 0 17 8 4 12 1 9 3 14 13 11 16 5], 6, [18 2 2 10 7 15 0 17 8 4 12 1 9 3 14 13 11 16 5], 6, [18 2 2 10 7 15 0 17 6 4 12 1 9 3 14 13 11 16 5], 8, [18 2 2 10 7 15 0 17 6 4 12 1 9 3 14 13 11 16 5], 8, [18 2 2 10 7 15 0 17 6 4 12 1 9 3 14 13 11 16 5], 8 | [18 2 2 10 7 15 0 17 6 4 12 1 9 3 8 13 11 16 5], 14
topological_sort
minimum: key: [0.237 0.604 0.011 0.85 0.075 0.404 0.553 0.677 0.879 0.918], initial_trace: 0 trace | min:
0, 2, 2, 2, 2, 2, 2, 2 | 2
minimum
graham_scan: x: [-0.944 0.141 -0.72 1.34 0.511 -1.81 1.5 -0.591 0.768 1.56 -0.808 1.93 1.45 -0.678 -1.57 -1.48 1.3 -1.2 1.03], y: [-1.07 1.38 -1.22 1.21 1.16 -0.661 0.651 -0.928 -0.046 -0.731 1.44 -0.191 -0.831 -0.597 -0.84 0.053 -0.285 1.13 -0.818], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 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 1 0 0 1 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1], [0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 1 0 0], [0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 0 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 1 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 1 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 0 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0], [0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 0], [0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 1 0], [1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 1 0], [0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 1 0], [0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 0], [0 1 1 1 0 1 0 0 0 1 1 1 1 0 0 0 0 1 0] | [0 1 1 1 0 1 0 0 0 1 1 1 1 0 1 0 0 1 0]
graham_scan
mst_kruskal: A: [[0.495 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0.484 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.498 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0.498 0 0 0 0 0], [0 0 0.484 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 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 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 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 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 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 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 0 0 0 0 0 0 0]]
mst_kruskal
segments_intersect: x: [0.208 0.181 0.648 0.706], y: [0.79 0.494 0.32 0.566] intersect:
0
segments_intersect
insertion_sort: key: [0.924 0.789 0.257 0.018 0.429 0.055 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], initial_trace: [0.924 0.789 0.257 0.018 0.429 0.055 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551] trace | pred:
[0.789 0.924 0.257 0.018 0.429 0.055 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.257 0.789 0.924 0.018 0.429 0.055 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.257 0.789 0.924 0.429 0.055 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.257 0.429 0.789 0.924 0.055 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.055 0.257 0.429 0.789 0.924 0.603 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.055 0.257 0.429 0.603 0.789 0.924 0.473 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.055 0.257 0.429 0.473 0.603 0.789 0.924 0.886 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.055 0.257 0.429 0.473 0.603 0.789 0.886 0.924 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.055 0.257 0.429 0.473 0.603 0.789 0.886 0.924 0.981 0.127 0.43 0.091 0.674 0.551], [0.018 0.055 0.127 0.257 0.429 0.473 0.603 0.789 0.886 0.924 0.981 0.43 0.091 0.674 0.551], [0.018 0.055 0.127 0.257 0.429 0.43 0.473 0.603 0.789 0.886 0.924 0.981 0.091 0.674 0.551], [0.018 0.055 0.091 0.127 0.257 0.429 0.43 0.473 0.603 0.789 0.886 0.924 0.981 0.674 0.551], [0.018 0.055 0.091 0.127 0.257 0.429 0.43 0.473 0.603 0.674 0.789 0.886 0.924 0.981 0.551] | [0.018 0.055 0.091 0.127 0.257 0.429 0.43 0.473 0.551 0.603 0.674 0.789 0.886 0.924 0.981]
insertion_sort
quickselect: key: [0.326 0.958 0.346 0.134 0.266 0.335 0.323 0.135 0.078 0.313 0.309 0.671 0.525 0.487 0.361 0.58 0.87 0.815 0.399 0.973 0.957 0.7 0.103 0.898 0.696 0.294 0.771 0.018], initial_trace: 27 trace | pivot:
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 18, 18 | 18
quickselect
find_maximum_subarray_kadane: key: [0.489 -0.283 -0.844 -0.695 -0.913 0.156 0.846 -0.967 0.12 0.824 0.524 -0.528 0.563 -0.442 -0.629 0.623 0.055 -0.534 0.063], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (5, 6), (5, 6), (5, 6), (5, 6), (5, 10), (5, 10), (5, 12), (5, 12), (5, 12), (5, 12), (5, 12), (5, 12) | (5, 12)
find_maximum_subarray_kadane
activity_selector: s: [0.772 0.097 0.174 0.213 0.104 0.844 0.546 0.016 0.485 0.014 0.647 0.138 0.116 0.515 0.468 0.262 0.45 0.042 0.374 0.443 0.155 0.168 0.045 0.634 0.604 0.023 0.586 0.068 0.162 0.443 0.831], f: [0.775 0.603 0.326 0.551 0.446 0.856 0.853 0.399 0.701 0.656 0.952 0.518 0.834 0.516 0.777 0.294 0.478 0.193 0.807 0.527 0.478 0.872 0.669 0.656 0.8 0.903 0.965 0.196 0.624 0.725 0.964], 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 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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1 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0], [1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0] | [1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0]
activity_selector
minimum: key: [0.664 0.694 0.785 0.977 0.488 0.582 0.729 0.317 0.099 0.105 0.879], initial_trace: 0 trace | min:
0, 0, 0, 4, 4, 4, 7, 8, 8 | 8
minimum
binary_search: key: [0.021 0.461 0.629 0.633], target: 0.382, initial_trace: (0, 3) trace | (low, high):
(0, 1) | (1, 1)
binary_search
insertion_sort: key: [0.214 0.567 0.764 0.097 0.151 0.43 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], initial_trace: [0.214 0.567 0.764 0.097 0.151 0.43 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628] trace | pred:
[0.214 0.567 0.764 0.097 0.151 0.43 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.214 0.567 0.764 0.097 0.151 0.43 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.097 0.214 0.567 0.764 0.151 0.43 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.097 0.151 0.214 0.567 0.764 0.43 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.097 0.151 0.214 0.43 0.567 0.764 0.465 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.097 0.151 0.214 0.43 0.465 0.567 0.764 0.265 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.097 0.151 0.214 0.265 0.43 0.465 0.567 0.764 0.084 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.084 0.097 0.151 0.214 0.265 0.43 0.465 0.567 0.764 0.311 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.084 0.097 0.151 0.214 0.265 0.311 0.43 0.465 0.567 0.764 0.659 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.084 0.097 0.151 0.214 0.265 0.311 0.43 0.465 0.567 0.659 0.764 0.206 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.084 0.097 0.151 0.206 0.214 0.265 0.311 0.43 0.465 0.567 0.659 0.764 0.261 0.843 0.018 0.514 0.9 0.096 0.628], [0.084 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.567 0.659 0.764 0.843 0.018 0.514 0.9 0.096 0.628], [0.084 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.567 0.659 0.764 0.843 0.018 0.514 0.9 0.096 0.628], [0.018 0.084 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.567 0.659 0.764 0.843 0.514 0.9 0.096 0.628], [0.018 0.084 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.514 0.567 0.659 0.764 0.843 0.9 0.096 0.628], [0.018 0.084 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.514 0.567 0.659 0.764 0.843 0.9 0.096 0.628], [0.018 0.084 0.096 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.514 0.567 0.659 0.764 0.843 0.9 0.628] | [0.018 0.084 0.096 0.097 0.151 0.206 0.214 0.261 0.265 0.311 0.43 0.465 0.514 0.567 0.628 0.659 0.764 0.843 0.9]
insertion_sort
find_maximum_subarray_kadane: key: [0.516 0.687 0.278 -0.867 -0.957 0.773 -0.905 -0.162 -0.577 -0.687], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2) | (0, 2)
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: [2 3 1 1 0 2 1 1 0 3 3 3 1 2 3 2 3 0 0 2 1 3 2 3 3 3 1 2], initial_trace: 0 trace | s:
1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9 | 9
naive_string_matcher
strongly_connected_components: A: [[0 0 1 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 1 0 1 0 0], [0 0 1 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0 1 0], [0 0 0 0 1 1 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 1 0], [0 1 0 0 0 0 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 5 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 7 8 9 10 11], [0 1 2 3 4 4 6 1 8 9 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11], [0 1 2 3 4 4 6 1 8 1 10 11] | [0 1 2 3 4 4 6 1 8 1 10 11]
strongly_connected_components
task_scheduling: d: [31 12 6 18 8 28 28 16 18 24 19 22 2 13 24 20 14 2 17 17 29 6 1 25 12 2 1 29 25 19 9], w: [0.386 0.964 0.477 0.801 0.625 0.361 0.733 0.287 0.369 0.389 0.884 0.451 0.397 0.586 0.893 0.735 0.922 0.356 0.046 0.184 0.602 0.585 0.303 0.976 0.745 0.343 0.164 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_scheduling
bellman_ford: s: 3, A: [[0.807 0 0.163 0.123 0 0 0 0 0 0 0], [0 0 0 0.082 0 0 0 0 0.347 0 0], [0.163 0 0.052 0 0 0.679 0 0.334 0 0 0], [0.123 0.082 0 0.722 0 0 0 0 0 0.661 0.542], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0.679 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0], [0 0 0.334 0 0 0 0 0 0 0 0.218], [0 0.347 0 0 0 0 0 0 0.338 0 0], [0 0 0 0.661 0 0 0 0 0 0.986 0], [0 0 0 0.542 0 0 0 0.218 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[3 3 2 3 4 5 6 7 8 3 3], [3 3 0 3 4 5 6 10 1 3 3] | [3 3 0 3 4 2 6 2 1 3 3]
bellman_ford
strongly_connected_components: A: [[0 0 0 0 0 0 1 0 0 0], [0 0 0 1 1 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 1 0 0 0 0 1], [0 1 0 1 1 0 0 0 0 0], [0 0 0 0 0 0 0 1 0 0], [1 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 1 0 1 0 0], [0 0 1 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | scc_id:
[0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 4 5 6 5 8 9], [0 1 2 3 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 6 5 8 9], [0 1 2 1 1 5 0 5 8 9] | [0 1 2 1 1 5 0 5 8 9]
strongly_connected_components
insertion_sort: key: [0.865 0.957 0.132 0.452], initial_trace: [0.865 0.957 0.132 0.452] trace | pred:
[0.865 0.957 0.132 0.452], [0.132 0.865 0.957 0.452] | [0.132 0.452 0.865 0.957]
insertion_sort
dijkstra: s: 5, A: [[0 0.198 0.193 0 0 0.407 0 0 0.482 0 0 0 0 0 0.094 0.122 0 0.92 0], [0.198 0.811 0 0 0 0.148 0.161 0 0 0 0.472 0 0 0 0.586 0 0 0 0], [0.193 0 0.74 0.528 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0 0.128], [0 0 0.528 0.845 0.871 0 0 0 0.506 0 0 0 0 0 0.486 0 0 0 0], [0 0 0 0.871 0.049 0.739 0.524 0.707 0 0 0 0 0 0 0 0 0 0.167 0], [0.407 0.148 0 0 0.739 0 0 0 0 0 0.299 0 0 0 0.352 0 0 0 0], [0 0.161 0 0 0.524 0 0.487 0.494 0 0.346 0 0 0 0.412 0.242 0.566 0 0.594 0], [0 0 0 0 0.707 0 0.494 0 0 0.599 0 0 0.446 0 0 0 0 0 0], [0.482 0 0 0.506 0 0 0 0 0.302 0.706 0 0 0 0 0 0 0 0.15 0], [0 0 0 0 0 0 0.346 0.599 0.706 0 0 0 0.566 0.159 0.543 0 0.575 0 0], [0 0.472 0 0 0 0.299 0 0 0 0 0.439 0.43 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0.43 0.474 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0.446 0 0.566 0 0 0.135 0.527 0.342 0 0 0 0], [0 0 0 0 0 0 0.412 0 0 0.159 0 0 0.527 0.233 0.467 0 0 0 0], [0.094 0.586 0 0.486 0 0.352 0.242 0 0 0.543 0 0 0.342 0.467 0 0 0.595 0 0.729], [0.122 0 0 0 0 0 0.566 0 0 0 0 0 0 0 0 0.032 0 0.353 0], [0 0 0.09 0 0 0 0 0 0 0.575 0 0 0 0 0.595 0 0.856 0 0], [0.92 0 0 0 0.167 0 0.594 0 0.15 0 0 0 0 0 0 0.353 0 0 0.476], [0 0 0.128 0 0 0 0 0 0 0 0 0 0 0 0.729 0 0 0.476 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[5 5 2 3 5 5 6 7 8 9 5 11 12 13 5 15 16 17 18], [1 5 2 3 5 5 1 7 8 9 5 11 12 13 5 15 16 17 18], [1 5 2 3 5 5 1 7 8 9 5 10 12 13 5 15 16 17 18], [1 5 2 3 5 5 1 6 8 6 5 10 12 6 5 6 16 6 18], [1 5 0 3 5 5 1 6 0 6 5 10 12 6 5 0 16 6 18], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 14 6 14], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 14 15 14], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2], [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2] | [1 5 0 14 5 5 1 6 0 6 5 10 14 6 5 0 2 15 2]
dijkstra
dag_shortest_paths: s: 3, A: [[0 0 0.168 0], [0 0 0.89 0.315], [0 0 0 0.404], [0 0 0 0]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 3], [0 1 2 3] | [0 1 2 3]
dag_shortest_paths
segments_intersect: x: [0.815 0.159 0.674 0.719], y: [0.685 0.037 0.664 0.826] intersect:
0
segments_intersect
bridges: A: [[0 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
minimum: key: [0.037 0.789 0.341 0.567], initial_trace: 0 trace | min:
0, 0 | 0
minimum
binary_search: key: [0.044 0.144 0.275 0.401 0.557 0.62 0.642 0.863 0.892 0.904 0.995], target: 0.873, initial_trace: (0, 10) trace | (low, high):
(6, 10), (6, 8) | (8, 8)
binary_search
binary_search: key: [0.046 0.089 0.121 0.128 0.201 0.233 0.28 0.333 0.377 0.378 0.389 0.425 0.462 0.493 0.499 0.569 0.578 0.636 0.685 0.929 0.949 0.955 0.994], target: 0.093, initial_trace: (0, 22) trace | (low, high):
(0, 11), (0, 5), (0, 2) | (2, 2)
binary_search
strongly_connected_components: A: [[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]], 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
segments_intersect: x: [0.368 0.8 0.47 0.423], y: [0.466 0.98 0.544 0.921] intersect:
1
segments_intersect
dijkstra: s: 6, A: [[0 0.372 0.43 0 0.601 0.047 0 0 0.467 0.323 0 0 0 0 0 0.166 0 0 0.118 0 0 0 0.297 0 0 0 0 0], [0.372 0 0 0.614 0 0 0.797 0 0 0.092 0 0 0 0.777 0.53 0 0 0 0.638 0 0 0 0 0 0.86 0.38 0 0], [0.43 0 0.576 0 0 0 0 0 0 0 0 0.83 0 0 0.533 0.431 0 0 0 0 0 0 0 0 0 0 0 0], [0 0.614 0 0 0.09 0.084 0 0.441 0.233 0 0 0 0 0 0.552 0 0 0 0 0 0 0 0.666 0 0 0.558 0 0], [0.601 0 0 0.09 0 0 0.654 0.266 0.373 0 0.125 0 0.361 0 0 0 0 0 0 0 0 0.269 0 0 0 0.622 0 0.361], [0.047 0 0 0.084 0 0 0 0 0 0 0 0 0 0 0 0.189 0.332 0 0 0.792 0 0 0 0.884 0 0 0 0], [0 0.797 0 0 0.654 0 0.124 0.147 0.353 0 0.566 0.106 0 0 0 0 0 0 0.142 0 0 0.199 0 0 0.569 0 0 0.635], [0 0 0 0.441 0.266 0 0.147 0.692 0.286 0 0 0 0 0 0 0 0.481 0.636 0 0 0 0 0 0 0.798 0.156 0 0.451], [0.467 0 0 0.233 0.373 0 0.353 0.286 0.393 0 0.471 0 0 0 0 0 0 0 0.434 0.592 0.479 0 0.748 0.349 0.614 0 0 0], [0.323 0.092 0 0 0 0 0 0 0 0 0 0 0 0.435 0 0 0.335 0 0.505 0 0 0 0.843 0.579 0 0 0.449 0.596], [0 0 0 0 0.125 0 0.566 0 0.471 0 0.51 0 0 0.601 0 0 0 0.204 0 0 0.124 0 0 0.206 0 0 0 0], [0 0 0.83 0 0 0 0.106 0 0 0 0 0.301 0 0 0 0 0 0 0 0 0 0.494 0 0.773 0 0 0 0.791], [0 0 0 0 0.361 0 0 0 0 0 0 0 0 0 0.543 0 0 0.585 0 0.33 0.102 0 0 0.434 0 0 0.502 0], [0 0.777 0 0 0 0 0 0 0 0.435 0.601 0 0 0 0 0 0 0 0 0.705 0 0 0.491 0.65 0 0 0.465 0], [0 0.53 0.533 0.552 0 0 0 0 0 0 0 0 0.543 0 0 0 0 0.585 0 0.433 0.61 0 0 0.209 0 0 0 0.193], [0.166 0 0.431 0 0 0.189 0 0 0 0 0 0 0 0 0 0.128 0 0.636 0 0 0 0 0 0 0 0 0 0.543], [0 0 0 0 0 0.332 0 0.481 0 0.335 0 0 0 0 0 0 0 0 0.453 0 0 0 0 0.261 0.062 0 0 0], [0 0 0 0 0 0 0 0.636 0 0 0.204 0 0.585 0 0.585 0.636 0 0 0.865 0.369 0 0 0 0 0.333 0 0 0.046], [0.118 0.638 0 0 0 0 0.142 0 0.434 0.505 0 0 0 0 0 0 0.453 0.865 0 0 0.309 0 0 0 0 0 0 0], [0 0 0 0 0 0.792 0 0 0.592 0 0 0 0.33 0.705 0.433 0 0 0.369 0 0 0 0 0 0 0.285 0 0.56 0], [0 0 0 0 0 0 0 0 0.479 0 0.124 0 0.102 0 0.61 0 0 0 0.309 0 0.943 0.62 0 0 0 0 0 0.52], [0 0 0 0 0.269 0 0.199 0 0 0 0 0.494 0 0 0 0 0 0 0 0 0.62 0 0 0.71 0 0 0 0], [0.297 0 0 0.666 0 0 0 0 0.748 0.843 0 0 0 0.491 0 0 0 0 0 0 0 0 0.384 0 0 0 0 0], [0 0 0 0 0 0.884 0 0 0.349 0.579 0.206 0.773 0.434 0.65 0.209 0 0.261 0 0 0 0 0.71 0 0 0 0 0 0.58], [0 0.86 0 0 0 0 0.569 0.798 0.614 0 0 0 0 0 0 0 0.062 0.333 0 0.285 0 0 0 0 0 0 0 0], [0 0.38 0 0.558 0.622 0 0 0.156 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.601], [0 0 0 0 0 0 0 0 0 0.449 0 0 0.502 0.465 0 0 0 0 0 0.56 0 0 0 0 0 0 0.78 0], [0 0 0 0 0.361 0 0.635 0.451 0 0.596 0 0.791 0 0 0.193 0.543 0 0.046 0 0 0.52 0 0 0.58 0 0.601 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 6 2 3 6 5 6 6 6 9 6 6 12 13 14 15 16 17 6 19 20 6 22 23 6 25 26 6], [0 6 11 3 6 5 6 6 6 9 6 6 12 13 14 15 16 17 6 19 20 6 22 11 6 25 26 6], [18 18 11 3 6 5 6 6 6 18 6 6 12 13 14 15 18 18 6 19 18 6 22 11 6 25 26 6], [18 18 11 7 7 5 6 6 6 18 6 6 12 13 14 15 18 7 6 19 18 6 22 11 6 7 26 7], [18 18 11 7 7 5 6 6 6 18 6 6 12 13 14 15 18 7 6 19 18 6 22 11 6 7 26 7], [18 0 0 7 7 0 6 6 6 0 6 6 12 13 14 0 18 7 6 19 18 6 0 11 6 7 26 7], [18 0 0 7 7 0 6 6 6 0 6 6 12 13 14 0 18 7 6 19 18 6 0 11 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 6 6 12 13 14 0 18 7 6 5 18 6 0 11 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 6 6 12 13 14 0 18 7 6 8 18 6 0 8 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 6 6 12 13 3 0 18 7 6 8 18 6 0 8 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 4 6 4 13 3 0 18 7 6 8 18 6 0 8 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 4 6 4 13 3 0 18 7 6 8 18 6 0 8 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 13 3 0 18 7 6 8 18 6 0 8 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 10 3 0 18 10 6 8 18 6 0 8 6 7 26 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 10 3 0 18 10 6 12 18 6 0 8 6 7 12 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 22 3 0 18 10 6 12 18 6 0 8 6 7 12 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 22 3 0 18 10 6 24 18 6 0 8 6 7 12 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 3 0 18 10 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 3 0 18 10 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7], [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7] | [18 0 0 5 7 0 6 6 6 0 4 6 20 9 27 0 18 27 6 24 18 6 0 8 6 7 9 7]
dijkstra
dfs: A: [[1 1 0 1], [0 1 0 1], [0 0 1 0], [0 1 1 0]], initial_trace: [0 1 2 3] trace | pi:
[0 1 2 3], [0 0 2 3], [0 0 2 3], [0 0 2 1], [0 0 2 1], [0 0 3 1], [0 0 3 1], [0 0 3 1], [0 0 3 1], [0 0 3 1] | [0 0 3 1]
dfs
insertion_sort: key: [0.252 0.775 0.564 0.235 0.911 0.262 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], initial_trace: [0.252 0.775 0.564 0.235 0.911 0.262 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56] trace | pred:
[0.252 0.775 0.564 0.235 0.911 0.262 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.252 0.564 0.775 0.235 0.911 0.262 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.564 0.775 0.911 0.262 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.564 0.775 0.911 0.262 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.262 0.564 0.775 0.911 0.469 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.262 0.469 0.564 0.775 0.911 0.285 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.262 0.285 0.469 0.564 0.775 0.911 0.533 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.262 0.285 0.469 0.533 0.564 0.775 0.911 0.365 0.097 0.136 0.425 0.543 0.56], [0.235 0.252 0.262 0.285 0.365 0.469 0.533 0.564 0.775 0.911 0.097 0.136 0.425 0.543 0.56], [0.097 0.235 0.252 0.262 0.285 0.365 0.469 0.533 0.564 0.775 0.911 0.136 0.425 0.543 0.56], [0.097 0.136 0.235 0.252 0.262 0.285 0.365 0.469 0.533 0.564 0.775 0.911 0.425 0.543 0.56], [0.097 0.136 0.235 0.252 0.262 0.285 0.365 0.425 0.469 0.533 0.564 0.775 0.911 0.543 0.56], [0.097 0.136 0.235 0.252 0.262 0.285 0.365 0.425 0.469 0.533 0.543 0.564 0.775 0.911 0.56] | [0.097 0.136 0.235 0.252 0.262 0.285 0.365 0.425 0.469 0.533 0.543 0.56 0.564 0.775 0.911]
insertion_sort
binary_search: key: [0.116 0.195 0.2 0.277 0.291 0.346 0.399 0.481 0.553 0.559 0.628 0.712 0.815 0.842 0.863 0.907 0.948 0.959 0.996], target: 0.104, initial_trace: (0, 18) trace | (low, high):
(0, 9), (0, 4), (0, 2), (0, 1) | (0, 0)
binary_search
task_scheduling: d: [4 8 6 1 8 4 8 2 1 6], w: [0.303 0.482 0.306 0.454 0.065 0.471 0.417 0.434 0.57 0.595], initial_trace: [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 1], [0 1 0 0 0 0 0 0 0 1], [0 1 0 0 0 1 0 0 0 1], [0 1 0 0 0 1 0 0 0 1], [0 1 0 0 0 1 0 0 0 1], [0 1 0 0 0 1 1 0 0 1], [0 1 1 0 0 1 1 0 0 1], [0 1 1 0 0 1 1 0 0 1] | [0 1 1 0 1 1 1 0 0 1]
task_scheduling
graham_scan: x: [-1.1 -1.24 1.67 -1.4 -0.644 -1.99 -0.223 -1.11 1.11 0.38 0.108 -1.91 0.539 -1.06 0.652 1.18 -1.49 -1.92 1.24 0.307 -0.959 1.17 -1.46], y: [1.24 -1.21 -0.242 -1.29 0.495 0.095 -0.851 1.59 0.823 -0.803 -0.855 -0.483 -1.84 -0.291 0.657 0.839 -0.72 -0.42 -1.42 0.687 0.594 0.948 -1.3], 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 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0], [0 0 1 0 0 0 0 0 0 0 0 0 1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 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0], [0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 1 1 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0], [0 1 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0], [0 0 1 1 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0], [0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0] | [0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 1 1]
graham_scan
kmp_matcher: string: [0 0 0 1], key: [1 0 3 0], initial_trace: 0 trace | s:
0 | 1
kmp_matcher
activity_selector: s: [0.011 0.008 0.322 0.028 0.515 0.939 0.261 0.227 0.063 0.265], f: [0.815 0.835 0.444 0.685 0.679 0.986 0.861 0.631 0.463 0.386], initial_trace: [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 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 1 0 0 0 1]
activity_selector
activity_selector: s: [0.131 0.006 0.216 0.174 0.447 0.911 0.63 0.09 0.353 0.67 0.45 0.196], f: [0.742 0.291 0.324 0.312 0.459 0.975 0.777 0.846 0.708 0.726 0.671 0.49], initial_trace: [0 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], [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 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 0 0 0], [0 1 0 0 1 0 0 0 0 1 0 0], [0 1 0 0 1 0 0 0 0 1 0 0], [0 1 0 0 1 0 0 0 0 1 0 0], [0 1 0 0 1 0 0 0 0 1 0 0] | [0 1 0 0 1 1 0 0 0 1 0 0]
activity_selector
binary_search: key: [0.064 0.14 0.142 0.398 0.404 0.424 0.476 0.601 0.636 0.876], target: 0.700, initial_trace: (0, 9) trace | (low, high):
(5, 9), (8, 9) | (9, 9)
binary_search
task_scheduling: d: [17 4 19 11 7 16 14 11 9 10 17 1 1 17 2 19 6 13 14], w: [0.729 0.54 0.875 0.722 0.743 0.274 0.73 0.382 0.963 0.01 0.703 0.427 0.036 0.518 0.219 0.236 0.111 0.179 0.099], 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 1 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0], [0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0], [1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0], [1 0 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0], [1 0 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0], [1 0 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0], [1 0 1 1 1 0 1 0 1 0 1 0 0 1 0 0 0 0 0], [1 0 1 1 1 0 1 0 1 0 1 0 0 1 0 0 0 0 0], [1 0 1 1 1 0 1 1 1 0 1 0 0 1 0 0 0 0 0], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 0 0 0 0], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 1 0], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 1 0], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 1 1], [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 1 1] | [1 0 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 1 1]
task_scheduling
quickselect: key: [0.55 0.848 0.27 0.897 0.235 0.338 0.145 0.789 0.503 0.473 0.865 0.558 0.17 0.652 0.437 0.151 0.322 0.432 0.091], initial_trace: 18 trace | pivot:
18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 14, 14 | 14
quickselect
quickselect: key: [0.386 0.06 0.37 0.357 0.15 0.301 0.975 0.36 0.145 0.059 0.726 0.221 0.76 0.668 0.176], initial_trace: 14 trace | pivot:
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 11, 5, 5, 5, 5, 7, 7, 7 | 3
quickselect
lcs_length: string: [0 0 1 1], key: [1 0 3 2], 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
minimum: key: [0.059 0.899 0.472 0.405 0.98 0.539 0.248 0.772 0.435 0.243 0.467], initial_trace: 0 trace | min:
0, 0, 0, 0, 0, 0, 0, 0, 0 | 0
minimum
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 1 0 1 1 3 2 0 3 3 1 2 1 3 2 2 2 2 3 2 0 0 0 1 3 2 2 2], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11 | 12
kmp_matcher
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [2 1 3 0 1 0 3 2 2 2 0 3 3 1 3 0 0 1 0], initial_trace: 0 trace | s:
1, 2, 3, 3 | 3
naive_string_matcher
topological_sort: A: [[0 0 0 0 0], [1 0 0 0 1], [0 0 0 0 0], [0 0 1 0 1], [0 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 1 2 3 4], 0, [0 1 2 3 0], 4, [0 4 2 3 0], 1, [0 4 2 3 0], 1, [0 4 2 3 0], 1, [0 4 1 3 0], 2, [0 4 1 3 0], 2, [0 4 1 3 0], 2 | [0 4 1 2 0], 3
topological_sort
activity_selector: s: [0.067 0.131 0.659 0.937 0.342 0.123 0.033 0.593 0.303 0.007 0.711 0.295 0.307 0.091 0.829 0.7 0.365 0.198 0.312 0.19 0.787 0.862 0.322], f: [0.644 0.187 0.99 0.982 0.509 0.607 0.616 0.825 0.49 0.643 0.847 0.861 0.499 0.955 0.958 0.97 0.513 0.272 0.574 0.668 0.849 0.991 0.565], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], [0 1 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0 0 0]
activity_selector
dag_shortest_paths: s: 6, A: [[0 0 0 0 0 0 0 0 0.412 0], [0.46 0 0 0 0 0.127 0 0 0.733 0], [0.802 0 0 0 0 0 0 0 0.791 0], [0.324 0 0.616 0 0 0 0 0 0.525 0], [0.478 0 0 0 0 0 0 0 0.434 0], [0.904 0 0 0.462 0 0 0.102 0 0.392 0], [0 0 0.841 0 0 0 0 0 0.847 0], [0.849 0.28 0 0 0 0 0.876 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0.111 0.66 0.195 0.0301 0.528 0 0.125 0 0.488 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | pi:
[0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 6 3 4 5 6 7 6 9], [2 1 6 3 4 5 6 7 6 9] | [2 1 6 3 4 5 6 7 6 9]
dag_shortest_paths
naive_string_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1], key: [0 3 1 3 1 2 3 2 2 1 1 0 2 2 1 3 0 1 3 0 0 0 1 2 1 3 0 1], initial_trace: 0 trace | s:
1, 2, 3, 4, 5, 5, 6, 7, 7, 8, 8, 8, 9, 10, 11, 12, 12, 13, 13, 13, 13 | 13
naive_string_matcher
dijkstra: s: 5, A: [[0 0 0 0 0.84 0.387 0 0 0 0 0.45], [0 0.438 0 0.546 0 0 0 0 0.527 0 0.63], [0 0 0.805 0.172 0 0.708 0 0 0 0 0], [0 0.546 0.172 0 0 0.349 0 0.886 0 0 0.127], [0.84 0 0 0 0 0 0 0 0.973 0 0], [0.387 0 0.708 0.349 0 0 0 0.194 0 0.276 0], [0 0 0 0 0 0 0.621 0.804 0 0 0], [0 0 0 0.886 0 0.194 0.804 0 0 0.782 0], [0 0.527 0 0 0.973 0 0 0 0 0 0], [0 0 0 0 0 0.276 0 0.782 0 0 0], [0.45 0.63 0 0.127 0 0 0 0 0 0 0.297]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10] trace | pi:
[5 1 5 5 4 5 6 5 8 5 10], [5 1 5 5 4 5 7 5 8 5 10], [5 1 5 5 4 5 7 5 8 5 10], [5 3 3 5 4 5 7 5 8 5 3], [5 3 3 5 0 5 7 5 8 5 3], [5 3 3 5 0 5 7 5 8 5 3], [5 3 3 5 0 5 7 5 8 5 3], [5 3 3 5 0 5 7 5 1 5 3], [5 3 3 5 0 5 7 5 1 5 3], [5 3 3 5 0 5 7 5 1 5 3] | [5 3 3 5 0 5 7 5 1 5 3]
dijkstra
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 1 1], key: [2 0 1 1 2 2 1 1 2 1 0 1], initial_trace: 0 trace | s:
0, 0, 0 | 1
kmp_matcher
topological_sort: A: [[0 0 0 0], [1 0 0 1], [0 0 0 1], [0 0 0 0]], initial_trace: [0 1 2 3], 0 trace | topo, topo_head:
[0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 0], 3, [0 3 2 0], 1, [0 3 2 0], 1, [0 3 2 0], 1 | [0 3 1 0], 2
topological_sort
find_maximum_subarray_kadane: key: [0.513 -0.191 0.178 0.367 0.431 0.914 0.905 -0.035 -0.983 -0.196 0.2 0.393 0.615 -0.148 -0.846 -0.762 0.707 -0.412 0.688 -0.664 0.879 0.537 0.073], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 0), (0, 0), (0, 3), (0, 4), (0, 5), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6), (0, 6) | (0, 22)
find_maximum_subarray_kadane
find_maximum_subarray_kadane: key: [0.248 0.852 0.441 -0.114 -0.684 -0.416 -0.236 0.663 -0.968 0.892 0.28 0.713], initial_trace: (0, 0) trace | (best_low, best_high):
(0, 1), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2), (0, 2) | (9, 11)
find_maximum_subarray_kadane
dijkstra: s: 12, A: [[0 0.308 0 0 0.234 0 0 0 0 0 0 0 0.562 0 0], [0.308 0 0 0 0.888 0.321 0 0.097 0 0.728 0 0 0 0 0], [0 0 0.04 0 0 0 0 0 0 0 0 0 0 0 0.257], [0 0 0 0.123 0 0 0 0 0 0 0 0 0 0 0.713], [0.234 0.888 0 0 0 0.545 0 0.615 0.64 0 0.051 0 0 0 0.613], [0 0.321 0 0 0.545 0 0 0 0 0.407 0.866 0 0 0.845 0], [0 0 0 0 0 0 0.408 0 0.651 0 0 0 0 0 0], [0 0.097 0 0 0.615 0 0 0 0.362 0 0.377 0 0 0 0.608], [0 0 0 0 0.64 0 0.651 0.362 0.657 0 0 0.196 0 0 0], [0 0.728 0 0 0 0.407 0 0 0 0.896 0 0 0 0 0.347], [0 0 0 0 0.051 0.866 0 0.377 0 0 0.097 0 0 0.831 0], [0 0 0 0 0 0 0 0 0.196 0 0 0 0 0 0], [0.562 0 0 0 0 0 0 0 0 0 0 0 0.517 0.217 0], [0 0 0 0 0 0.845 0 0 0 0 0.831 0 0.217 0 0], [0 0 0.257 0.713 0.613 0 0 0.608 0 0.347 0 0 0 0 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[12 1 2 3 4 5 6 7 8 9 10 11 12 12 14], [12 1 2 3 4 13 6 7 8 9 13 11 12 12 14], [12 0 2 3 0 13 6 7 8 9 13 11 12 12 14], [12 0 2 3 0 13 6 4 4 9 4 11 12 12 4], [12 0 2 3 0 13 6 10 4 9 4 11 12 12 4], [12 0 2 3 0 13 6 1 4 1 4 11 12 12 4], [12 0 2 3 0 13 6 1 7 1 4 11 12 12 4], [12 0 2 3 0 13 6 1 7 5 4 11 12 12 4], [12 0 2 3 0 13 8 1 7 5 4 8 12 12 4], [12 0 14 14 0 13 8 1 7 5 4 8 12 12 4], [12 0 14 14 0 13 8 1 7 5 4 8 12 12 4], [12 0 14 14 0 13 8 1 7 5 4 8 12 12 4], [12 0 14 14 0 13 8 1 7 5 4 8 12 12 4], [12 0 14 14 0 13 8 1 7 5 4 8 12 12 4] | [12 0 14 14 0 13 8 1 7 5 4 8 12 12 4]
dijkstra
bellman_ford: s: 22, A: [[0 0 0 0 0 0 0 0.182 0.434 0 0 0.206 0 0.439 0 0 0 0.536 0 0 0.177 0.492 0 0 0 0 0 0], [0 0.734 0 0 0 0 0 0.816 0 0 0 0.274 0.459 0 0.443 0 0.478 0 0 0.536 0.257 0.378 0.098 0.199 0 0 0 0.18], [0 0 0.587 0 0 0 0 0 0 0 0.797 0 0 0.359 0.325 0.075 0.45 0 0 0 0 0.254 0 0.413 0 0 0 0], [0 0 0 0 0 0 0.148 0 0 0 0 0 0 0 0 0.191 0 0.657 0 0.509 0 0.186 0 0.044 0 0 0 0], [0 0 0 0 0.722 0.631 0 0 0 0.554 0 0.254 0 0 0.353 0 0.433 0 0 0 0 0 0 0 0 0.286 0.106 0], [0 0 0 0 0.631 0 0 0 0 0 0 0 0 0 0 0 0 0.185 0 0 0.182 0 0 0 0 0 0 0.466], [0 0 0 0.148 0 0 0 0 0.427 0.606 0 0 0 0 0 0.14 0 0.416 0 0 0.318 0 0 0.486 0 0 0 0], [0.182 0.816 0 0 0 0 0 0 0 0 0.163 0 0 0 0 0 0 0 0 0.072 0 0 0 0 0 0.513 0 0], [0.434 0 0 0 0 0 0.427 0 0 0 0 0 0 0 0 0 0 0 0 0.562 0 0 0.737 0 0 0 0 0.33], [0 0 0 0 0.554 0 0.606 0 0 0.45 0 0 0 0 0 0 0 0 0 0 0 0.762 0.681 0 0 0 0 0], [0 0 0.797 0 0 0 0 0.163 0 0 0 0 0 0 0.843 0.311 0 0 0 0 0 0 0 0 0 0 0 0], [0.206 0.274 0 0 0.254 0 0 0 0 0 0 0.379 0 0 0.603 0 0 0 0.288 0 0.177 0 0 0 0.207 0 0 0], [0 0.459 0 0 0 0 0 0 0 0 0 0 0.565 0 0 0 0 0 0.302 0.76 0 0 0.598 0 0 0 0 0], [0.439 0 0.359 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.308 0 0.452 0.53 0 0 0 0 0.223 0 0], [0 0.443 0.325 0 0.353 0 0 0 0 0 0.843 0.603 0 0 0 0.317 0 0.552 0 0 0 0.644 0.836 0 0 0 0.446 0], [0 0 0.075 0.191 0 0 0.14 0 0 0 0.311 0 0 0 0.317 0.08 0 0 0 0 0 0.682 0 0 0.339 0.208 0 0], [0 0.478 0.45 0 0.433 0 0 0 0 0 0 0 0 0 0 0 0 0 0.764 0 0.788 0 0 0 0.236 0 0 0], [0.536 0 0 0.657 0 0.185 0.416 0 0 0 0 0 0 0.308 0.552 0 0 0.917 0 0 0 0.229 0 0 0.329 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.288 0.302 0 0 0 0.764 0 0.302 0 0 0 0 0 0 0 0 0], [0 0.536 0 0.509 0 0 0 0.072 0.562 0 0 0 0.76 0.452 0 0 0 0 0 0 0 0 0.601 0 0.182 0 0 0], [0.177 0.257 0 0 0 0.182 0.318 0 0 0 0 0.177 0 0.53 0 0 0.788 0 0 0 0.048 0 0 0.695 0 0 0 0], [0.492 0.378 0.254 0.186 0 0 0 0 0 0.762 0 0 0 0 0.644 0.682 0 0.229 0 0 0 0.754 0 0 0 0 0 0.503], [0 0.098 0 0 0 0 0 0 0.737 0.681 0 0 0.598 0 0.836 0 0 0 0 0.601 0 0 0 0 0 0 0 0], [0 0.199 0.413 0.044 0 0 0.486 0 0 0 0 0 0 0 0 0 0 0 0 0 0.695 0 0 0 0.883 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0.207 0 0 0 0.339 0.236 0.329 0 0.182 0 0 0 0.883 0 0 0.125 0.039], [0 0 0 0 0.286 0 0 0.513 0 0 0 0 0 0.223 0 0.208 0 0 0 0 0 0 0 0 0 0.49 0.845 0.534], [0 0 0 0 0.106 0 0 0 0 0 0 0 0 0 0.446 0 0 0 0 0 0 0 0 0 0.125 0.845 0 0], [0 0.18 0 0 0 0.466 0 0 0.33 0 0 0 0 0 0 0 0 0 0 0 0 0.503 0 0 0.039 0.534 0 0.469]], 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 22 2 3 4 5 6 7 22 22 10 11 22 13 22 15 16 17 18 22 20 21 22 23 24 25 26 27], [8 22 14 19 14 5 8 19 22 22 14 1 1 19 1 14 1 14 12 22 1 1 22 1 19 25 14 1], [20 22 23 23 11 20 20 19 27 22 7 1 1 20 1 14 1 21 11 22 1 1 22 1 27 27 24 1], [20 22 23 23 11 20 3 19 27 22 7 1 1 20 1 3 24 24 11 24 1 1 22 1 27 27 24 1], [20 22 15 23 26 20 3 19 27 22 7 1 1 20 1 3 24 24 11 24 1 1 22 1 27 15 24 1] | [20 22 15 23 26 20 3 19 27 22 7 1 1 20 1 3 24 24 11 24 1 1 22 1 27 15 24 1]
bellman_ford
find_maximum_subarray_kadane: key: [-0.414 0.433 -0.596 -0.09], initial_trace: (0, 0) trace | (best_low, best_high):
(1, 1), (1, 1) | (1, 1)
find_maximum_subarray_kadane
quickselect: key: [0.997 0.383 0.177 0.042 0.135 0.539 0.314 0.412 0.888 0.863 0.488 0.972 0.813 0.048 0.605 0.14 0.04 0.875 0.867 0.457 0.105 0.884 0.656 0.529 0.883 0.138 0.269 0.187 0.573 0.086 0.268], 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, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 26, 26, 26, 26, 26, 1, 1, 1, 1, 19 | 19
quickselect
bellman_ford: s: 17, A: [[0 0 0 0 0 0 0 0 0 0.564 0 0 0 0 0.907 0 0.228 0 0], [0 0 0 0 0 0.566 0 0 0.528 0.755 0 0.17 0 0.352 0 0 0 0 0], [0 0 0.123 0 0 0.385 0 0 0 0 0 0 0 0.385 0 0.52 0.383 0.571 0], [0 0 0 0 0 0 0 0.055 0.587 0 0.451 0 0 0 0.479 0 0 0 0], [0 0 0 0 0 0 0 0.339 0 0.081 0 0 0 0.497 0 0 0 0.245 0], [0 0.566 0.385 0 0 0.502 0.459 0.567 0 0 0 0 0 0 0 0.3 0.267 0 0.352], [0 0 0 0 0 0.459 0 0 0 0 0 0 0 0 0 0.846 0 0 0], [0 0 0 0.055 0.339 0.567 0 0.187 0 0 0.948 0 0 0.473 0 0 0.05 0 0.136], [0 0.528 0 0.587 0 0 0 0 0.534 0.465 0.854 0 0.158 0 0 0.341 0 0 0], [0.564 0.755 0 0 0.081 0 0 0 0.465 0.696 0 0 0 0 0 0.565 0.553 0 0], [0 0 0 0.451 0 0 0 0.948 0.854 0 0.575 0.805 0.573 0 0 0 0.801 0 0], [0 0.17 0 0 0 0 0 0 0 0 0.805 0.803 0 0 0 0 0.173 0 0], [0 0 0 0 0 0 0 0 0.158 0 0.573 0 0 0.445 0 0.907 0 0.458 0], [0 0.352 0.385 0 0.497 0 0 0.473 0 0 0 0 0.445 0.345 0 0 0.166 0 0.447], [0.907 0 0 0.479 0 0 0 0 0 0 0 0 0 0 0.766 0 0 0 0], [0 0 0.52 0 0 0.3 0.846 0 0.341 0.565 0 0 0.907 0 0 0 0 0.386 0], [0.228 0 0.383 0 0 0.267 0 0.05 0 0.553 0.801 0.173 0 0.166 0 0 0 0 0], [0 0 0.571 0 0.245 0 0 0 0 0 0 0 0.458 0 0 0.386 0 0.671 0], [0 0 0 0 0 0.352 0 0.136 0 0 0 0 0 0.447 0 0 0 0 0.906]], 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 17 3 17 5 6 7 8 9 10 11 17 13 14 17 16 17 18], [0 1 17 3 17 15 15 4 12 4 12 11 17 4 14 17 2 17 18], [9 9 17 7 17 15 5 4 12 4 12 16 17 4 14 17 7 17 7], [16 9 17 7 17 15 5 4 12 4 12 16 17 4 3 17 7 17 7] | [16 11 17 7 17 15 5 4 12 4 12 16 17 4 3 17 7 17 7]
bellman_ford
bfs: s: 1, A: [[0 0 0 0], [0 0 0 1], [0 0 0 0], [0 1 0 0]], initial_trace: [0 1 2 3] trace | pi:
| [0 1 2 1]
bfs
activity_selector: s: [0.732 0.639 0.779 0.211 0.696 0.486 0.596 0.364 0.221 0.522 0.477], f: [0.782 0.704 0.794 0.413 0.776 0.794 0.883 0.678 0.406 0.53 0.756], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 1 1 0], [0 0 0 0 0 0 0 0 1 1 0], [0 1 0 0 0 0 0 0 1 1 0], [0 1 0 0 0 0 0 0 1 1 0], [0 1 0 0 0 0 0 0 1 1 0], [1 1 0 0 0 0 0 0 1 1 0], [1 1 0 0 0 0 0 0 1 1 0], [1 1 0 0 0 0 0 0 1 1 0] | [1 1 0 0 0 0 0 0 1 1 0]
activity_selector
segments_intersect: x: [0.418 0.281 0.551 0.162], y: [0.293 0.331 0.075 0.436] intersect:
0
segments_intersect
bubble_sort: key: [0.272 0.981 0.079 0.421 0.564], initial_trace: [0.272 0.981 0.079 0.421 0.564] trace | pred:
[0.272 0.981 0.079 0.421 0.564], [0.272 0.981 0.079 0.421 0.564], [0.272 0.079 0.981 0.421 0.564], [0.079 0.272 0.981 0.421 0.564], [0.079 0.272 0.981 0.421 0.564], [0.079 0.272 0.421 0.981 0.564], [0.079 0.272 0.421 0.981 0.564], [0.079 0.272 0.421 0.564 0.981], [0.079 0.272 0.421 0.564 0.981] | [0.079 0.272 0.421 0.564 0.981]
bubble_sort
topological_sort: A: [[0 0 1 0], [0 0 0 0], [0 0 0 0], [0 0 0 0]], initial_trace: [0 1 2 3], 0 trace | topo, topo_head:
[0 1 2 3], 0, [0 1 2 3], 0, [0 1 2 3], 2, [2 1 2 3], 0, [2 1 2 3], 0, [2 1 2 3], 0, [2 0 2 3], 1, [2 0 2 3], 1, [2 0 2 3], 1 | [2 0 2 1], 3
topological_sort
minimum: key: [0.993 0.436 0.058 0.245 0.266 0.884 0.38 0.163 0.704 0.649 0.122 0.636 0.808 0.207 0.933 0.861 0.382 0.736 0.41], initial_trace: 0 trace | min:
1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 | 2
minimum
bfs: s: 0, A: [[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]], initial_trace: [0 1 2 3 4] trace | pi:
| [0 1 2 3 4]
bfs
dfs: A: [[0 0 1 0 0 0 1 0 0 1 1 0 1 1 1 0 1 1 0 0 0 0 0], [0 0 1 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0], [0 1 1 0 1 0 1 0 1 1 1 1 0 1 0 0 1 1 1 0 1 1 1], [0 0 0 0 0 1 1 1 0 1 1 0 1 0 0 0 1 1 0 0 0 1 1], [1 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 1 0 0], [0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0 1 1 0 0 0 1 1], [0 0 0 0 0 0 0 1 0 1 0 0 0 1 1 1 1 1 0 1 0 1 0], [0 0 0 1 0 1 1 0 0 1 1 0 1 1 1 0 1 1 0 0 0 1 0], [1 1 0 0 1 1 1 1 0 0 1 0 0 0 0 0 1 0 1 0 1 0 0], [1 0 0 1 1 0 1 0 0 0 1 1 0 1 1 1 0 0 0 0 0 0 1], [0 1 0 1 0 0 0 0 1 0 0 0 1 1 0 1 1 1 1 1 0 0 0], [0 0 0 1 0 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 1 0], [0 0 1 1 1 0 0 1 0 0 1 1 0 1 1 0 1 0 1 0 0 1 1], [1 0 0 1 0 0 0 0 1 1 1 0 0 1 0 0 1 1 1 1 0 0 1], [1 0 1 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 1 1 1 1 1], [0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 1 0], [0 1 1 1 0 1 1 1 0 0 1 0 0 1 1 1 1 0 0 1 1 0 0], [1 1 0 0 0 1 1 1 1 0 0 1 1 0 0 1 0 1 0 0 0 0 0], [0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 0 0 1 0 0 1 1 0], [1 1 1 0 1 1 0 1 1 1 0 1 0 1 1 0 0 1 0 0 0 1 1], [0 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1], [0 1 1 1 1 1 1 0 0 0 1 0 1 1 1 0 1 1 1 0 1 0 0], [1 1 0 1 1 0 0 1 0 0 1 1 1 1 1 0 0 1 0 1 1 1 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22] trace | pi:
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 3 4 5 1 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 3 4 5 1 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 3 4 5 1 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 3 4 5 1 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 4 5 1 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 4 5 1 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 4 3 1 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 4 3 1 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 4 3 1 6 8 5 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 4 3 1 6 8 5 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 8 5 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 8 5 10 11 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 8 5 10 4 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 8 5 10 4 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 10 4 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 10 4 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 12 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 13 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 14 15 16 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 14 15 13 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 14 15 13 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 15 13 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 15 13 17 18 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 15 13 17 14 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 15 13 17 14 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 15 13 18 14 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 15 13 18 14 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 19 20 21 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 19 20 15 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 19 20 15 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 19 21 15 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 19 21 15 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 22], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19], [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19] | [0 2 0 7 9 3 1 6 11 5 8 4 10 12 16 17 13 18 14 20 21 15 19]
dfs
bfs: s: 18, A: [[1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0], [1 1 0 0 0 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 0 0 0], [0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1], [0 0 1 0 0 0 0 1 0 0 0 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 1 0 1 1 1 0 0 1 0 0], [0 1 1 0 0 1 0 0 1 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4 0 2]
bfs
kmp_matcher: string: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1], key: [2 3 1 1 0 2 1 3 2 1 1 2 3 2 2 3 2 1 3], initial_trace: 0 trace | s:
0, 0, 0, 0, 0, 0, 1, 2, 3, 4 | 5
kmp_matcher
naive_string_matcher: string: [0 0 0 0 0 0 0 0 1 1], key: [0 0 1 3 1 3 1 3 0 0], initial_trace: 0 trace | s:
| 0
naive_string_matcher
graham_scan: x: [-0.479 0.156 -0.049 -1.42 1.51 1.82 -1.48 -0.978 0.964 0.827 -0.265 -1.6 1.43 -0.056 1.34 -0.381 0.796 -0.807 1.06 -0.845 0.621 -0.914 0.679], y: [0.023 0.771 0.92 -0.366 -0.104 0.161 0.912 0.43 -0.469 -0.116 0.271 -0.81 0.934 1.03 -0.084 0.084 -0.484 -1.78 1.21 -1.76 0.202 -1.4 -0.135], 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 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 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0 1 0 0 0 0 1 1 0 0 0 0], [0 0 0 0 1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0], [0 0 0 0 1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0], [0 0 0 1 1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0], [0 0 0 0 1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0], [0 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0] | [0 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 0]
graham_scan
segments_intersect: x: [0.923 0.339 0.117 0.81], y: [0.146 0.722 0.067 0.55] intersect:
1
segments_intersect
lcs_length: string: [0 0 0 0 0 1 1 1 1 1], key: [3 2 3 0 3 2 3 3 1 1], initial_trace: [[-1 -1 -1 -1 -1 1 0 0 2 2], [-1 -1 -1 -1 -1 0 0 0 0 0], [-1 -1 -1 -1 -1 1 0 0 0 0], [-1 -1 -1 -1 -1 1 0 0 0 0], [-1 -1 -1 -1 -1 1 0 0 0 0], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]] trace | b:
[[-1 -1 -1 -1 -1 1 0 0 2 2], [-1 -1 -1 -1 -1 0 1 1 1 1], [-1 -1 -1 -1 -1 1 0 0 1 1], [-1 -1 -1 -1 -1 1 2 1 1 1], [-1 -1 -1 -1 -1 1 0 0 1 1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]], [[-1 -1 -1 -1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-1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1], [-1 -1 -1 -1 -1 -1 -1 -1 -1 -1]]
lcs_length
mst_prim: s: 1, A: [[0 0 0 0 0 0 0 0 0 0 0 0.746 0 0.237 0], [0 0 0 0.244 0.241 0.942 0 0.604 0 0.474 0 0 0.364 0 0.38], [0 0 0 0 0 0 0 0 0 0 0.317 0.243 0 0 0], [0 0.244 0 0.835 0 0 0 0 0 0 0 0 0 0 0], [0 0.241 0 0 0 0 0 0 0.469 0 0 0.773 0 0 0.115], [0 0.942 0 0 0 0 0 0.092 0 0 0 0.571 0 0 0], [0 0 0 0 0 0 0.168 0 0.692 0 0.647 0 0 0.287 0], [0 0.604 0 0 0 0.092 0 0.363 0.179 0 0 0 0 0 0], [0 0 0 0 0.469 0 0.692 0.179 0 0 0 0 0.615 0 0], [0 0.474 0 0 0 0 0 0 0 0.27 0.222 0 0 0 0], [0 0 0.317 0 0 0 0.647 0 0 0.222 0.265 0 0 0 0.274], [0.746 0 0.243 0 0.773 0.571 0 0 0 0 0 0 0 0 0], [0 0.364 0 0 0 0 0 0 0.615 0 0 0 0.787 0 0], [0.237 0 0 0 0 0 0.287 0 0 0 0 0 0 0 0], [0 0.38 0 0 0.115 0 0 0 0 0 0.274 0 0 0 0.22]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] trace | pi:
[0 1 2 1 1 1 6 1 8 1 10 11 1 13 1], [0 1 2 1 1 1 6 1 4 1 10 4 1 13 4], [0 1 2 1 1 1 6 1 4 1 14 4 1 13 4], [0 1 2 1 1 1 6 1 4 1 14 4 1 13 4], [0 1 10 1 1 1 10 1 4 10 14 4 1 13 4], [0 1 10 1 1 1 10 1 4 10 14 4 1 13 4], [0 1 10 1 1 1 10 1 4 10 14 2 1 13 4], [11 1 10 1 1 11 10 1 4 10 14 2 1 13 4], [11 1 10 1 1 11 10 1 4 10 14 2 1 13 4], [11 1 10 1 1 11 10 8 4 10 14 2 1 13 4], [11 1 10 1 1 7 10 8 4 10 14 2 1 13 4], [11 1 10 1 1 7 10 8 4 10 14 2 1 13 4], [11 1 10 1 1 7 10 8 4 10 14 2 1 6 4], [13 1 10 1 1 7 10 8 4 10 14 2 1 6 4] | [13 1 10 1 1 7 10 8 4 10 14 2 1 6 4]
mst_prim
dfs: A: [[1 1 1 1 1], [1 0 1 0 1], [0 0 0 0 1], [1 1 1 1 1], [1 1 0 1 1]], initial_trace: [0 1 2 3 4] trace | pi:
[0 1 2 3 4], [0 0 2 3 4], [0 0 2 3 4], [0 0 1 3 4], [0 0 1 3 4], [0 0 1 3 2], [0 0 1 3 2], [0 0 1 4 2], [0 0 1 4 2], [0 0 1 4 2], [0 0 1 4 2], [0 0 1 4 2], [0 0 1 4 2] | [0 0 1 4 2]
dfs
graham_scan: x: [-0.799 1.33 -0.002 1.1 0.808], y: [1.42 -0.551 0.278 0.381 0.154], initial_trace: [0 0 0 0 0] trace | in_hull:
[0 1 0 0 0], [0 1 0 0 0], [0 1 0 1 0], [0 1 0 1 1], [0 1 0 1 0], [1 1 0 1 0] | [1 1 1 1 0]
graham_scan
bridges: A: [[0 0 0 0 0], [0 0 1 0 0], [0 1 1 0 0], [0 0 0 0 0], [0 0 0 0 0]], initial_trace: [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]] trace | is_bridge:
[[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 0 -1 -1], [-1 0 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]], [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]] | [[0 -1 -1 -1 -1], [-1 0 1 -1 -1], [-1 1 0 -1 -1], [-1 -1 -1 0 -1], [-1 -1 -1 -1 0]]
bridges
minimum: key: [0.331 0.587 0.064 0.628 0.915 0.806 0.274 0.678 0.488 0.265 0.113], initial_trace: 0 trace | min:
0, 2, 2, 2, 2, 2, 2, 2, 2 | 2
minimum
minimum: key: [0.667 0.826 0.452 0.959 0.489 0.528 0.669 0.875 0.546 0.66 0.095 0.185], initial_trace: 0 trace | min:
0, 2, 2, 2, 2, 2, 2, 2, 2, 10 | 10
minimum
binary_search: key: [0.008 0.03 0.069 0.195 0.245 0.263 0.283 0.283 0.319 0.364 0.427 0.428 0.486 0.635 0.67 0.696 0.737 0.758 0.787 0.796 0.878 0.902 0.919 0.923 0.939 0.945 0.975 0.975], target: 0.385, initial_trace: (0, 27) trace | (low, high):
(0, 13), (7, 13), (7, 10), (9, 10) | (10, 10)
binary_search
lcs_length: string: [0 0 0 1 1], key: [2 3 2 2 3], initial_trace: [[-1 -1 -1 0 2], [-1 -1 -1 1 0], [-1 -1 -1 0 0], [-1 -1 -1 -1 -1], [-1 -1 -1 -1 -1]] trace | b:
[[-1 -1 -1 0 2], [-1 -1 -1 1 0], [-1 -1 -1 0 2], [-1 -1 -1 -1 -1], [-1 -1 -1 -1 -1]] | [[-1 -1 -1 0 2], [-1 -1 -1 1 0], [-1 -1 -1 0 1], [-1 -1 -1 -1 -1], [-1 -1 -1 -1 -1]]
lcs_length
mst_kruskal: A: [[0.628 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0.423 0], [0 0 0 0 0]], initial_trace: [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]] trace | in_mst:
| [[0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0], [0 0 0 0 0]]
mst_kruskal
dag_shortest_paths: s: 2, A: [[0 0 0 0.385 0.46 0.399 0.669 0.152 0 0], [0 0 0 0.374 0.4 0 0 0 0 0], [0 0 0 0.701 0 0 0.998 0.121 0.445 0], [0 0 0 0 0.459 0 0 0 0.136 0], [0 0 0 0 0 0 0 0.226 0.181 0], [0 0 0 0 0.842 0 0 0.0105 0 0], [0 0 0 0 0.737 0 0 0.707 0.439 0], [0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0], [0.832 0 0.406 0.471 0 0.547 0 0.704 0.266 0]], initial_trace: [0 1 2 3 4 5 6 7 8 9] trace | pi:
[0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 3 4 5 6 7 8 9], [0 1 2 2 4 5 2 2 2 9], [0 1 2 2 6 5 2 2 2 9], [0 1 2 2 3 5 2 2 2 9], [0 1 2 2 3 5 2 2 2 9] | [0 1 2 2 3 5 2 2 2 9]
dag_shortest_paths
articulation_points: A: [[1 0 0 0 0 0 0 0 0 0 0 0], [0 1 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 1 0], [0 0 0 0 0 0 0 0 0 1 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 1 0 0 0 0 0 0 0 1], [0 0 1 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0]], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | is_cut:
[0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0], [0 0 0 0 0 0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0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1], [1 0 1 1 1 0 0 1 0 0 1 0 1 0 0 0 0 0 0], [1 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0], [0 0 0 1 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0], [0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1], [1 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0], [0 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 0 0 0 0 0 0 0 0 0 1 1 0], [0 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 1 0], [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0], [0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 0 1 0], [0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 0 1 1 0], [0 1 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1]], initial_trace: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] trace | pi:
[0 1 2 3 4 5 6 3 8 3 10 11 12 13 14 15 3 17 3], [7 18 7 3 7 5 18 3 8 3 7 9 7 16 9 15 3 16 3] | [7 18 7 3 7 4 18 3 0 3 7 9 7 16 9 0 3 16 3]
bfs
task_scheduling: d: [9 5 1 3 6 6 9 11 10 2 8 11], w: [0.088 0.339 0.228 0.063 0.076 0.428 0.989 0.729 0.623 0.165 0.235 0.022], initial_trace: [0 0 0 0 0 0 0 0 0 0 0 0] trace | selected:
[0 0 0 0 0 0 1 0 0 0 0 0], [0 0 0 0 0 0 1 1 0 0 0 0], [0 0 0 0 0 0 1 1 1 0 0 0], [0 0 0 0 0 1 1 1 1 0 0 0], [0 1 0 0 0 1 1 1 1 0 0 0], [0 1 0 0 0 1 1 1 1 0 1 0], [0 1 0 0 0 1 1 1 1 0 1 0], [0 1 0 0 0 1 1 1 1 0 1 0], [1 1 0 0 0 1 1 1 1 0 1 0], [1 1 0 0 0 1 1 1 1 0 1 0], [1 1 0 0 0 1 1 1 1 0 1 0] | [1 1 0 0 0 1 1 1 1 0 1 1]
task_scheduling
graham_scan: x: [-0.456 -0.529 0.882 -1.41 -0.011 -1.09 1.72 -0.368 0.467 -0.718 1.25], y: [-0.116 1.13 0.367 -0.524 -0.947 1.04 -0.483 -1.78 1.62 0.887 -1.32], initial_trace: [0 0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 0 1 0 0 1], [0 0 0 0 0 0 1 1 0 0 1], [0 0 1 0 0 0 1 1 0 0 1], [0 0 1 0 1 0 1 1 0 0 1], [0 0 1 0 0 0 1 1 0 0 1], [0 0 0 0 0 0 1 1 0 0 1], [0 0 0 0 0 0 1 1 1 0 1], [1 0 0 0 0 0 1 1 1 0 1], [0 0 0 0 0 0 1 1 1 0 1], [0 1 0 0 0 0 1 1 1 0 1], [0 1 0 0 0 0 1 1 1 1 1], [0 1 0 0 0 0 1 1 1 0 1], [0 0 0 0 0 0 1 1 1 0 1], [0 0 0 0 0 1 1 1 1 0 1] | [0 0 0 1 0 1 1 1 1 0 1]
graham_scan
task_scheduling: d: [4 21 9 14 21 11 23 3 3 22 17 8 9 20 12 18 23 7 25 27 20 7 1 19 8 1 7 3], w: [0.597 0.818 0.008 0.233 0.431 0.465 0.813 0.176 0.573 0.538 0.648 0.014 0.044 0.091 0.393 0.598 0.734 0.651 0.108 0.866 0.395 0.816 0.171 0.38 0.67 0.63 0.519 0.923], 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 0 0 1], [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1], [0 1 0 0 0 0 0 0 0 0 0 0 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0 0 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1], [0 1 0 0 1 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1], [0 1 0 0 1 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1], [0 1 0 0 1 1 1 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 0 1 1 0 0 1], [0 1 0 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1], [0 1 0 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1], [0 1 0 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1] | [0 1 0 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1]
task_scheduling
segments_intersect: x: [0.866 0.792 0.736 0.004], y: [0.143 0.207 0.577 0.003] intersect:
0
segments_intersect
graham_scan: x: [-0.164 0.418 1.26 -0.971 1.5 0.751 0.331 0.579 -0.495 1.72 1.26 -0.463 -0.768 1.53 1.66 -1.07 1.61 -0.11 -1.57], y: [-0.983 -0.025 -0.887 -1.18 -0.777 0.448 0.295 1.19 0.417 0.202 0.775 1.01 -1.22 -0.358 -0.943 1.44 1.02 0.376 0.953], initial_trace: [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 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 0 0 0 0 0 0 0 0 0 1 0 1 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 1 0 1 0 0 0 0], [0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0], [0 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 0 0 0 0 1 1 1 0 0 0 0], [1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 0], [0 1 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 1 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 0 0], [0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 0 1] | [0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 1 0 1]
graham_scan
kmp_matcher: string: [0 0 0 0 1], key: [1 3 0 1 3], initial_trace: 0 trace | s:
0 | 1
kmp_matcher
minimum: key: [0.99 0.726 0.522 0.402 0.527 0.182 0.48 0.012 0.11 0.832 0.949 0.218 0.298 0.907 0.411 0.56 0.602 0.419 0.679 0.352 0.856 0.881 0.361 0.994 0.912 0.486 0.139 0.32 0.182 0.303 0.726], initial_trace: 0 trace | min:
1, 2, 3, 3, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 | 7
minimum
insertion_sort: key: [0.019 0.618 0.001 0.248 0.96 0.553 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], initial_trace: [0.019 0.618 0.001 0.248 0.96 0.553 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235] trace | pred:
[0.019 0.618 0.001 0.248 0.96 0.553 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.618 0.248 0.96 0.553 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.248 0.618 0.96 0.553 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.248 0.618 0.96 0.553 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.248 0.553 0.618 0.96 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.248 0.553 0.618 0.96 0.984 0.492 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.248 0.492 0.553 0.618 0.96 0.984 0.122 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.248 0.492 0.553 0.618 0.96 0.984 0.967 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.248 0.492 0.553 0.618 0.96 0.967 0.984 0.893 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.248 0.492 0.553 0.618 0.893 0.96 0.967 0.984 0.845 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.248 0.492 0.553 0.618 0.845 0.893 0.96 0.967 0.984 0.606 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.248 0.492 0.553 0.606 0.618 0.845 0.893 0.96 0.967 0.984 0.192 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.492 0.553 0.606 0.618 0.845 0.893 0.96 0.967 0.984 0.524 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.492 0.524 0.553 0.606 0.618 0.845 0.893 0.96 0.967 0.984 0.379 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.379 0.492 0.524 0.553 0.606 0.618 0.845 0.893 0.96 0.967 0.984 0.937 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.379 0.492 0.524 0.553 0.606 0.618 0.845 0.893 0.937 0.96 0.967 0.984 0.277 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.277 0.379 0.492 0.524 0.553 0.606 0.618 0.845 0.893 0.937 0.96 0.967 0.984 0.322 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.277 0.322 0.379 0.492 0.524 0.553 0.606 0.618 0.845 0.893 0.937 0.96 0.967 0.984 0.755 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.277 0.322 0.379 0.492 0.524 0.553 0.606 0.618 0.755 0.845 0.893 0.937 0.96 0.967 0.984 0.974 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.277 0.322 0.379 0.492 0.524 0.553 0.606 0.618 0.755 0.845 0.893 0.937 0.96 0.967 0.974 0.984 0.635 0.235], [0.001 0.019 0.122 0.192 0.248 0.277 0.322 0.379 0.492 0.524 0.553 0.606 0.618 0.635 0.755 0.845 0.893 0.937 0.96 0.967 0.974 0.984 0.235] | [0.001 0.019 0.122 0.192 0.235 0.248 0.277 0.322 0.379 0.492 0.524 0.553 0.606 0.618 0.635 0.755 0.845 0.893 0.937 0.96 0.967 0.974 0.984]
insertion_sort
graham_scan: x: [1.21 1.67 -1.02 -0.24 0.695 1.37 -0.201 -0.326 -0.816 1.52], y: [-0.641 0.3 0.025 0.923 1.6 0.231 -1.03 -0.442 1.04 0.931], initial_trace: [0 0 0 0 0 0 0 0 0 0] trace | in_hull:
[0 0 0 0 0 0 1 0 0 0], [0 0 0 0 0 0 1 0 0 0], [1 0 0 0 0 0 1 0 0 0], [1 1 0 0 0 0 1 0 0 0], [1 1 0 0 0 1 1 0 0 0], [1 1 0 0 0 0 1 0 0 0], [1 1 0 0 0 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 1 0 1], [1 1 0 1 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 0 1], [1 1 0 0 1 0 1 0 1 1] | [1 1 1 0 1 0 1 0 1 1]
graham_scan
segments_intersect: x: [0.023 0.54 0.647 0.217], y: [0.057 0.827 0.255 0.718] intersect:
1
segments_intersect
insertion_sort: key: [0.559 0.293 0.434 0.203 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], initial_trace: [0.559 0.293 0.434 0.203 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098] trace | pred:
[0.293 0.559 0.434 0.203 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.293 0.434 0.559 0.203 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.203 0.293 0.434 0.559 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.203 0.293 0.434 0.559 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.203 0.293 0.434 0.559 0.627 0.928 0.309 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.203 0.293 0.309 0.434 0.559 0.627 0.928 0.097 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.097 0.203 0.293 0.309 0.434 0.559 0.627 0.928 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.097 0.203 0.293 0.309 0.434 0.559 0.627 0.928 0.94 0.046 0.394 0.002 0.574 0.045 0.098], [0.046 0.097 0.203 0.293 0.309 0.434 0.559 0.627 0.928 0.94 0.394 0.002 0.574 0.045 0.098], [0.046 0.097 0.203 0.293 0.309 0.394 0.434 0.559 0.627 0.928 0.94 0.002 0.574 0.045 0.098], [0.002 0.046 0.097 0.203 0.293 0.309 0.394 0.434 0.559 0.627 0.928 0.94 0.574 0.045 0.098], [0.002 0.046 0.097 0.203 0.293 0.309 0.394 0.434 0.559 0.574 0.627 0.928 0.94 0.045 0.098], [0.002 0.045 0.046 0.097 0.203 0.293 0.309 0.394 0.434 0.559 0.574 0.627 0.928 0.94 0.098] | [0.002 0.045 0.046 0.097 0.098 0.203 0.293 0.309 0.394 0.434 0.559 0.574 0.627 0.928 0.94]
insertion_sort