Giter Club home page Giter Club logo

algorithms's Introduction

Algorithms

  这里有各种算法的C++代码,任何人可以在自己的任何程序中使用,欢迎大家指出代码中的错误以及有待改进的地方。

  本仓库内的所有代码没有任何license,大家要是使用我的代码开发自己的软件挣了大钱,或是参考我的代码在NOI中得了金牌,我都会很高兴的。使用这里的代码之后,你可以不公开源代码。总而言之,你就把这里的代码当成你自己写的一样,无论怎样使用都是可以的。但是,我不对本仓库内代码的正确性负责。大家要是使用我的代码开发软件而导致程序崩溃,或是参考我的代码在考试时出错,请不要向我抱怨。如果你愿意,遇到问题可以在Issues中提出来,我们共同解决。若是能Pull Request就更好了,但是提交源代码请仿照我的代码风格。以后有空闲时间我有可能写一个coding-style的文档说明代码风格。

Index

--------------------------Contents-------------------------- --------------------------FileName--------------------------
单源最短路径(SPFA) Bellman-Ford(Queue-Optimised)
单源最短路径(Bellman-Ford) Bellman-Ford
广度优先搜索 Breadth-First-Search
冒泡排序 Bubble-Sort
桶排序 Bucket-Sort
枚举组合 Combination
深度优先搜索 Depth-First-Search
并查集 Disjoint-Set-Union
最大流(Edmonds-Karp) Edmonds-Karp
欧拉函数 Euler's-Totient-Function
拓展欧几里得算法 Extended-Euclid
简单的快速幂 Fast-Exponentiation
树状数组 Fenwick-Tree
所有结点对之间的最短路径(Floyd) Floyd-Warshall
凸包算法(Graham扫描法) Graham-Scan
辗转相除法求最大公约数 Greatest-Common-Divisor
字符串匹配(KMP) Knuth-Morris-Pratt
最小生成树(Kruskal) Kruskal
最近公共祖先(Tarjan) Least-Common-Ancestor(Tarjan)
朴素的矩阵乘法 Matrix-Multiplication(Naive)
归并排序 Merge-Sort
最小堆 Min-Heap
乘法逆元 Modular-Multiplicative-Inverse
队列的基本操作 Queue
快速排序的优化版本 Quick-Sort(Extra-Optimised)
快速排序的随机化版本 Quick-Sort(Randomized)
快速排序 Quick-Sort
线段树维护区间最大值 Segment-Tree(Maximum)
线段树维护区间最小值 Segment-Tree(Minimum)
线段树维护区间和值 Segment-Tree(Sum)
ST表 Sparse-Table
栈的基本操作 Stack

algorithms's People

Contributors

dev-xys avatar

Watchers

James Cloos avatar Kocola avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.