Skip to content

wilfonba/CSE6140-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSE6140-Project

Our project is written in Python. It takes as input the various graphs in DATA and can perform Branch and Bound (BnB.py), Approximation (Approx.py) and Local Search (LS1.py, LS2.py) algorithms. The code stores the solution and trace file in the output directory. The execuable can be run with the following command:

python3 main.py --inst --alg [BnB/Approx/LS1/LS2] --cutoff --seed

The filename can be any of the files in the DATA directory. Cutoff time is used to terminate the solution. Random seed is used for multiple runs (needed in local search algorithms).

QRTD and SQD plots can be generated by running binData.py and box plots can be generated by running boxData.py, with the plots stored in the figs folder. timeTrialDataAnalysis.py reads trace files to ouput a table for use in the comprehensive time analysis part of the report. utils.py provides a checking utility for ensure solutions are vertex covers.

Dependencies: networkx 2.8.8 numpy 1.23.3 matplotlib 3.6.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages