C# Algorithms

Open-source C# projects categorized as Algorithms

Top 10 C# Algorithm Projects

  • ML.NET

    ML.NET is an open source and cross-platform machine learning framework for .NET.

    Project mention: ML.NET: can Microsoft's machine learning be trusted? | dev.to | 2022-10-03

    We checked the ML.NET 1.7.1 version. The source code of this project's version is available on GitHub.

  • ailab

    Experience, Learn and Code the latest breakthrough innovations with Microsoft AI

  • Zigi

    The context switching struggle is real. Zigi makes context switching a thing of the past. It monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack!

  • C# Algorithms

    :books: :chart_with_upwards_trend: Plug-and-play class-library project of standard Data Structures and Algorithms in C#

    Project mention: How can I implement a general tree, NOT a binary tree? | reddit.com/r/csharp | 2021-12-19

    There are a lot of different types of trees and the implementation depends heavily on the problem it solves. GitHub has many C# tree implementations such as this project if you go looking. I wrote a structure similar to a trie where each node contained a Dictionary so I could parse hierarchical paths for a project structure.

  • 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.

  • trienet

    .NET Implementations of Trie Data Structures for Substring Search, Auto-completion and Intelli-sense. Includes: patricia trie, suffix trie and a trie implementation using Ukkonen's algorithm.

    Project mention: GitHub - gmamaladze/trienet: .NET Implementations of Trie Data Structures for Substring Search, Auto-completion and Intelli-sense. Includes: patricia trie, suffix trie and a trie implementation using Ukkonen's algorithm. | reddit.com/r/dotnet | 2022-09-18
  • QuikGraph

    Generic Graph Data Structures and Algorithms for .NET

    Project mention: Chains from list - a smarter way? | reddit.com/r/csharp | 2022-09-01

    I found this library that implements all the typical graph concepts, and especially the search algorithms. It also have ways to visualize your graphs if that's needed. https://github.com/KeRNeLith/QuikGraph

  • AlgorithmsPlayGround.NET

    Open source library containing known sorting and searching algorithms.

    Project mention: I made a library containing all known sorting and searching algorithms and their performance | reddit.com/r/dotnet | 2022-09-03

    skillmaker-dev/AlgorithmsPlayGround.NET: Open source library containing known sorting and searching algorithms. (github.com)

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • csharp-extensions

    A collection of utility C# extension methods.

    Project mention: My first NuGet publication: CLSS - The C# Language Syntactic Sugar suite | reddit.com/r/csharp | 2022-08-01

    This project is a collection of packages that aim to enhance the experience of coding in C#. Each of them can be (for now) installed independently of each other. Think language-ext or csharp-extensions but modular.

  • Huid

    🎫 High-speed a FNV-1a-128 hash-based UUID.

  • IntervalUtility

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

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-10-03.

C# Algorithms related posts


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

Project Stars
1 ML.NET 8,212
2 ailab 7,167
3 C# Algorithms 5,197
4 C-Sharp 4,783
5 trienet 378
6 QuikGraph 275
7 AlgorithmsPlayGround.NET 92
8 csharp-extensions 33
9 Huid 13
10 IntervalUtility 4
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.