Repository navigation
v0.1.0
Visualizer app to demo/test the graph, diffing, and packable libraries (haven't gotten around to packaging those for nuget). Windows, not signed - just good enough to run and you can check it out on the GitHub Pages site anyway at https://yewnyx.github.io/Algorithms/.
This release doubles as an AI disclosure as well as a brief explanation of what the library contains. I'm not here to convince anyone that this is a good or a bad thing - it's useful to me alone, and I've put the time in to make sure of that, before and after AI.
The Graphs library's highlight is the Tarjan algorithm which I've used in the past to great effect in a game's logic system to linearize a graph of logic elements into a set of subgraphs that can be independently scheduled. This was handwritten, though as of recently the AI did some optimization and testing passes and bugfixes.
Graphs also includes a FloydWarshall shortest-paths algorithm that I threw in to poke at it and explore. This was done primarily by AI.
Diffing, particularly the Myers diff and patching abstraction, comes from some ancient code from 2015 or so that I wrote in a Starbucks over the course of a summer carried forward from Swift to C#, but originally inspired by a Java implementation and a couple of long-forgotten blog posts. The rest of it is stuff I never got around to trying, and was done by AI.
Packables, particularly v1, I designed by hand to serialize/deserialize object graphs, potentially with cycles, whose object lifecycles were not necessarily owned purely by C#, for example in the case of MonoBehaviours and ScriptableObjects, which are constructed by Unity in part in native code. The format is rather straightforward so I reimplemented it from scratch, also by hand. I used AI to build a newer version that shored up some of the deficiencies that I never got around to in the first or second versions I built, MIT licensed but lost to a private repository beyond my reach..
Collections contains TwoWayDictionary. It's kind of trash, but it did the job for something I needed. :)
Visualizer is pretty much vibe-coded as a whole. I'm not trying to make a visualizer app but it's a useful demo of the algorithms and that's as far as it's intended to go. By far the sloppiest thing in here. Sorry 🤷
Full Changelog: https://github.com/yewnyx/Algorithms/commits/v0.1.0