This is terrible, but it's Christmas and I don't want to solve this intense graph theory problem right now. I fed the parsed graph into graphviz so I could see where the connections were, then had the code sever them and calculate the independent graph sizes.

Maybe I'll find a real solve for this later...but probably not.
This commit is contained in:
2023-12-25 17:06:20 -06:00
parent 42d5939428
commit 166281cf7c
4 changed files with 1392 additions and 0 deletions

1262
inputs/25.txt Normal file

File diff suppressed because it is too large Load Diff

13
inputs/25a.txt Normal file
View File

@ -0,0 +1,13 @@
jqt: rhn xhk nvd
rsh: frs pzl lsr
xhk: hfx
cmg: qnr nvd lhk bvb
rhn: xhk bvb hfx
bvb: xhk hfx
pzl: lsr hfx nvd
qnr: nvd
ntq: jqt hfx bvb xhk
nvd: lhk
lsr: lhk
rzs: qnr cmg lsr rsh
frs: qnr lhk lsr