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++
- Host: GitHub
- URL: https://github.com/ofmiq/algorithmsanddatastructures
- Owner: ofmiq
- License: unlicense
- Created: 2024-07-14T11:29:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T20:29:15.000Z (about 1 year ago)
- Last Synced: 2025-02-21T04:15:34.036Z (about 1 year ago)
- Topics: algorithms, c-plus-plus, data-structures
- Language: C++
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.