 A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here]. The results were sharp for <math>n \leq 0</math> but were slightly inferior to the constructions above for larger n. A greedy algorithm [http://thetangentspace.com/wiki/Hales-Jewett_Theorem was implemented here]. The results were sharp for <math>n \leq 0</math> but were slightly inferior to the constructions above for larger n. 