Skip to content

Commit

Permalink
Update docs on Tue Dec 24 08:44:53 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 24, 2024
1 parent c40665f commit 6730f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified 2024/24/illustration.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions 2024/24/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ <h2 id="problem-name">Crossed Wires</h2>
</div>

<div class="content">
<div id="notes"><p>You and The Historians arrive at the edge of a <a href="/2022/day/23">large grove</a> somewhere in the jungle. After the last incident, the Elves installed a small device that monitors the fruit. While The Historians search the grove, one of them asks if you can take a look at the monitoring device; apparently, it&#39;s been malfunctioning recently.</p>
<div id="notes"><p>You and The Historians arrive at the edge of a <em>large grove</em> somewhere in the jungle. After the last incident, the Elves installed a small device that monitors the fruit. While The Historians search the grove, one of them asks if you can take a look at the monitoring device; apparently, it&#39;s been malfunctioning recently.</p>
<p>The device seems to be trying to produce a number through some boolean logic gates. Each gate has two inputs and one output. The gates all operate on values that are either <em>true</em> (<code>1</code>) or <em>false</em> (<code>0</code>).</p>
<p><em>Visit the website for the full story and <a href="https://adventofcode.com/2024/day/24">full puzzle</a> description.</em></p>
<p>The first half of the problem was a familiar logic circuit evaluator, we have done this before. I really liked the second part, although I don&#39;t have a super generic solution for it. I generated a graph from my input using Graphviz, then realized that the circuit tries to implement a full adder.</p>
Expand All @@ -288,7 +288,7 @@ <h2 id="problem-name">Crossed Wires</h2>
<p>Which are chained one after the other like this:</p>
<p><img src="adder.png" alt="full adder"></p>
<p>I took the images from <a href="https://www.build-electronic-circuits.com/full-adder/">build-electronic-circuits.com</a>.</p>
<p>I implemented this logic in my &#39;fix&#39; method. I start with the output x01 and y01 and try to identify the gates for the individual steps. Where I found an error, I manually checked my input to figure out what went wrong. I had just two different
<p>I implemented this logic in my &#39;fix&#39; method. I start with the inputs x01 and y01 and try to identify the gates for the individual steps. Where I found an error, I manually checked my input to figure out what went wrong. I had just two different
kind of errors which can be corrected by the fixer.</p>
</div>
<div id="code-container"><pre class="hljs language-csharp"><code>namespace AdventOfCode.Y2024.Day24;
Expand Down

0 comments on commit 6730f3a

Please sign in to comment.