An open API service indexing awesome lists of open source software.

https://github.com/ofmiq/algorithmsanddatastructures

A collection of fundamental algorithms and data structures implemented in C++
https://github.com/ofmiq/algorithmsanddatastructures

algorithms c-plus-plus data-structures

Last synced: 5 months ago
JSON representation

A collection of fundamental algorithms and data structures implemented in C++

Awesome Lists containing this project

README

          

# Algorithms and Data Structures Repository

This repository contains implementations of various algorithms and data structures in C++. The code is organized into separate files and directories, categorized accordingly.

## Repository Structure

### Algorithms

Includes implementations of popular algorithms grouped into categories:

- `BST/` – Algorithms related to Binary Search Trees.

- `ComputationalGeometry/` – Computational geometry algorithms.

- `DynamicProgramming/` – Dynamic programming techniques.

- `GraphTheory/` – Graph algorithms.

- `NumberTheory/` – Algorithms related to number theory and mathematical computations.

- `RangeQuery/` – Range query structures.

- `Sorting/` – Sorting algorithms.

### DataStructures

Contains implementations of various data structures:

- `AVL.cpp` – Self-balancing AVL tree.

- `BST.cpp` – Basic Binary Search Tree.

- `DisjointSet.cpp` – Disjoint Set (Union-Find).

- `List.cpp` – Linked list implementation.

- `Queue.cpp` – Queue implementation.

- `SplayTree.cpp` – Splay tree.

- `Stack.cpp` – Stack implementation.

## How to Use

1. Clone the repository:

```bash
git clone https://github.com/ofmiq/AlgorithmsAndDataStructures.git
cd AlgorithmsAndDataStructures
```
2. Compile the desired file:
```bash
g++ -o bst BST.cpp
./bst
```

3. Run and test the code.

## Notes

All algorithms and data structures are implemented in pure C++ without external dependencies.

## License

This project is released under [The Unlicense](https://github.com/ofmiq/AlgorithmsAndDataStructures/blob/main/LICENSE), making it completely free for any use.