# The Algorithms - C++ # {#mainpage}
<!-- the suffix in the above line is required for doxygen to consider this as the index page of the generated documentation site -->
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/TheAlgorithms/C-Plus-Plus)
[![CodeQL CI](https://github.com/TheAlgorithms/C-Plus-Plus/actions/workflows/codeql.yml/badge.svg)](https://github.com/TheAlgorithms/C-Plus-Plus/actions/workflows/codeql.yml)
[![Gitter chat](https://img.shields.io/badge/Chat-Gitter-ff69b4.svg?label=Chat&logo=gitter&style=flat-square)](https://gitter.im/TheAlgorithms)
[![contributions welcome](https://img.shields.io/static/v1.svg?label=Contributions&message=Welcome&color=0059b3&style=flat-square)](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md)
![GitHub repo size](https://img.shields.io/github/repo-size/TheAlgorithms/C-Plus-Plus?color=red&style=flat-square)
[![Doxygen CI](https://github.com/TheAlgorithms/C-Plus-Plus/workflows/Doxygen%20CI/badge.svg)](https://TheAlgorithms.github.io/C-Plus-Plus)
[![Awesome CI](https://github.com/TheAlgorithms/C-Plus-Plus/workflows/Awesome%20CI%20Workflow/badge.svg)](https://github.com/TheAlgorithms/C-Plus-Plus/actions?query=workflow%3A%22Awesome+CI+Workflow%22)
[![Income](https://img.shields.io/liberapay/receives/TheAlgorithms.svg?logo=liberapay)](https://liberapay.com/TheAlgorithms)
[![Discord chat](https://img.shields.io/discord/808045925556682782.svg?logo=discord&colorB=5865F2)](https://the-algorithms.com/discord/)
[![Donate](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/TheAlgorithms/donate)
## Overview
This repository is a collection of open-source implementation of a variety of algorithms implemented in C++ and licensed under [MIT License](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/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
* The repository provides implementations of various algorithms in one of the most fundamental general purpose languages - [C++](https://en.wikipedia.org/wiki/C%2B%2B).
* Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
* Each source code is atomic using [STL classes](https://en.wikipedia.org/wiki/Standard_Template_Library) and _no external libraries_ are required for their compilation and execution. Thus, the fundamentals of the algorithms can be studied in much depth.
* Source codes are [compiled and tested](https://github.com/TheAlgorithms/C-Plus-Plus/actions?query=workflow%3A%22Awesome+CI+Workflow%22) for every commit on the latest versions of three major operating systems viz., Windows, MacOS, and Ubuntu (Linux) using MSVC 19 2022, AppleClang 14.0.0, and GNU 11.3.0 respectively.
* Strict adherence to [C++11](https://en.wikipedia.org/wiki/C%2B%2B11) standard ensures portability of code to embedded systems as well like ESP32, ARM Cortex, etc. with little to no changes.
* Self-checks within programs ensure correct implementations with confidence.
* Modular implementations and OpenSource licensing enable the functions to be utilized conveniently in other applications.
## Documentation
[Online Documentation](https://TheAlgorithms.github.io/C-Plus-Plus) 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](https://TheAlgorithms.github.io/C-Plus-Plus/files.html) to see the list of all the files documented with the code.
[Documentation of Algorithms in C++](https://thealgorithms.github.io/C-Plus-Plus) by [The Algorithms Contributors](https://github.com/TheAlgorithms/C-Plus-Plus/graphs/contributors) is licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1)<br/>
<a href="https://creativecommons.org/licenses/by-sa/4.0"><img alt="Creative Commons License" style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" /><img alt="Credit must be given to the creator" style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg" /><img alt="Adaptations must be shared under the same terms" style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" /></a>
## Contributions
As a community developed and maintained repository, we welcome new un-plagiarized quality contributions. Please read our [Contribution Guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md).
没有合适的资源?快使用搜索试试~ 我知道了~
C++算法实现代码集.rar
共406个文件
cpp:342个
txt:23个
yml:11个
需积分: 5 0 下载量 186 浏览量
2023-07-28
17:03:10
上传
评论
收藏 720KB RAR 举报
温馨提示
闲来无事,翻阅起以前写的代码,无意间找到了大学时写的一套C++工具集,主要是关于数据结构和算法、以及语言层面的工具类。过去好几年了,现在几乎已经回忆不起当年写代码时的情况,不过,通过文件头部注释里的日期,还是依稀想起了那些日子发生的一些事情,不禁感慨了一番。感概之余,随便翻阅了一下,发现当年的编程手法和现在相比,略显稚嫩,风格也相差的比较大了,明显受到当时读的一些经典C++书籍的影响。不过好在代码质量都算可以,都属于基础的语言层面以及数据结构的代码,操作指针比较小心,每个类也都有测试的样例,感觉对初学者应该会有用,于是拿到这里放出来,希望能对准备学习和正在学习C++语言编程的朋友有所裨益。 基本上可以分为两大类,一种是关于数据结构和算法的(例如:RBtree,stack),另一种是关于C++语言本身层面的(例如:reference_count,Uncopyable)。这些类,可以在如今C++标准库或者其它C++库(如:boost)中找到类似的实现,实现它们的目的不是想自己造轮子,而是通过实现,来深入的理解到一些更本质的东西。很多时候,人们往往“知其然,不知其所以然”,
资源推荐
资源详情
资源评论
收起资源包目录
C++算法实现代码集.rar (406个子文件)
.clang-format 4KB
.clang-tidy 875B
CODEOWNERS 33B
tree_234.cpp 39KB
neural_network.cpp 33KB
a_star_search.cpp 26KB
kohonen_som_topology.cpp 21KB
hill_cipher.cpp 18KB
heavy_light_decomposition.cpp 18KB
strassen_matrix_multiplication.cpp 17KB
trie_multiple_search.cpp 17KB
kohonen_som_trace.cpp 16KB
binary_search_tree2.cpp 15KB
inorder_successor_of_bst.cpp 14KB
linear_recurrence_matrix.cpp 14KB
iterative_tree_traversals.cpp 14KB
ordinary_least_squares_regressor.cpp 14KB
recursive_tree_traversal.cpp 14KB
md5.cpp 14KB
memory_game.cpp 13KB
adaline_learning.cpp 13KB
persistent_seg_tree_lazy_prop.cpp 13KB
random_pivot_quick_sort.cpp 12KB
sublist_search.cpp 12KB
elliptic_curve_key_exchange.cpp 11KB
durand_kerner_roots.cpp 11KB
bidirectional_dijkstra.cpp 11KB
cycle_check_directed_graph.cpp 11KB
sha256.cpp 11KB
sha1.cpp 11KB
trie_using_hashmap.cpp 10KB
perimeter.cpp 10KB
hopcroft_karp.cpp 10KB
circular_linked_list.cpp 10KB
fcfs_scheduling.cpp 10KB
geometric_dist.cpp 9KB
area.cpp 9KB
complex_numbers.cpp 9KB
windowed_median.cpp 9KB
gram_schmidt.cpp 9KB
list_array.cpp 9KB
spirograph.cpp 9KB
count_inversions.cpp 9KB
quadratic_probing_hash_table.cpp 9KB
qr_eigen_values.cpp 9KB
double_hash_hash_table.cpp 8KB
boyer_moore.cpp 8KB
reverse_binary_tree.cpp 8KB
base64_encoding.cpp 8KB
rb_tree.cpp 8KB
bloom_filter.cpp 8KB
volume.cpp 8KB
lowest_common_ancestor.cpp 8KB
reverse_a_linked_list.cpp 8KB
union_of_two_arrays.cpp 8KB
boruvkas_minimum_spanning_tree.cpp 8KB
linear_probing_hash_table.cpp 8KB
composite_simpson_rule.cpp 8KB
treap.cpp 8KB
lru_cache.cpp 8KB
quick_sort.cpp 8KB
abbreviation.cpp 8KB
linked_list.cpp 7KB
midpoint_integral_method.cpp 7KB
morse_code.cpp 7KB
integral_approximation2.cpp 7KB
intersection_of_two_arrays.cpp 7KB
shell_sort2.cpp 7KB
dsu_path_compression.cpp 7KB
manacher_algorithm.cpp 7KB
k_nearest_neighbors.cpp 7KB
smallest_circle.cpp 7KB
ode_forward_euler.cpp 7KB
ode_semi_implicit_euler.cpp 7KB
segtree.cpp 7KB
breadth_first_search.cpp 7KB
ode_midpoint_euler.cpp 6KB
skip_list.cpp 6KB
depth_first_search_with_stack.cpp 6KB
word_break.cpp 6KB
quadratic_equations_complex_numbers.cpp 6KB
jarvis_algorithm.cpp 6KB
selectionsortlinkedlist.cpp 6KB
vigenere_cipher.cpp 6KB
karatsuba_algorithm_for_fast_multiplication.cpp 6KB
trie_tree.cpp 6KB
sparse_table.cpp 6KB
minimum_edit_distance.cpp 6KB
binary_search.cpp 6KB
miller_rabin.cpp 6KB
dsu_union_rank.cpp 6KB
dijkstra.cpp 6KB
sudoku_solver.cpp 6KB
quick_sort_3.cpp 6KB
brent_method_extrema.cpp 6KB
ground_to_ground_projectile_motion.cpp 6KB
trie_modern.cpp 6KB
integral_approximation.cpp 5KB
selection_sort_iterative.cpp 5KB
realtime_stats.cpp 5KB
共 406 条
- 1
- 2
- 3
- 4
- 5
资源评论
野生的大熊
- 粉丝: 230
- 资源: 247
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功