Skip to content

bjorn-martinsson/NP-hardness-of-Max-2Lin-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains the (Python3) scripts used to construct and verify the gadgets used in the paper:

On the NP-hardness approximation curve for 2 Max-2Lin(2)

list_of_gadgets.py.

Contains a list of all gadgets used in the paper.

analyse_gadget.py

The verification script (that computes soundness + completeness). For perfomance reasons, it is recommended to use PyPy3 when running this script.

generate_new_gadgets.py

Script for generating a gadget with a fixed completeness using an LP solver. Pick between Gurobi (fast but uses floating point numbers) or qsopt_ex (slower but computes optimum exactly). Running this script requires installing;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages