Skip to main content
100%

advent-of-code-05

✓ Published0🌍 Public
11wheel
Last edited Dec 5, 2017
Created on Dec 5, 2017

Each row of the visualization is a horizontal line representing an element in the puzzle's input array. As the algorithm jumps through the array, darker values indicate lower numbers, and the x-axis tracks progress over time. Purple vertical columns show the rate of visits each position receives per roughly 30,000 jumps. The code uses `d3.scaleLinear` for color encoding and draws rectangles to both a Canvas and an SVG layer via `d3.conventions`.

AI-generated description

Day 5 of Advent of Code, Part Two

The puzzle loads an array of numbers and jumps through them, using the current position's value as the next index. It stops when it jumps out of the array. After a visit, numbers less then three are incremented and numbers greater than or equal to three are decremented.

Here the, each element in the array is shown as horizontal line. Darker values show lower numbers. The x position shows progression of the algorithm. After a position is repeatedly visited, it's value gets closer and closer to three until it isn't drawn anymore.

The purple lines show the rate of visits each position gets over time; each column represents about 30,000 jumps.

gpl-3.0 Licensed

Similar vizzes