-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshorter_chain_seeking_method.txt
More file actions
210 lines (189 loc) · 208 KB
/
Copy pathshorter_chain_seeking_method.txt
File metadata and controls
210 lines (189 loc) · 208 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
METHOD FOR FINDING SHORTER CHAINS
=================================
(1) create a list of registers to store regexes of the chains of a universe.
ALPHA chain regexes:
@q chain0 \<\(Af-7\|Af-8\|Af-9\|Aw-50\|Cq-5\|Cq-6\|Cq-7\|D-37\|Dx-15\|Dx-16\|Dx-17\|Fj-37\|Fw-25\|Gy-34\|Ju-1\|Ju-2\|Ju-3\|M-20\|M-22\|M-23\|Nb-54\|Pm-17\|Pm-18\|Pm-19\|Pq-10\|Pq-12\|Pq-13\|Pq-14\|Pq-15\|Pt-24\|Pt-25\|Pt-26\|S-25\|S-26\|W-4\|W-5\|Xc-30\|Xc-31\|Xc-34\|Xl-10\|Xl-11\|Xl-9\|Zq-32\|Zz-13\|Zz-14\)\>
@w chain1 \<\(A-42\|A-43\|A-44\|A-45\|A-46\|A-47\|A-48\|A-49\|A-50\|At-62\|At-63\|At-64\|At-65\|At-66\|At-67\|At-68\|At-69\|Aw-45\|Aw-46\|A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|Lx-90\|N-82\|N-90\|N-90\|N-91\|Nm-89\|Nm-90\|Nm-91\|Nm-92\|Nm-98\|Nm-98\|Nm-99\|Ok-101\|Ok-101\|Ok-102\|Ok-102\|Ok-103\|Ok-104\|Ok-96\|Ok-96\|Qe-60\|Ro-27\|S-100\|S-104\|S-105\|S-97\|S-98\|S-99\|Se-88\|Se-97\|Se-97\|Se-98\|T-18\|U-83\|U-84\|U-86\|U-86\|U-90\|U-91\|U-92\|Uq-48\|Vi-14\|Vl-86\|Vl-87\|Vl-94\|Vl-95\|Vl-95\|Vl-96\|Vt-105\|Vt-105\|Vt-106\|Vt-108\|Vt-110\|Vt-111\|Vt-112\|W-79\|W-79\|W-85\|W-86\|Wy-53\|Yv-69\|Yv-75\|Yv-75\|Z-101\|Z-105\|Z-106\|Z-107\)\>
@r 3-chain /\<\(Aw-109\|Aw-110\|C-63\|Cj-79\|Co-84\|Co-85\|Co-87\|Cv-101\|Cv-103\|Cv-110\|Cv-111\|Da-107\|Da-108\|Da-95\|Da-96\|Da-96\|Dd-102\|Dd-103\|Dd-103\|Dd-89\|Dd-90\|Dd-91\|Dd-92\|Ek-105\|Ek-106\|Ek-106\|Ek-106\|Gd-38\|Ha-112\|Ha-113\|Ha-114\|Kn-111\|Lx-79\|Lx-91\|Lx-91\|Lx-92\|Mt-38\|N-81\|N-92\|Nd-28\|Nm-100\|Nm-101\|Nm-88\|Ns-66\|Ok-92\|Ok-93\|Ok-95\|Ok-95\|S-106\|S-107\|S-109\|S-96\|Se-100\|Se-101\|Se-87\|Se-99\|Se-99\|Se-99\|U-85\|U-93\|U-93\|U-94\|U-96\|Vl-85\|Vl-85\|Vl-97\|Vl-97\|Vt-102\|Vt-103\|Vt-104\|W-78\|W-87\|W-88\|Xj-21\|Z-100\|Z-108\|Z-109\|Z-97\|Z-98\|Z-99\)\>
@t 4-chain /\<\(Aw-108\|Cj-81\|Co-88\|Cv-100\|Cv-100\|Cv-97\|Cv-98\|Cv-99\|Cv-99\|Da-93\|Da-94\|Dd-104\|Dd-105\|Dd-88\|Dz-10\|Ek-102\|Ek-103\|Ek-104\|Ha-111\|Iu-81\|Iu-82\|Ji-106\|Kn-109\|Kn-110\|Lx-93\|Lx-94\|N-93\|N-94\|N-96\|Nm-102\|Nm-103\|Nm-87\|Ok-105\|Ok-106\|Ok-107\|Ok-89\|Ok-90\|Ok-90\|Ok-91\|Ok-94\|Pg-52\|Pg-59\|S-108\|S-95\|Se-102\|Se-85\|Se-86\|U-95\|Vl-100\|Vl-101\|Vl-84\|Vl-98\|Vl-98\|Vl-99\|Vl-99\|Vt-101\|W-89\|W-89\|W-90\|Wy-46\|Yv-80\|Yv-80\|Yv-80\|Z-110\|Z-111\|Z-96\)\>
@y 5-chain /\<\(Ai-59\|Aw-106\|Aw-106\|Aw-107\|Aw-107\|Aw-124\|Aw-125\|Cj-80\|Cv-114\|D-83\|D-84\|Da-109\|Da-90\|Da-92\|Dd-106\|Dx-43\|Dx-44\|Ek-100\|Ek-101\|Ek-119\|Ek-120\|Ek-99\|F-73\|Gd-46\|Go-118\|Ha-109\|Ha-110\|I-115\|Iu-83\|Ji-104\|Ji-105\|K-37\|Kn-106\|Kn-107\|Kn-108\|L-47\|L-55\|Lu-41\|Lx-76\|Lx-77\|Lx-95\|Lx-96\|N-95\|Nm-104\|Nm-105\|Pb-52\|Qe-52\|S-94\|Se-103\|Se-104\|Se-84\|U-97\|Uq-41\|Uq-50\|Uq-51\|Ux-48\|Ux-49\|Ux-57\|V-40\|V-47\|Vt-100\|Vt-98\|Vt-99\|Vt-99\|W-91\|Wy-54\|Wy-55\|X-119\|Z-95\)\>
@u 6-chain /\<\(Ai-58\|Aw-104\|Aw-105\|Ax-109\|Ax-110\|Ax-111\|C-53\|Cl-24\|Cl-30\|Co-86\|Cv-115\|Da-91\|Dx-35\|Eb-23\|Eh-123\|Eh-124\|Ek-121\|Go-117\|Ha-108\|Ha-108\|Ha-108\|Iu-72\|Jb-116\|Ji-103\|Ji-121\|Kk-64\|L-46\|L-48\|L-56\|L-57\|Mt-39\|Ns-67\|P-25\|Pb-43\|Pg-51\|Qe-61\|T-19\|U-98\|Uq-49\|Uq-52\|Ux-58\|V-39\|V-48\|Vt-119\|Vt-120\|W-76\|W-77\|Wy-45\|Wy-56\|Ys-125\|Yu-26\|Z-112\)\>
@i 7-chain /\<\(C-54\|Cj-68\|Co-74\|Co-75\|F-59\|F-60\|Gj-12\|Gy-63\|I-113\|I-114\|K-29\|K-36\|Kk-65\|Kk-66\|Ns-56\|Ns-57\|P-26\|Pg-50\|Qe-53\|Ro-28\|Yv-66\|Yv-67\)\>
@o 8-chain /\<\(D-74\|D-75\|Dx-36\|Lu-34\|Nd-27\|Vi-15\|Xj-16\|Yv-68\)\>
@p 9-chain /\<\(T-14\)\>
@a 10-chain //
(2) massage the Reactor_logs_parsed-alpha.txt so we know the input NRG ranges for each output type and reaction type
FROM: | OTOMRO |UNIVERSE| INPUTS => OUTPUTS | NRG USED | REACTION TYPE | CHEMIST WALLET | initateReaction() TX HASH | analyseReactions() TX HASH |
FROM: | 0*|alpha | Xc-34⁻ + 0 => Xc-34 + 0.00 | 0.00 | none | 0x0f9acf892c809d27d9cd14059aada68b343d0412 | 0xbccb5adf517f6d206b3474a674b89af5b82cf3c2a58cafab44859dbc1663bbc6 | 0xe1c9a2b77f036e73749dfedbf6b4da5f09bb46187269b9447d3b3c0485204d45 |
FROM: | 1 |alpha | Xc-34⁻ + 0 => Xc-34 + 0.00 | 0.00 | none | 0x0f9acf892c809d27d9cd14059aada68b343d0412 | 0x84f76cdde83177e8a08c3e0737fa479f56d9bad5db5bcef8613ce4ba24bd2f16 | 0x704f3b040584a620e4728f280c4626e9775555b44d826ab7d1ec4797f8d1d5e0 |
FROM: | 2*|alpha | Ju-1∙ + Xl-9⁺ + 0 => ⬇ Ju-1 + Af-9 + 0.00 | 0.00 | decay | 0x136bbfe37988f82f8585ed155615b75371489d45 | 0x778cf100455edc2378d2c31a738d1d3b7bcd8fc3404f767655586f51eea7aa58 | 0xe30c998cbd639072fe687065ad1fae68b1f1b56e0086318570140db0a0afc1e5 |
FROM: | 3*|alpha | Xl-9⁺ + Pm-18⁺ + 20 => ⬆ Af-9 + Dx-18 + 19.00 | 1.00 | decay | 0x134309c4cf57bfa43ef66bf20bd0eeccdeb2d80c | 0xc9aa2d57683c46797042ffe69fbca0562cfa371fd9737efc7705b525ce1a43e5 | 0x4b97622586dabc371ee03a7d591c16618fd894ef8764749f05cd05b820c92635 |
FROM: | 4*|alpha | Cq-7∙ + Xl-10ª + 0 => ⬆ W-4 + Cq-6 + Cq-7 + 0.00 | 0.00 | decay | 0xcf2b7c6bc98bfe0d6138a25a3b6162b51f75e05d | 0x4d0c2164041023e4bb8623e38f9af5b042b66e6112b978e636ccf83298002410 | 0x5edf0887e7a85cad985ec9c0cdfaae91ce0ae2531fea3b9606c573a77d8f6970 |
TO: |universe| input otoms [ NRG input range ] => output otoms | reaction type |OTOROM min, max |
TO: |bohr | As-5⁺ +[ 0.00 - 50] => ⬇ Ei-5 | decay | 64584 , 72724 |
TO: |bohr | As-5⁺ +[ 62.88 - 20000] => ⬇ Sr₂(Sr-2,Sr-3>) | metallic, decay, nuclear | 63701 , 195343 |
TO: |bohr | As-5⁺ + As-5⁺ +[ 0.00 - 10] => ⬇ Ei-5 + Ei-5 | decay | 255386 , 214985 |
TO: |bohr | As-5⁺ + As-5⁺ +[ 10.93 - 130] => ⬇ Ei₂(Ei-5,Ei-5>) | metallic, decay | 143961 , 133155 |
TO: |bohr | As-5⁺ + As-5⁺ +[ 160.40 - 1400] => ⬇ Gj-10 | decay, nuclear | 177087 , 37865 |
TO: |bohr | As-5⁺ + As-6∙ +[ 0.25 - 10] => ⬇ Ei-5 + As-6 | decay | 129228 , 170974 |
how?
-remove Alpha OTOMROs 1-3050 since the algorithm changed after that and we don't want to include those in the data
-remove chemist and tx columns
-move OTOMRO column to end
-move NRG used to input range section
-remove whitespace columns until it matches the TO format above
-sort
- do some substitutions
:g/^.........|\(...................\)+\[\s*\d\+\.\d\d - *\d\+\] =>.\(................................\)|\(............................\)|\s*\(\d\+\*\=\)\s*|\n.........|\1+\[ *\d\+\.\d\d - *\d\+\] =>.\2|\3| *\(\d\+\*\=\)\s*|\n.........|\1+\[ *\d\+\.\d\d - *\d\+\] =>.\2|\3/normal jdd
Now where there's 2 lines for one reaction (same inputs, same outputs, same reaction type, different NRG) we want to keep the first as the min input and the second as the max input, and both OTOMROs.
So replace the duplicate data with the min OTOMRO
:%s/^.........|\(...................\)+\[\s*\d\+\.\d\d -\zs *\d\+\] =>.\(................................\)|\(............................\)|\s*\(\d\+\*\=\)\s*|\n.........|\1+\[ *\d\+\.\d\d -\ze *\d\+\] =>.\2|\3| *\(\d\+\*\=\)\s*|/<\4>/
And now move that OTOMRO to the end of the line and reformat
:%s/<\(\d\+\*\=\)>\(.*\)|\s*\(\d\+\*\=\) *|$/\=printf("%s|%9s -%9s |",submatch(2),submatch(1),submatch(3))
Now handle the rows where there was only 1 line for the reaction, so both min and max inputs are in that one line:
:%s/|\s*\(\d\+\*\=\)\s*|$/\=printf("|%9s -%9s |",submatch(1),submatch(1))/
Add this as header row:
|universe| input otoms [ NRG input range ] => output otoms | reaction type |OTOROM min, max |
(3) Now create the recipe searching regexes. take the text like "chain0 + chain0 => chain2|chain3..." and replace with the ones created in step 1
(4) Now grab each regex and copy any that match in buffer window above us to the @z buffer
I put the massage data window at the top, and below it is this file.
Blank the checklist boxes "[c]" to "[ ]" so I see progress
Put this macro in register @n:
@n 0f/Âýaly$zRgg/"