C-Plus-Plus README

The project's README from github.com/TheAlgorithms/C-Plus-Plus. As one markdown file: README.md.

The Algorithms - C++ # {#mainpage}

Gitpod Ready-to-Code CodeQL CI Gitter chat contributions welcome GitHub repo size Doxygen CI Awesome CI Income Discord chat Donate

Overview

This repository is a collection of open-source implementation of a variety of algorithms implemented in C++ and licensed under MIT License. These algorithms span a variety of topics from computer science, mathematics and statistics, data science, machine learning, engineering, etc.. The implementations and the associated documentation are meant to provide a learning resource for educators and students. Hence, one may find more than one implementation for the same objective but using a different algorithm strategies and optimizations.

Features

Documentation

Online Documentation is generated from the repository source codes directly. The documentation contains all resources including source code snippets, details on execution of the programs, diagrammatic representation of program flow, and links to external resources where necessary. The documentation also introduces interactive source code with links to documentation for C++ STL library functions used. Click on Files menu to see the list of all the files documented with the code.

Documentation of Algorithms in C++ by The Algorithms Contributors is licensed under CC BY-SA 4.0
Creative Commons LicenseCredit must be given to the creatorAdaptations must be shared under the same terms

Contributions

As a community developed and maintained repository, we welcome new un-plagiarized quality contributions. Please read our Contribution Guidelines.

C-Plus-Plus (TheAlgorithms/C-Plus-Plus)

Searching Database…

这是什么?这是 TheAlgorithms/C-Plus-Plus,一个开源的 C++ 算法实现集合,涵盖计算机科学、数学、机器学习和物理等领域,定位是学习资源,而非用于生产环境。
这是需要安装的库,还是只是一堆源文件?它不是一个可以单独安装的库,而是一个仓库,里面是一个个独立、自包含的 C++ 源文件,每个文件实现一种算法,你可以单独阅读、编译和复用。
我该怎么使用其中的某个算法?浏览或克隆仓库,选出你需要的算法文件,然后用兼容 C++17 的编译器直接编译即可——无需安装构建系统或任何包。
编译这些代码需要额外的库吗?不需要——每个实现都只依赖 C++ 标准模板库,不需要任何第三方依赖。
这些代码是为生产环境准备的吗?不是,它明确定位为学习资源——同一算法常常会有多种采用不同策略的实现并存,而不是只有一个“标准”的优化版本。
这个集合主要面向哪些人?主要面向希望获得可读性强、注释完善的经典算法参考实现的学生和教育工作者,而不是可直接交付使用的现成库。
这些代码真的能在不同操作系统上运行吗?可以——每次提交都会在 Windows、macOS 和 Ubuntu(Linux)上分别使用 MSVC、AppleClang 和 GNU GCC 进行编译和测试。
代码和文档分别采用什么许可条款?源代码采用 MIT 许可证,而自动生成的文档本身则以 CC BY-SA 4.0 发布。
除了经典的排序和查找,它还涵盖哪些主题?除标准计算机科学算法外,它还涵盖数学、统计学、数据科学、机器学习以及通用工程问题。
在哪里可以阅读某个具体算法的文档?项目会直接从源代码自动生成在线文档,包括代码片段、执行细节以及程序流程图。
这些代码能在 ESP32 这类微控制器上运行吗?很有可能——严格遵循 C++17 标准正是为了让代码能以很少甚至无需改动的方式移植到 ESP32 或 ARM Cortex 等嵌入式平台上。
Size
140.7 MB
Stars
34.8K
Updated
CommitOct 03
Age
10y
Commits · 90 Days