Description of the generated objects

The files insides this directory are used to generate three combinatorials objects, namely :

  1. forest with isolated vertices noted forest
  2. forest without isolated vertices noted forest0
  3. tree noted tree

The goal of thoses scripts is to generate instances (in SICStus prolog format) for three combinatorial objects where one of their characteristics are optimal acccording to their values. As examples of characteristics, we have the greatest depth of a node noted maxp, the number of leaves noted f or the number of nodes noted v and etc…

The main method used to generate those objects is a dedicated algorithm of Donald E. Knuth stated Algorithm O (Oriented forest) of his book titled Art of Computer Programming, Volume 4, Fascicle 4, Generating All Trees, History of Combinatorial Generation

Command lines to generate the objects

Dependencies

The programs python3 should be installed.

Preparation for running the files to generate the combinatorials objects.

Running the program to generate the combinatorial objects

To generate the combinatorial object forest, forest0, or tree, you just need to respectively run in the Terminal the scripts below:

python3 gen_forest.py maximum_size_of_the_combinatorial_object

python3 gen_forest0.py maximum_size_of_the_combinatorial_object

python3 gen_tree.py maximum_size_of_the_combinatorial_object

Results of running the scripts above

After running the scripts above, the generated objects which have extremal values of their caracteristics and no more than maximum_size_of_the_combinatorial_object vertices are stored in the directory named data_object where object is respectively forest, forest0, or tree.