Module day10
Source Expand description
- configure_joltages ๐
- Convert the buttons and joltages to equations, then use
Gaussian Elimination to reduce the
dimensioanlity of the problem to only the free variables.
- configure_lights ๐
- Check all patterns with one set bit, then pattern with two sets bits and so on, until we find
a match.
- next_same_bits ๐
- Find the next highest integer with the same number of one bits as the previous integer,
for example 1011 => 1110.
- parse
- Each machine can be processed independently, parallelizing the work over multiple threads.
- parse_machine ๐
- Convert light patterns and buttons to bitmasks to speed up part one.
- part1
- part2
- recurse ๐
- Input ๐
- Machine ๐