Taught by DDM in SJTU.
Three homeworks till now. Hw1 for greedy approach, Hw2 for derandomized approach, Hw3 for heuristic algorithm.
Follow the commands below to start.
git clone git@github.com:merak0514/Math6010.git
python3 -m pip install -r requirements.txt
Given a complete graph
This is a NP-Complete problem. This homework is aiming at developing a heuristic algorithm.
python3 hw3/main.py
The following table shows comparison between heuristic algorithm and traversed algorithm:
Kn is a complete graph (a clique) with n nodes.
Theorem: There is a two-coloring of Kn with at most Cn4 * 2-5 monochromatic K4.
Write a program to find the solution, using the derandomization algorithm.
python3 hw2/main.py
There are three different solutions.
Visualization of the solution.
Write a program that finds the minimum dominating set of a graph using greedy approach.
python3 hw1/main.py