This repository contains a collection of algorithms that were discussed in the course CSI3105: Design & Analysis of algorithm I during Fall 2023. They are implemented using mainly C++. For personal archive only
For every algorithm, there is a piece of code for testing. I've comment-out all of them since it's designed to be mutually exclusive. Pick one you want and un-comment it, then compile and run main.cpp
- Stable Matching - Gale shapley algorithm
- Graph - breadth-first-search (BFS) and depth-first-search (DFS), test bipartiteness
- Directed Graph - test connectivity and find topological order of graph
- Greedy strategy - Interval scheduling, Interval partitioning and Shortest-path-problem
- More on Greedy strategy - Minimum spanning tree (MST) problem: two ways (Prim's and Kruskal)
- Divide-and-Conquer strategy - Mergesort, Counting Inversions, Integer multiplication and matrix multiplication