The files insides this directory are used to generate three combinatorials objects, namely :
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
The programs
python3
should be installed.
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
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.