Frectonz
I am already falling behind on this year's AoC, maybe i need to stop sleeping. One thing i have realized this year is that my knowledge in the area of "graph algorithms" is heavily limited.
And today I did "Pipe Maze" - Day 10 - Advent of Code 2023 in Rust
Part 1 was parsing a grid of connected pipes and finding the longest path in that grid. Parsing the grid was easy enough but for the actual longest path algorithm stuff i used this rust library petgraph that has a lot of graph traversal algorithms. Particularly i used the all_simple_paths function. And another cool thing about the library it can turn the your graph into a graphviz dot file. So you can turn your graph into an image, that's what you are seeing in the images.
Part 2 was asking for the number of grid points that were inside the loop formed by the path in part 1. I tried to think of some heuristics thinking of all the connections a point could make but i couldn't figure it out.
So then i finally decided to checkout the solutions thread on reddit and i saw that people were talking about these two algorithms Shoelace algorithm and Pick's theorem. So i implemented the two algorithms in my solutions and finally solved part 2.
Part 1 was parsing a grid of connected pipes and finding the longest path in that grid. Parsing the grid was easy enough but for the actual longest path algorithm stuff i used this rust library petgraph that has a lot of graph traversal algorithms. Particularly i used the all_simple_paths function. And another cool thing about the library it can turn the your graph into a graphviz dot file. So you can turn your graph into an image, that's what you are seeing in the images.
Part 2 was asking for the number of grid points that were inside the loop formed by the path in part 1. I tried to think of some heuristics thinking of all the connections a point could make but i couldn't figure it out.
So then i finally decided to checkout the solutions thread on reddit and i saw that people were talking about these two algorithms Shoelace algorithm and Pick's theorem. So i implemented the two algorithms in my solutions and finally solved part 2.
π₯1
I just finished solving "Cosmic Expansion" - Day 11 - Advent of Code 2023
Now i am only 2 days behind π π
I did it in Rust π¦. I gotta say rayon + petgraph is the ultimate weapon to solve these graph questions.
[Part 1 Solution] [Part 2 Solution]
Now i am only 2 days behind π π
I did it in Rust π¦. I gotta say rayon + petgraph is the ultimate weapon to solve these graph questions.
[Part 1 Solution] [Part 2 Solution]
π₯3
Frectonz
Lex finally interviewed the king of capitalism π€―π https://youtu.be/DcWqzZ3I2cY
YouTube
Bo Burnham - Bezos I+II [HQ Extended Mix]
Check out my latest video - 5 Reasons Bezos by Bo Burnham is so catchy: https://www.youtube.com/watch?v=kpiRdHP3PyQ
I DO NOT own the rights to Bezos I or Bezos II by Bo Burnham, or the images of Jeff Bezos and Bo Burnham. I simply loved the music from Bo'sβ¦
I DO NOT own the rights to Bezos I or Bezos II by Bo Burnham, or the images of Jeff Bezos and Bo Burnham. I simply loved the music from Bo'sβ¦
Frectonz
I just finished solving "Cosmic Expansion" - Day 11 - Advent of Code 2023 Now i am only 2 days behind π π I did it in Rust π¦. I gotta say rayon + petgraph is the ultimate weapon to solve these graph questions. [Part 1 Solution] [Part 2 Solution]
Finished "Hot Springs" - Day 12 - Advent of Code 2023
The logic was very complex for this one i had to checkout other people's code.
The logic was very complex for this one i had to checkout other people's code.
β€1
Frectonz
Finished "Hot Springs" - Day 12 - Advent of Code 2023 The logic was very complex for this one i had to checkout other people's code.
i am once again 3 days behind, i think i am not going to be able to catch up π
Saying that some technology is "too hard to understand" should rarely be considered a valid criticism.
Not everything ought to be simple.
That's why I love phrase "skill issue".
Not everything ought to be simple.
That's why I love phrase "skill issue".
They are turning xkcd's What if books into videos. π₯ They already have 2 videos up.
https://www.youtube.com/@xkcd_whatif
https://www.youtube.com/@xkcd_whatif
π₯2
I was going through the files in my PC deleting some stuff and found this pics of me messing around with the canvas API in IT class.