Skip to content

Commit 24793cd

Browse files
committed
2023 d19: Mention Sankey diagram visualization in walkthrough
1 parent 88466b7 commit 24793cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

2023/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4611,6 +4611,10 @@ The above algorithm essentially splits the search space in half each time a rule
46114611
is evaluated: one half is accepted and continues to the next workflow, while the
46124612
other half is rejected and passed on to the next rule of the current workflow.
46134613

4614+
This can be nicely visualized using a [Sankey diagram][wiki-sankey], which is
4615+
what was done [here in this Reddit post][d19-reddit-sankey] in the AoC
4616+
subreddit. Pretty neat!
4617+
46144618
We'll implement the above as a recursive function taking 3 arguments: the
46154619
workflows, the initial ranges and the current workflow name. The variable ranges
46164620
will be represented with a dictionary of the form `{var_name: (lo, hi)}`,
@@ -5117,6 +5121,7 @@ print('Part 2:', answer)
51175121
[d08-p2]: #part-2-7
51185122
[d12-original]: original_solutions/day12.py
51195123
[d18-jonathan-video]: https://www.youtube.com/watch?v=UNimgm_ogrw
5124+
[d19-reddit-sankey]: https://old.reddit.com/r/adventofcode/comments/18lyvuv
51205125
[d20-reddit-viz1]: https://www.reddit.com/r/adventofcode/comments/18mypla
51215126
[d20-reddit-viz2]: https://www.reddit.com/r/adventofcode/comments/18mqnrl
51225127
[2019-d06-p2]: ../2019/README.md#part-2-5
@@ -5204,6 +5209,7 @@ print('Part 2:', answer)
52045209
[wiki-pick-theorem]: https://en.wikipedia.org/wiki/Pick%27s_theorem
52055210
[wiki-priority-queue]: https://en.wikipedia.org/wiki/Priority_queue
52065211
[wiki-quadratic-formula]: https://en.wikipedia.org/wiki/Quadratic_formula
5212+
[wiki-sankey]: https://en.wikipedia.org/wiki/Sankey_diagram
52075213
[wiki-shoelace]: https://en.wikipedia.org/wiki/Shoelace_formula
52085214
[wiki-sparse-matrix]: https://en.wikipedia.org/wiki/Sparse_matrix#Dictionary_of_keys_(DOK)
52095215
[wiki-taxicab]: https://en.wikipedia.org/wiki/Taxicab_geometry

0 commit comments

Comments
 (0)