My purpose of writing this code was generating Balanced Incomplete Block Designs (BIBD)s for given parameters (v, k, λ) using Donald Knuth's Algorithm X. Current version of code is only working for λ == 1 and shall be improved to generate designs for λ>1 aswell. Still, making this code work on c++ was an accomplishment for me.
Assuming that you have a g++ compiler ready (with paths) on your operating system.
- Open terminal/cmd
- Cd in to the src file.
- After changing parameters v,k in main(), you can just simply g++ main.cpp Combinations.cpp IncidenceMatrix.cpp -std=c++17
- To see results, simply type ./a.out