Skip to content

A repository of the various popular algorithms I have coded in C and C++

License

Notifications You must be signed in to change notification settings

MashuAjmera/Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms

A repository of the various popular algorithms I have coded in C++ and Python.

There is meta information like problem description and tutorial at the top of each program file. Some additional algorithms are present at my data structures repository.

Note: Those without links will be uploaded soon.

Sorting

Searching Techniques

Array

Divide and Conquer

  • Strassens Matrix Multiplication

Greedy

Optimization problem by making locally best decisions.

Dynamic Programming

Optimization problem by checking all possible solutions- brute force technique.

Backtracking

Using DFS to generate various feasible solutions by brute force technique.

Branch and Bound

Using BFS to generate various feasible solutions by brute force technique.

  • Job Sequencing with Deadline
  • 0/1 Knapsack
  • Travelling Salesman Problem

Graph Algorithms

  • Articulation Point and Biconnected Components
  • Cycle in Undirected Graph
  • Cycle in Directed Graph
  • Kosarajus Algorithm
  • Disjoint Sets
  • Topological Sort

Tree

  • Lowest Common Ancestor
  • Fenwick Tree

Pattern Matching

  • Z Algorithm Z Values
  • Manacher's Algorithm

Genetic Algorithm

Bit Manipulation

Miscellaneous

  • Range Minimum Query using Segment tree
  • Range Minimum Query using Sparse Table
  • Convex Hull

About

A repository of the various popular algorithms I have coded in C and C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published