Improved lower bound for maximum common subgraph algorithms.
- C++ compiler
- Make (optional)
Use the following command to build this program in Linux operating system.
$ mkdir bin
$ make buildUse the following command to build this program in macOS.
$ mkdir bin
$ make macbuild$ make testExpected output.
$ make test
./bin/run.o min_max ./data/tests/case1/pattern ./data/tests/case1/target -l -q -t 100
6, 1, 1.9416e-05, 3.2708e-05, 51, 6, 24, 6, 6, 1.4875e-05, 13, 17, 0, 1, 0
./bin/run.o min_max ./data/tests/case2/pattern ./data/tests/case2/target -l -q -t 100
9, 1, 9.7083e-05, 0.000100083, 353, 334, 203, 7, 7, 2.925e-05, 29, 42, 0, 0, 0The output provides comma-separated values for the following attributes:
- The size of the maximum induced common subgraph.
- Indicates whether the common subgraphs are isomorphic (1 for yes, 0 for no).
- Time taken (in seconds) to find the optimal solution.
- Time taken (in seconds) to verify the optimality by completing the search.
- Total number of recursive calls (branches) made to complete the search.
- Number of recursive calls (branches) required to find the optimal solution.
- Number of recursive calls (branches) that were pruned.
- Incumbent size after the first heuristic iteration.
- Incumbent size after the second heuristic iteration.
- Time taken (in seconds) to run the proposed heuristic.
- Number of branches taken during the first heuristic.
- Number of branches taken during the second heuristic.
- Indicates whether the first heuristic terminated early due to a pruning condition.
- Indicates whether the second heuristic terminated early due to a pruning condition.
- Indicates whether the search was terminated prematurely (1) or completed fully (0).
Follow the steps in this doc.