General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2023 Day 5 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

Discussion thread for day 5 of the Advent of Code - https://adventofcode.com/2023/day/5

32 REPLIES 32
Yoshiro_Fujimori
15 - Aurora

With a hint from @gawa , I could not come to the solution of Part 2 before going to bed.

This morning I found a way and it worked.

Thanks @gawa (and my good sleep)!

 

Spoiler

 

Main

AoC05_main.png
Prep Macro
AoC05_macro1.png
Mapping Macro
AoC05_macro2.png

 

DaisukeTsuchiya
13 - Pulsar

I revisit my WF and update. I got the clear picture now. WF completes in 0.7sec.

Spoiler
<WF>
スクリーンショット 2023-12-06 094703.png

<Macro Part1>
スクリーンショット 2023-12-05 230635.png
<Macro Part2>
スクリーンショット 2023-12-05 230659.png
estherb47
15 - Aurora
15 - Aurora

My brain definitely hurts after this one......

Carolyn
9 - Comet

Solved. Part 1 worked beautifully but Part 2 failed spectacularly (those Joins seemed like such a good idea during Part 1), so I ended up rebuilding the workflow just for Part 2 with an Iterative Macro (which I probably should've done in the first place). Good fun

 

Spoiler
Part 1.png


Part 2.png


Part 2 Macro.png

 

FrederikE
13 - Pulsar
 

Pure brute force. The workflow ran all night and finished 20 min before the AoC Day ended. 

Screenshot 2023-12-06 053904.png

 

Spoiler
Screenshot 2023-12-06 053841.png

5/5 so far. 

cgoodman3
14 - Magnetar
14 - Magnetar
Spoiler
Brutal
Tried to brute force part 2, then spend a crazy amount of time trying to optimise.
Finally in the evening attempted the approach of creating ranges with big jumps, and then finding the seed number and then doing +1 increments around this value, which resulted in a fast solve.

day5_2023.png
And yes I probably have should have put this in a macro!
Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
Pang_Hee_Choy
12 - Quasar

 

 

Spoiler
 

workflow

 

 

Screenshot 2023-12-06 140440.png
macro for part 1
Screenshot 2023-12-06 140445.png
macro for part 2:
1. split to group based on the seed range
2. update the destination, source, and range
3. go for next soil etc.

i did not update the previous range, because it not required.
Screenshot 2023-12-06 140449.png

 

 

AkimasaKajitani
17 - Castor
17 - Castor

My solution.

 

Spoiler
I completed part 2 just before sleeping. This is that workflow.
AoC_2023_05_07.png
To be the honest, I was going to do debug more time, but I got the correct result. Some of this is not clear to me, but I'll leave it at that for now. But the workflow above is messy, so I remade it using Iterative macro.

AoC_2023_05_08.png


Part 1 is normal brute force. But that was not working for Part 2. So I made it using range approach.

Part 1 macro :
AoC_2023_05_06.png


Part 2 macro :

AoC_2023_05_09.png

 

mceleavey
17 - Castor
17 - Castor

I did it.

I now hate the world.



Bulien

JarrodT
Alteryx
Alteryx

Day 5 Part 2 was tricky even with the right "logic". Ranges are easy to conceptualize, but a bit harder to implement... but when it finally works, it solves both parts in 0.6 seconds. 😁 

Spoiler
image.png
Labels