Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

advanced-algorithms

> DevOps
Open source

100+ algorithms & data structures generically implemented in C#

1.4K stars0 likes1 views
WebsiteGitHub

About

100+ algorithms & data structures generically implemented in C#

Note:

This is a maintained, curiosity-driven personal project that was originally not intended to be a library. Issues and pull requests for bug fixes, new algorithms, and data structures are welcome. Feel free to fork and modify the project to fit your needs.

Advanced Algorithms

Various important computer science algorithms generically implemented in C#. Install by nuget

For beta releases on beta branch

Install-Package Advanced.Algorithms -Pre

For stable releases on stable branch

Install-Package Advanced.Algorithms
  • API documentation

Supports

  • .NET Standard 2.0 (covers .NET Framework 4.6.1+ and all modern .NET)

Development environment

Requires the .NET 10 SDK.

  • Visual Studio 2022+ or JetBrains Rider

Data structures

List

  • Array list (dynamic array) (implementation | tests)
  • Skip list (implementation | tests)

HashSets

  • HashSet (using separate chaining optionally with open address linear probing) (implementation | tests)
  • Ordered HashSet (implementation | tests)

Dictionaries

  • Dictionary (using separate chaining optionally with open address linear probing) (implementation | tests)
  • Ordered Dictionary (implementation | tests)

Stack

  • Stack (using dynamic array and optionally using singly linked list) (implementation | tests)

Queue

  • Queue (using dynamic array and optionally using doubly linked list) (implementation | tests)
  • Priority queue (implementation | tests)

Linked list

  • Singly linked list (implementation | tests)
  • Doubly linked list (implementation | tests)
  • Circular linked list (implementation | tests)

Heap

  • Binary heap (implementation | tests)
  • d-ary heap (implementation | tests)
  • Binomial heap (implementation | tests)
  • Fibonacci heap (implementation | tests)
  • Pairing heap (implementation | tests)

Note: It is observed that among the implementations here, in practice, with the exclusion of UpdateKey (decrement/increment) operation, regular Binary Heap & d-ary Heap outperforms other in theory superiors. Likely because it doesn't have pointer juggling overhead and hey arrays are faster!

Tree

  • Tree (implementation | tests)
  • Binary tree (implementation | tests)

Binary search trees

  • Binary search tree (implementation | tests)
  • AVL tree (implementation | tests)
  • Red black tree (implementation | tests)
  • Splay tree (implementation | tests)
  • Treap tree (implementation | tests)

B trees (database trees)

  • B-tree (implementation | tests)
  • B+ tree (implementation | tests)

Queryable trees

  • Segment tree (implementation | tests)
  • Binary indexed tree (Fenwick tree) (implementation | tests)
  • Multi-dimensional interval tree (implementation | [tests](https://github.com/justcoding1

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#algorithmsavl-treebinary-treesbtrees

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理