百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

advanced-algorithms

> DevOps
开源

100 多种算法和数据结构以 C# 通用方式实现

1.4K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

100 多种算法和数据结构以 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#algorithmsavl-treebinary-treesbtrees

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

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