jesgadiaz / vertex-k-center

Implementation of the main approximation algorithms and heuristics for the vertex k-center selection problem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A better and faster implementation

You can find a better and faster implementation in C in the next repository:

https://github.com/jesgadiaz/k-center-in-C

The running time of the implementation in C is up to 100 times faster.

This implementation (vertex-k-center)

Implementation of the main approximation algorithms and heuristics for the vertex k-center selection problem.

The kcp python file must be runned from its path, and with the Lib folder at this same path.

The kcp python file is runned with the command:

  • python kcp.py algorithm library seed repetitions outputfile

being: - algorithm = CDS_h, CDS_app, CDS+_h, CDS+_app, CDS_n4, Gon, Gon+, Gr, Gr+, HS, Scr - library = ORLib, smallTSPLib, u1060, u1817, pcb3038 (the pcb3038 instance is not present in the Lib folder because GitHub can't support so heavy files) - seed = any number - repetitions = every instance can be repeated more than 1 time - outputfile = path and name for the outputfile with the experimental approximation factor obtained by the algorithm over the selected instances

About

Implementation of the main approximation algorithms and heuristics for the vertex k-center selection problem.

License:Apache License 2.0


Languages

Language:Python 100.0%