Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/francoisschwarzentruber/reductioncatalog

Catalog of reductions between different decision problems (SAT, 3SAT, Graph coloring, etc.)
https://github.com/francoisschwarzentruber/reductioncatalog

complexity-theory reduction theoretical-computer-science

Last synced: 2 months ago
JSON representation

Catalog of reductions between different decision problems (SAT, 3SAT, Graph coloring, etc.)

Awesome Lists containing this project

README

        

# reductioncatalog

Redutioncatalog is a catalog of reductions between many decision problems (SAT, 3SAT, CLIQUE, etc.). The graphical interface is in the spirit of dictionnary.

# How to add a new problem to the catalog?

A problem is a PROBLEM.js file, where PROBLEM is the name of the problem. This file contains:
- a function PROBLEM_getInstance() that returns a string that represents a typical instance of PROBLEM.
- a function PROBLEM_drawInstance(elementDescription, instanceCode) that fills the div container whose description is elementDescription (for instance #myDiv) with a graphical representation of the instance.
- Then the file contains functions of the form PROBLEM_to_XXX(instance) where XXX could be any other problem. This function implements a reduction from PROBLEM to XXX.