C++ Algorithms

Open-source C++ projects categorized as Algorithms

Top 23 C++ Algorithm Projects

  • C-Plus-Plus

    Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

    Project mention: Cool Github repositories for Everyone | dev.to | 2022-12-29
  • LeetCode

    This repository contains the solutions and explanations to the algorithm problems on LeetCode. Only medium or above are included. All are written in C++/Python and implemented by myself. The problems attempted multiple times are labelled with hyperlinks.

    Project mention: How to do LC hard questions ? | /r/leetcode | 2022-07-05

    good difficulty estimate of lc questions start with H- from this list, then do H. I started with H-, I could see some good improvements. The transition from H- to H was a bit overwhelming though.

  • Sonar

    Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • cp-algorithms

    Algorithm and data structure articles for https://cp-algorithms.com (based on http://e-maxx.ru)

    Project mention: Data Engineer @ Hedge Fund looking to go into Quant | /r/quantfinance | 2023-04-20

    For interviews, if you can do competitive programming well that would def make you super competitive so check out codeforces and assorted sites and compete. There’s also a competitive programming handbook on the internet and this: https://cp-algorithms.com to help

  • Thrust

    The C++ parallel algorithms library.

    Project mention: Parallel Computations in C++: Where Do I Begin? | /r/learnprogramming | 2022-09-23

    For a higher level GPU interface, Thrust provides "standard library"-like functions that run in parallel on the GPU (Nvidia only)

  • CGal

    The public CGAL repository, see the README below

    Project mention: The Orb: a parametric trackball with BTU mounted ball and keyboard switches for buttons | /r/ErgoMechKeyboards | 2022-10-09

    But I doubt any of this will ever run on the GPU... Multi-threading on the other hand, is already implemented and it works on the Gamma side, but I had to switch it off by default because CGAL doesn't seem to be there yet (see here for more). It does mostly work though, at least for the polyhedral operation which is what matters, although it may not be the great speed-up you expect it to be.

  • NumCpp

    C++ implementation of the Python Numpy library

  • RxCpp

    Reactive Extensions for C++

    Project mention: Why doesn't C++ use higher-order functions on iterators like Rust does? | /r/cpp | 2023-05-19

    And, prior to that https://github.com/ReactiveX/RxCpp

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • EPIJudge

    EPI Judge - Preview Release

  • FunctionalPlus

    Functional Programming Library for C++. Write concise and readable C++ code.

    Project mention: C++ algorithm helpers - kdalgorithms | /r/cpp | 2022-12-10

    You can get a feel for it on its api search site: as an example, enter these queries:

  • etl

    Embedded Template Library

    Project mention: As an embedded programmer which parts of C++ should I focus? | /r/embedded | 2023-06-03

    Use ETL for embedded standard library functionality: https://www.etlcpp.com/

  • DataStructures-Algorithms

    This repo contains links of resources, theory subjects content and DSA questions & their solution for interview preparation from different websites like geeksforgeeks, leetcode, etc.

  • control-flag

    A system to flag anomalous source code expressions by learning typical expressions from training data

  • Coding

    Data Structures and Algorithms (DSA) Preparation sheet

    Project mention: Just started reading this book "Groking the coding interview" found this paragraph worth sharing | /r/developersIndia | 2023-05-18
  • Algorithms

    Collection of algorithms in multiple programming languages. (by thuva4)

    Project mention: A site that hosts implementations of various programming algorithms in different languages | /r/programming | 2023-02-07
  • CppRobotics

    Header-only C++ library for robotics, control, and path planning algorithms. Work in progress, contributions are welcome!

  • SIMDCompressionAndIntersection

    A C++ library to compress and intersect sorted lists of integers using SIMD instructions

  • Data-Structures-and-Algorithms-in-cpp

    This repository is in development phase and will soon provide you with c++ code of various data structures and algorithms

  • Daily-Coding-DS-ALGO-Practice

    A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐

  • Data-Structures-and-Algorithms

    Data Structures and Algorithms implemented In Python, C, C++, Java or any other languages. Aimed to help strengthen the concepts of DSA. Give a Star 🌟 if it helps you.

  • CXXGraph

    Header-Only C++ Library for Graph Representation and Algorithms

    Project mention: Revolutionizing Data Processing with CXXGraph: A Comprehensive Guide to Graph Data Structures in C++ | dev.to | 2023-03-28

    CXXGraph is a C++ library for graph data structures that provides an easy-to-use interface for creating and processing direct and nondirect graphs. CXXGraph provides a simplified interface for creating and manipulating graphs. Using CXXGraph, developers can create graphs, add and remove edges, and perform various graph processing algorithms.

  • LeetCode-Solutions

    A compilation of all the Leetcode solutions. (by SHY-Corp)

    Project mention: Missing Search Bar | /r/leetcode | 2023-05-30

    there is a search bar under the problems tab

  • DSA-cpp

    C++ fundamentals and questions for beginners and intermediates. Welcoming developers, content writers, and programming enthusiasts.

  • parlaylib

    A Toolkit for Programming Parallel Algorithms on Shared-Memory Multicore Machines

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-06-03.

C++ Algorithms related posts


What are some of the best open-source Algorithm projects in C++? This list will help you:

Project Stars
1 C-Plus-Plus 24,547
2 LeetCode 4,725
3 cp-algorithms 4,713
4 Thrust 4,565
5 CGal 3,932
6 NumCpp 2,935
7 RxCpp 2,833
8 EPIJudge 2,618
9 FunctionalPlus 1,828
10 etl 1,612
11 DataStructures-Algorithms 1,431
12 control-flag 1,226
13 Coding 1,034
14 Algorithms 462
15 CppRobotics 371
16 SIMDCompressionAndIntersection 367
17 Data-Structures-and-Algorithms-in-cpp 331
18 Daily-Coding-DS-ALGO-Practice 304
19 Data-Structures-and-Algorithms 247
20 CXXGraph 244
21 LeetCode-Solutions 235
22 DSA-cpp 220
23 parlaylib 190
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives