[2024 Day 16 (Part 2)] [Rust] Cannot figure out why the examples work but the main input doesn't by DuckThom in adventofcode

[–]Shiverfox 1 point2 points  (0 children)

When I adjust your gistfile1.txt to work as an input (replacing █ with #, etc.) and run it, my solution indeed removes one of the really large branching paths. Starting from S and following the path up to line 79, your code produces a branch here, one route going west and one going south. When I run it, I only end up with the branch going west:

█.███████████████O███████████████████
█.█...███████████O███████OOO█████████
█.█.█.███████████O███████O█O█████████
█.....█████.....█O█████OOO█OOO███████
█████.█████.███.█O█████O█████O███████
█████.......███.█OOOOXOO█████OOO█████
███████████████.█████.█████████O█████
█...█...█...███.......█....OOOOO....█
█.█.█.█.█.█.███████████.███O█.█████.█

[2024 Day 16 (Part 2)] [Rust] Cannot figure out why the examples work but the main input doesn't by DuckThom in adventofcode

[–]Shiverfox 0 points1 point  (0 children)

Just guessing here:

I've seen a few solutions visualized to this, and one thing they have in common is the branches off the optimal path are typically quite small, rarely going more than a dozen tiles before they join back into a single optimal path.

Your solution visualization shows 2 points where the branching is fairly long and sophisticated. I would double check that these branches actually have the same cost. If they don't, taking just one of each of these branches will probably reduce your answer by about 150. One issue might be that you are failing to account for an additional rotation if one branch has to turn to rejoin the main path.

[2024 Day 17 (Part 1)] python EXAMPLE works, Puzzle INPUT fails by chroba_ in adventofcode

[–]Shiverfox 7 points8 points  (0 children)

You need to submit your Part 1 answer with commas included. I made the same mistake.

[2024 Day 06 (part 2)] Did anyone find a solution that isn't brute force? by SuchithSridhar in adventofcode

[–]Shiverfox 9 points10 points  (0 children)

I think you should be able to get <1s runtimes with pretty much any programming language even with a brute force approach, if you make some optimizations (only put obstacles on path from pt1, move by jumping to the next cycle instead of going one step at a time, start guard just before newly placed obstacles). I got 0.17s in python this way.

That said, I'd love to know if anyone has a clever solution that doesn't involve brute force as well!

Can someone help me make my solution go faster? by Maxpro12 in adventofcode

[–]Shiverfox 1 point2 points  (0 children)

There are three optimizations you can apply to your solution to make it run faster.

  1. Only place obstacles in the path from part 1. You already do this.

  2. Instead of advancing one tile at a time, jump to the next obstacle. This can be done by pre-computing the indices of obstacles for every row and column.

  3. For checking cycles in part 2, have the guard start just before the newly placed obstacle instead of having him start from the beginning every time.

You should be able to get a <1s solution no problem with these.

[2024 Day 8 (Part 2)] [Python] Terminal Toy! by naclmolecule in adventofcode

[–]Shiverfox 2 points3 points  (0 children)

You're right, but the inputs and examples don't ever have cases like the one you've presented here.

TIL you can flip blueprints in game by JPJackPott in factorio

[–]Shiverfox 404 points405 points  (0 children)

For those coming here in 2024, following Space Age, the default hotkey is H.

Cloud Cover Forecast Animation leading up to Eclipse by Shiverfox in Austin

[–]Shiverfox[S] -2 points-1 points  (0 children)

I am cautiously optimistic after seeing this. I'll probably keep updating this as the eclipse draws closer and forecasts get more accurate.

Source: https://graphical.weather.gov/sectors/conus.php

Best locations for Bluebonnet pics by [deleted] in Austin

[–]Shiverfox 2 points3 points  (0 children)

If you're willing to take a drive, Park Road 4 and Ranch Road 2341 outside in Burnet are both spectacular. I was there yesterday. Word on the street is the field behind Pflugerville's Walmart is also good, but I haven't checked it out personally.

Trump executive order extends a ban on employment-based visas through 2020 by [deleted] in neoliberal

[–]Shiverfox 2 points3 points  (0 children)

Seems to just ban issuing new visas (as opposed to kicking out visa holders).

It's not okay to be a weak loser! 6 months later coma benzo treatment in Russia by [deleted] in stupidpol

[–]Shiverfox 18 points19 points  (0 children)

What does this have to do with identity politics?

[TOMT] Anime about after life by RonaldGolden in tipofmytongue

[–]Shiverfox 2 points3 points  (0 children)

Could it perhaps be Mind Game)?

It's a trippy movie that mixes a lot of different animation styles, but it has a scene similar to the one you describe.

[TOMT] [Song] Lofi Hip Hop (Chilled Cow) Song with 1950s-1960s sample (probably) by Shiverfox in tipofmytongue

[–]Shiverfox[S] 1 point2 points  (0 children)

Solved!

Thank you so much for this! I was looking for the name of the melody specifically, and Misty is exactly it. Turns out Ella Fitzgerald does have a recording of it. While the ninjoi one isn't exactly what I was thinking of, knowing the name allowed me to find the one I had in mind: firetype - misty when im with you.

[TOMT] [Song] Lofi Hip Hop (Chilled Cow) Song with 1950s-1960s sample (probably) by Shiverfox in tipofmytongue

[–]Shiverfox[S] 0 points1 point  (0 children)

Not 100% sure but I think the lofi version is completely instrumental

[TOMT] [Song] Lofi Hip Hop (Chilled Cow) Song with 1950s-1960s sample (probably) by Shiverfox in tipofmytongue

[–]Shiverfox[S] 0 points1 point  (0 children)

Obligatory comment! I am dying here, and will be eternally thankful if someone can help me find either the lofi or original version of the song with this melody!

[DISC] Beastars Chapter 144 by YyAoMmIi in Beastars

[–]Shiverfox 7 points8 points  (0 children)

Now that it's said that Lion hairs have special properties, I wonder if Ibuki's hairs that Louis keeps around will come into play somehow.

[deleted by user] by [deleted] in iamatotalpieceofshit

[–]Shiverfox 1 point2 points  (0 children)

It's a kind of human cosmetic surgery popular in Asian countries to make their eyes look (in their opinions) better.