https://github.com/mingweisamuel/cs170-conquer
https://github.com/mingweisamuel/cs170-conquer
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mingweisamuel/cs170-conquer
- Owner: MingweiSamuel
- Created: 2018-04-11T22:32:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-17T06:35:51.000Z (about 8 years ago)
- Last Synced: 2025-01-27T10:43:30.135Z (over 1 year ago)
- Language: C
- Size: 8.91 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Conquer Group 119
## Usage
1. Use Python 3.6+
1. Clone GLNS into the GLNS folder (https://git.uwaterloo.ca/sl2smith/GLNS)
1. Optional: (Clone GLKH into the GLKH folder ... its a GTSP solver that doesn't work all that well)
1. Run `python solver_all.py [inputs]`
## How it works
This solver converts the conquer problem into a GTSP instance with
`2V + 2E + 1` vertices and `2E + 2` clusters. So it has some trouble
with dense graphs, but works very well given enough time.
## Code
Most of the code isn't used anymore. `solver.py` has a collection of ~27 greedy
algorithms that get run as backup, as well as special cases for complete graphs
and graphs that look like transformed TSP. The `*_utils.py` files have utils that
are still used. `gtsp.py` has utils for convert between conquer problems and
GTSP problems.