C README

The project's README from github.com/TheAlgorithms/C. 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

The repository is a collection of open-source implementations of a variety of algorithms implemented in C and licensed under GPLv3 License. The algorithms span a variety of topics from computer science, mathematics and statistics, data science, machine learning, engineering, etc.. The implementations and their associated documentations 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 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. 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 (TheAlgorithms/C)

Searching Database…

22.5K ·GitHub
这是什么?一个由社区维护的开源 C 语言算法实现合集,内容涵盖计算机科学、数学、统计学、数据科学、机器学习和工程领域。
它是可以加到我项目里的库,还是一套可以阅读和运行的程序合集?它是一组独立的源文件:每个文件都是自成一体的,只需要 C 标准库,可以单独编译——所以你是逐个学习和使用算法,而不是安装一个软件包。
我怎么编译并运行里面的算法?克隆仓库,用支持 C11 标准的编译器编译你感兴趣的任意文件;CI 会对每次提交做编译测试,所以这些示例代码都能顺利编译通过。
这些代码能直接用于生产环境吗,还是更适合当学习资料?把它当作学习资源,而不是经过优化的库:同一个目标你可能找到好几种实现,它们采用的算法策略和优化方式各不相同。
它是给初学算法的新手看的,还是给有经验的 C 开发者看的?主要面向教师和学生——源代码刻意写得注释详尽、讲解细致,方便深入研究每种算法的基本原理。
它在我自己的电脑上能跑吗,还是只能在 Linux 上运行?CI 会在 macOS(AppleClang 14.0.0)和 Ubuntu(GCC 11.3.0)上对每次提交进行编译和测试;而且代码严格遵循 C11 标准,几乎不用改动就能跑在 ESP32、ARM Cortex 这类嵌入式系统上。
我能把这些代码拿来用到自己的项目里吗?可以——这些模块化的实现采用 GPLv3 协议,明确就是方便大家在其他应用中使用的;不过 GPLv3 的Copyleft(著佐权)义务也会延续到你构建的作品上。
我怎么确认某个实现真的能正常工作?每个程序都内置了自检代码,编译并运行该文件,当场就能验证实现的行为是否符合描述。
What are similar projects?C-Plus-Plus, JavaScript, Go, interviews, Java, cosmos, interview, Python
Size
19.9 MB
Stars
22.5K
Updated
CommitSep 27
Age
10y
Commits · 90 Days