Graphs.jl
An optimized graphs package for the Julia programming language (by JuliaGraphs)
aoc2022
My solutions for Advent of Code 2022 (by tumdum)
Graphs.jl | aoc2022 | |
---|---|---|
4 | 10 | |
436 | 2 | |
1.1% | - | |
8.0 | 5.2 | |
7 days ago | 5 months ago | |
Julia | Rust | |
GNU General Public License v3.0 or later | GNU Affero General Public License v3.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Graphs.jl
Posts with mentions or reviews of Graphs.jl.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-23.
-
-๐- 2022 Day 24 Solutions -๐-
Next I tried a parallel BFS, but hit two issues: early stopping threads is hard, and the overhead of threads seems significant compared to the tiny amount of work each thread can do before either synchronising or ending. So that wasn't going to get me the gains I needed, and besides, the exploration had revealed a much more lucrative approach - frontiers! By only considering the search frontier, I could easily make sure each node was unique, which made a huuuuuuge difference to run time.
-
-๐- 2022 Day 12 Solutions -๐-
Getting started with Graph libraries is always a great way to get a feel for the approachability of a language ecosystem. Got thrown in a web dead-end by some links to old libraries, but once I found Graphs.jl it was pretty smooth sailing. The precious examples were sufficient if not bountiful, but I appreciate examples are hard for such generic libraries.
-
How do I graph this on julia?
There is the rebooted version https://github.com/JuliaGraphs/Graphs.jl.
-
Advent of Code 2021, in Julia?
It seems LightGraphs is now being continued as Graphs, which is different from the original Graphs package that LightGraphs was made to be an alternative of? Not sure what that's about tbh.
aoc2022
Posts with mentions or reviews of aoc2022.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-14.
-
[2022 Day 15] today is the day
Mine is taking ~115ms on my 9 years old i5-3340M :D
-
-๐- 2022 Day 15 Solutions -๐-
Rust - just collect in range intervals per line. Sum of lengths is basically p1 and p2 is just a loop over rows looking for one with more than one interval. Total runtime for both parts is ~650ms. twitch, youtube.
-
-๐- 2022 Day 13 Solutions -๐-
Rust. Obs crashed and I didn't notice it until the end so here are partial recordings: twitch, youtube.
-
-๐- 2022 Day 12 Solutions -๐-
It's 'cheating' only in the sens that I wanted to measure real i/o so it would be cheating in my case. And funnily enough I had a bug there that I just fixed :D
-
[2022 Day11 (Part2)] [python] brute force
My real solution runs in 19ms and is here. The one with BigUint is on a branch here.
-
-๐- 2022 Day 11 Solutions -๐-
Simple rust solution that solves both parts with same function. Recordings twitch and youtube.
-
-๐- 2022 Day 9 Solutions -๐-
Rust / Recording
-
-๐- 2022 Day 8 Solutions -๐-
Rust with runtime ~450ยตs
What are some alternatives?
When comparing Graphs.jl and aoc2022 you can also consider the following projects:
LightGraphs.jl - An optimized graphs package for the Julia programming language
adventofcode
JGraphT - Master repository for the JGraphT project
aoc-2022 - Solutions to the Advent of Code 2022, just for fun ๐
Gadfly.jl - Crafty statistical graphics for Julia.
adventofcode - Python solutions to Advent of Code puzzles, https://adventofcode.com/
ArraysOfArrays.jl - Efficient storage and handling of nested arrays in Julia
advent-2022
aoc
aoc-2022 - Code for Advent of Code 2022
AdventOfCode - Solutions to Advent of Code 2021 - 2023
aoc2022