Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

#include #include #include void S(const unsigned int k){ if(k == 0) ifm::forward(); else { ifm::left(36); S(k-1); ifm::forward(); S(k-1); } } int main() { //Input unsigned int n = 2; std:: cout << "------------------------------------------------------------\n" << "Warning: A (biological) Virus will be generated, please be afraid!\n"; // std:: cin >> n; int d=9; assert(n == 1 || n == 2); S(d); return 0;}