=========================
== Balanced Gray Codes ==
=========================

Comment: This implementation is based on a proof constructed by Mary Flahive in her paper titled "Balancing cyclic R=ary Gray codes II" (2008)

== Compilation ==

 [1] Build the Preprocessor:

	> cd Preprocessor; make clean; make

 [2] Use the preprocessor to generate a C header file with the required meta data. The argument provided provides the maximum size of the Gray codes that can be generated
	
	> make generate MAX_GRAY_CODE_LENGTH=64
 
 [3] Build Gray:
	
	> cd ../; make clean; make
 
 [4] Execute:
	
	> ./gray --n=7 --direction=FWD

== Testing ==

 There are a number of tests included in the application. To execute them, run:
	
	> make test LEN_GRAY_CODES=20

