C++ 算法大全
Go to file
aadarshkt ee9835378f
docs: fix grammatical errors and typos (#2201)
* docs: fix grammatical errors and typos

* compilation error fixed

* Revert "compilation error fixed"

This reverts commit 0083cbfd1a.
2022-10-18 16:02:47 -05:00
.github docs: improve the bug report issue template (#2206) 2022-10-13 10:42:07 -05:00
.vscode feat: Created composite Simpson's numerical integration method (#1773) 2021-11-03 12:22:08 -06:00
backtracking fix: Sudoku Solver algorithm filename 2022-08-24 19:29:21 -05:00
bit_manipulation feat: add the bit_manipulation directory to CMake (#1991) 2022-09-10 19:43:55 -05:00
ciphers fix: CodeQL warnings (#1827) 2021-11-07 11:49:33 -06:00
cpu_scheduling_algorithms feat: Added implementation of FCFS CPU scheduling algorithm (#1684) 2021-10-15 11:34:00 -05:00
data_structures fix: ARM GCC compiler error (#1952) 2022-09-27 12:24:33 -05:00
divide_and_conquer fix: karatsuba's algorithm is not compiling (#2115) 2022-10-05 22:48:56 +05:30
doc Major rework to improve code quality and add automation checks (#805) 2020-06-19 21:34:56 +05:30
dynamic_programming docs: fix grammatical errors and typos (#2201) 2022-10-18 16:02:47 -05:00
geometry feat: Added Graham Scan Algorithm. (#1836) 2021-11-14 10:56:46 -06:00
graph feat: Created midpoint integration numerical method (#1785) 2021-11-01 07:56:40 -06:00
graphics Revert "updated free glut checksum (#976)" (#979) 2020-07-24 16:41:01 -04:00
greedy_algorithms feat: Add ncr mod p code (#1325) 2020-11-22 23:05:01 +05:30
hashing feat. Add SHA-1 hashing algorithm (#1609) 2021-09-24 14:59:26 -05:00
machine_learning [feat/fix]: A Star Search Improvement (#1566) 2021-08-27 12:50:40 -05:00
math feat: add modular_inverse_simple (#1937) 2022-06-09 10:27:12 -05:00
numerical_methods feat: move gram_schmidt to numerical_methods (#1940) 2022-06-09 10:09:03 -05:00
operations_on_datastructures fix: Circular linked list (#1825) 2021-11-02 11:03:49 -06:00
others feat: add Recursive tree traversal techniques (#1865) 2022-01-11 19:00:30 -06:00
probability feat: Modify search/text_search.cpp (#1662) 2021-10-14 13:34:55 -05:00
range_queries feat: Reworked/updated sorting/selection_sort.cpp. (#1613) 2021-10-25 13:17:33 -05:00
search feat: add new Median Search implementation (#1992) 2022-09-26 11:28:55 -05:00
sorting fix: quick_sort_3.cpp warning (#2070) 2022-10-04 10:06:15 -05:00
strings feat: add binary_insertion_sort (#1850) 2022-01-11 12:39:41 -06:00
.clang-format [bug fix] fix code formatting in CI (#1052) 2020-08-26 10:48:08 -04:00
.clang-tidy [code fix] Fixed trie_tree for code quality and docs & clang-tidy error check (#1059) 2020-08-27 12:30:14 -04:00
.gitignore Major rework to improve code quality and add automation checks (#805) 2020-06-19 21:34:56 +05:30
.gitpod.dockerfile install freeglut3-dev (#973) 2020-07-23 15:51:48 -04:00
.gitpod.yml fix: remove the ms-vscode.cpptools extension 2021-11-05 18:39:50 -06:00
CMakeLists.txt feat: add the bit_manipulation directory to CMake (#1991) 2022-09-10 19:43:55 -05:00
CODE_OF_CONDUCT.md fix: Update the CoC to match the .github repository (#1832) 2021-10-31 21:05:51 -06:00
CodingGuidelines.md [feat/fix]: Improve the contributing guidelines... (#1522) 2021-07-05 22:02:33 -05:00
CONTRIBUTING.md fix: broken link in the contributing guidelines (#2067) 2022-10-02 11:40:31 -05:00
DIRECTORY.md feat: add new Median Search implementation (#1992) 2022-09-26 11:28:55 -05:00
LICENSE chore: update copyright notices to 2022 2022-09-07 19:12:34 -05:00
README.md fix: Discord logo's color 2021-12-06 14:51:42 -06:00
REVIEWER_CODE.md feat: guidelines for reviewers (#1302) 2020-10-16 16:18:38 -04:00

The Algorithms - C++

Gitpod Ready-to-Code Language grade: C/C++ 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

  • The repository provides implementations of various algorithms in one of the most fundamental general purpose languages - C++.
  • Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
  • Each source code is atomic using STL classes 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 for every commit on the latest versions of three major operating systems viz., Windows, MacOS and Ubuntu (Linux) using MSVC 16 2019, AppleClang 11.0 and GNU 7.5.0 respectively.
  • Strict adherence to C++11 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 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.