adventofcode2023/day20/input_part2_analysis.txt
2023-12-20 20:10:58 +01:00

93 lines
1.4 KiB
Plaintext

The input of rx is conjunction of hh, ck, kz, ns (truth = low pulse)
&jq -> rx
&gt -> jq
&vr -> jq
&nl -> jq
&lr -> jq
Counter 1
&hh -> nc, zd, vs, kq, fm | -> gt
%nc -> hj, hh | <- hh, broadcast
%hj -> lk, hh
%lk -> zd, hh
%zd -> fm | <- hh
%fm -> kq | <- hh
%kq -> pp | <- hh
%pp -> vs, hh
%vs -> bp | <- hh
%bp -> rv, hh
%rv -> rk, hh
%rk -> hr, hh
%hr -> hh
111101000111(2) = 3911
Counter 2
&ck -> tf, mr, rg, tp, pc, tg | -> vr
%tf -> tx, ck | <- broadcast, ck
%tx -> mr, ck
%mr -> rg | <- ck
%rg -> tp | <- ck
%tp -> pc | <- ck
%pc -> vh | <- ck
%vh -> tg, ck
%tg -> cc | <- ck
%cc -> rj, ck
%rj -> sc, ck
%sc -> vb, ck
%vb -> ck
111101000011(2) = 3907
Counter 3
&kz -> zn, nh, vx, df, zf | -> nl
%zn -> fv, kz | <- broadcast, kz
%fv -> nh, kz
%nh -> vx | <- kz
%vx -> df | <- kz
%df -> gf | <- kz
%gf -> zf, kz
%zf -> qf | <- kz
%qf -> tn, kz
%tn -> lt, kz
%lt -> ls, kz
%ls -> hc, kz
%hc -> kz
111110100011(2) = 4003
Counter 4
&ns -> pb, br, fp, gp, gv, jl | -> lr
%br -> gv, ns | <- broadcast
%gv -> jl
%jl -> fp
%fp -> rb
%rb -> mf, ns
%mf -> gp, ns
%gp -> pb
%pb -> xv
%xv -> kh, ns
%kh -> jz, ns
%jz -> lj, ns
%lj -> ns
111100110001(2) = 3889
The broadcast node drives all the counters
broadcaster -> nc, tf, zn, br
Period of rx (same as first activation) is LCM of periods of all counters
LCM = 237878264003759