Skip to content

This repository aims to provide a comprehensive collection of commonly used algorithms implemented in Python, C++, and Rust.

License

Notifications You must be signed in to change notification settings

CuriousGu/algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Algorithms Repository

This repository aims to provide a comprehensive collection of commonly used algorithms implemented in Python, C++, and Rust. Whether you're a beginner looking to learn about algorithms or an experienced developer seeking reference implementations, this repository serves as a valuable resource.

Contents

The repository includes implementations of various algorithms, including but not limited to:

  • Sorting algorithms (e.g., Bubble Sort, Merge Sort, Quick Sort)
  • Searching algorithms (e.g., Linear Search, Binary Search)
  • Graph algorithms (e.g., Breadth-First Search, Depth-First Search)
  • Dynamic programming algorithms (e.g., Fibonacci Sequence, Knapsack Problem)
  • And many more...

Each algorithm is implemented in three different programming languages:

  • Python: Known for its simplicity and readability, Python implementations offer clarity and ease of understanding.
  • C++: Renowned for its efficiency and performance, C++ implementations are ideal for high-performance computing.
  • Rust: Recognized for its safety and concurrency features, Rust implementations combine performance with memory safety.

Structure

The repository is organized into directories based on algorithm categories. Within each category, you'll find subdirectories for each algorithm. Each algorithm directory contains implementations in Python, C++, and Rust, along with relevant documentation and test cases.

common-algorithms/
│
├── sorting/
│   ├── bubble_sort/
│   ├── merge_sort/
│   ├── quick_sort/
│   └── ...
│
├── searching/
│   ├── linear_search/
│   ├── binary_search/
│   └── ...
│
├── graph/
│   ├── bfs/
│   ├── dfs/
│   └── ...
│
└── ...

Contributing

Contributions to this repository are welcome! If you have an algorithm you'd like to add or you've found a bug in an existing implementation, feel free to open a pull request. Please ensure that your contributions adhere to the following guidelines:

  • Follow the existing directory structure and naming conventions.
  • Provide clear documentation and comments within your code.
  • Include test cases to validate the correctness of your implementation.

License

This repository is licensed under the MIT License, allowing for both personal and commercial use with attribution.

About

This repository aims to provide a comprehensive collection of commonly used algorithms implemented in Python, C++, and Rust.

Resources

License

Stars

Watchers

Forks