C# Algorithm

Open-source C# projects categorized as Algorithm | Edit details

Top 10 C# Algorithm Projects

  • WaveFunctionCollapse

    Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics

    Project mention: Show HN: Simple Wave Function Collapse | news.ycombinator.com | 2022-05-14

    So, about the name, the first time I've heard about WFC was when this post was released https://github.com/mxgmn/WaveFunctionCollapse

    I did not included it on my readme because I did not used or even looked at their code, but that's the WFC I was referring to when I named my project.

    I learned the basic concepts of WFC from different sources and try to implement them on my own.

  • Lean

    Lean Algorithmic Trading Engine by QuantConnect (Python, C#)

    Project mention: Writing Our Own Buying Macro/Algo | reddit.com/r/ATERstock | 2022-05-05
  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • C-Sharp

    All algorithms implemented in C#.

    Project mention: Yes, PHP is faster than C# | news.ycombinator.com | 2022-03-16

    The previous post on this blog makes another worthless comparison, this time based on lines of code:


    > Like, look at this Merge Sort in C# [1] (130 lines) and then look at it in PHP (31 lines) [2]. You can’t beat that kind of productivity, not to mention in PHP, you can even mix data types (like ints and floats) where in the C# version, it’d be much more difficult.

    [1] https://github.com/TheAlgorithms/C-Sharp/blob/master/Algorit...

    [2] https://www.w3resource.com/php-exercises/searching-and-sorti...

    The C# version is the first Google result for "c# merge sort". But a later result is from w3resource.com, which where the PHP code came from. That C# code is only 55 lines and could easily be shorter by replacing loops with standard library calls:


    Also, both versions of the code from w3resources.com are trash -- they use an O(N) step to remove an element from the front of the array (array_slice in PHP and List.Remove in C#), which makes them O(N^2 log N), which is even worse than a naive selection sort or bubble sort.

  • soundfingerprinting

    Open source audio fingerprinting in .NET. An efficient algorithm for acoustic fingerprinting written purely in C#.

    Project mention: HN: == Happy New Year HN == (What is your “plans” for the new year?) | news.ycombinator.com | 2021-12-31

    My goal for the next year is just to work fewer hours. Covid pushed my work habit to the extreme, and I need to rebalance.

    1. Read more books, less social media/news.

    2. Spend more time with my friends. I haven't seen some of them IRL for more than a year.

    3. Exercise more, play tennis with my daughter, spend quality time with my kids.

    4. Spend more time with my parents. They've become visibly older in the last years, an observation that scares me.

    5. Focus more on marketing for the businesses that I've bootstrapped. All the shiny new features that are developed are not as important as getting more people to use your product.

    6. Promote open-source project to 1k GitHub stars[1]. I know it isn't very meaningful, but it's just nice to receive a bit of recognition from the community.

    7. Enjoy life, don't stress about all the little things that happen along the way.

    Happy new year!

    [1]: https://github.com/AddictedCS/soundfingerprinting

  • bcrypt.net

    BCrypt.Net - Bringing updates to the original bcrypt package

    Project mention: bcrypt.net: password hashes suddenly stopped matching | reddit.com/r/dotnet | 2022-05-05
  • Towel

    Throw in the towel.

    Project mention: More C# Console Games | dev.to | 2022-02-09

    PacMan is... a PacMan clone in the console. Get the dots. Dodge the ghosts. It's not intended to be very faithful though. I didn't research the AI of the ghost, I just came up with my own AIs that worked. Here is what I did for the ghost AIs:     - Ghost a: follows you via Dijkstra Path Finding and updates every 6 frames (faster)     - Ghost b: randomly moves and updates every 6 frames (faster)     - Ghost c: follows you via Dijkstra Path Finding and updates every 12 frames (slower)     - Ghost d: randomly moves and updates every 12 frames (slower) Note: for this game I pulled in a reference to my nuget package Towel because it includes generic versions of the Dijkstra Path Finding algorithm.

  • IntervalUtility

    .Net C # utility for working with intervals, such as time periods. The utility allows you to find intersections of periods, exclude periods, etc.

    Project mention: ASCII Graph Generator - Blazor WebAssembly Demo | reddit.com/r/dotnet | 2021-05-27

    For my “.Net IntervalUtility” library (GitHub, NuGet) I made an interactive demo on Blazor WebAssembly. I have implemented an ASCII generator for displaying intervals.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GoneuraOu

    UCI Engine for MiniShogi. Plan to use NNUE.

    Project mention: Avalanche Chess Engine... Part 1 | dev.to | 2022-01-26

    After successfully building a 5x5 shogi engine in C#, I thought I would make my own chess engine, totally from scratch. This would enhance my skills with low-level instructions, and give me something to constantly improve and challenge myself.

  • LX4Cnh

    Algorithm for high-speed multiplication of LARGE numbers

    Project mention: High-speed multiplication of large numbers |+ Fast Fnv1a-128 implementations |+ Hash-based UUID (Guid) ... 「 LONGPOST 」 | reddit.com/r/x3F | 2021-08-01


  • Fnv1a128

    FNV-1a 「 128-bit 」 High-Speed implementations 🚀 using LX4Cnh etc.

    Project mention: High-speed multiplication of large numbers |+ Fast Fnv1a-128 implementations |+ Hash-based UUID (Guid) ... 「 LONGPOST 」 | reddit.com/r/x3F | 2021-08-01


NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-14.

C# Algorithm related posts


What are some of the best open-source Algorithm projects in C#? This list will help you:

Project Stars
1 WaveFunctionCollapse 18,489
2 Lean 6,177
3 C-Sharp 4,062
4 soundfingerprinting 746
5 bcrypt.net 592
6 Towel 529
7 IntervalUtility 4
8 GoneuraOu 2
9 LX4Cnh 1
10 Fnv1a128 0
Find remote jobs at our new job board 99remotejobs.com. There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives