This repository contains implementations of algorithms in C++.
- Greedy Algorithms
- Fractional Knapsack Problem
- Hufman Coding for lossless data compression
- Divide and Conquer
- Maximum Sum Subarray Problem
- Karatsu Algorithm for Matrix Multiplication
- Dynamic Programming
- Assembly Line Scheduling
- 0/1 Knapsack Problem
- Matrix Chain Multiplication
- Longest Common Subsequence
- Backtracking
- N-Queens Problem
- Subset Sum Problem
- M - Graph Coloring
- String Matching Algorithms
- Naive String Matching
- Rabin-Karp String Matching
- Knuth Morris Pratt String Matching (KMP)
- Graph Algorithms
- Bellman Ford Algorithm
- Edmond Karp Algorithm
- Randomized Algorithms
- Randomized Quick Sort
- Randomized Hiring Problem
- Geometric Algorithms
- Jarvis March
- Check if 2 lines segments intersect
- Clone the repository
- Compile the code using
g++ <filename>.cpp
- Run the executable using
./a.out