C++ Algorithm

Open-source C++ projects categorized as Algorithm

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
  • algorithms_and_data_structures

    180+ Algorithm & Data Structure Problems using C++

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • LeetCode-Solutions

    🏋️ Python / Modern C++ Solutions of All 2949 LeetCode Problems (Weekly Update)

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

    KTH Algorithm Competition Template Library (... eller KTHs AC-tillverkande lapp)

    Project mention: Popcount walks: next, previous, toward and nearest | news.ycombinator.com | 2023-11-14

    As a competitive programmer, I’ve seen similar ‘magic’ tricks here: https://github.com/kth-competitive-programming/kactl/blob/ma... (page 23)

  • Clipper2

    Polygon Clipping and Offsetting - C++, C# and Delphi

    Project mention: What are the scenarios where "Rewrite it in Rust" didn't meet your expectations or couldn't be successfully implemented? | /r/rust | 2023-06-09

    I tried to rewrite Clipper2 in Rust. There's a C#, a Delphi and a C++ implementation, so how hard can it be?

  • cpp-sort

    Sorting algorithms & related tools for C++14

  • algorithms

    Algorithms & Data Structures & Computer Science studies (by imteekay)

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • CppRobotics

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

  • tlx

    TLX - A Collection of Sophisticated C++ Data Structures, Algorithms, and Miscellaneous Helpers

    Project mention: A High Throughput B+tree for SIMD Architectures [pdf] | news.ycombinator.com | 2023-09-17

    I once needed that thing (with 32-bit integer keys, and either FP32 or FP64 values), but I didn’t want to spend too much time designing novel data structures.

    I have copy-pasted B+ tree from TLX https://github.com/tlx/tlx (Boost license), and then I did some local changes to improve the performance for my specific keys and value types. I have used AVX2 intrinsics to improve search within nodes, and I also implemented a few more simple tricks. After these changes, the performance became satisfactory for my application.

  • CavalierContours

    2D polyline library for offsetting, combining, etc.

  • CXXGraph

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

    Project mention: Hacktoberfest is ON CXXGraph | dev.to | 2023-10-09

    Actual Web Site

  • ANMS-Codes

    Efficient adaptive non-maximal suppression algorithms for homogeneous spatial keypoint distribution

  • dice

    Digital Image Correlation Engine (DICe): a stereo DIC application that runs on Mac, Windows, and Linux (by dicengine)

  • SwiftAA

    The most comprehensive collection of accurate astronomical algorithms in (C++, Objective-C and) Swift.

  • cppRouting

    Algorithms for Routing and Solving the Traffic Assignment Problem

    Project mention: Using R to Cluster Points by Road Networks | /r/Rlanguage | 2022-12-14

    cppRouting: I've just discovered this package. I use it if I require fast routing and can provide my own spatial graph data. So if I can't use OSM (maybe because of licence issues) this package will provide very fast results, too! I didn't compare the performance against the sfnetworks package, but I guess it's a lot faster and memory efficient especially for large networks. It also supports many implementations of different routing algorithms.

  • C-plus-plus-Algorithms

    Find C++ Algorithms and data structure problems all-in-one place.

    Project mention: First time open source contribution with hacktoberfest2023 | dev.to | 2023-10-26

    Solution for OJ problems : They needed solutions for problems of different online judges. As I did comitative programming for three years. It was my cup of tee. I jumped in and solved excellent problems and added solutions as they needed.

  • sparse-som

    Efficient Self-Organizing Map for Sparse Data

  • cpstl

    Copy and Paste standard library (CPSTL) is a repository with a collection of data structure and algorithms in many different languages

    Project mention: a better way to read from a socket with unusual end-of-stream tokens | /r/golang | 2022-12-04

    Thanks, I just tweak a little bit the code and make a package for it https://github.com/vincenzopalazzo/cpstl/blob/master/go/io/scan/scan.go

  • EUL

    The mathEmatics Useful Library (the name is a work in progress) is a math general purpose c++20 header library that, among other things, features a big integer implementation. (by ThePirate42)

  • Algorithms

    A collection of data structures and algorithms written in C++ with comments and links to further reading. (by ashleymays)

  • Game-of-Life

    Simulates Conway's Game of Life Algorithm (by suncloudsmoon)

  • KD-tree

    a specific data structure for efficiently representing our data. In particular, KD-trees helps organize and partition the data points based on specific conditions.💥🦄 (by Ahmed-Elgohary1)

  • cdiff

    diff string comparison implemented in C++

  • 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-11-14.

C++ Algorithm 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 26,704
2 algorithms_and_data_structures 5,586
3 LeetCode-Solutions 4,321
4 kactl 2,307
5 Clipper2 996
6 cpp-sort 576
7 algorithms 453
8 CppRobotics 384
9 tlx 367
10 CavalierContours 346
11 CXXGraph 325
12 ANMS-Codes 303
13 dice 292
14 SwiftAA 145
15 cppRouting 95
16 C-plus-plus-Algorithms 32
17 sparse-som 18
18 cpstl 14
19 EUL 6
20 Algorithms 3
21 Game-of-Life 2
22 KD-tree 0
23 cdiff 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives