A Versatile Algorithm to Generate Various Combinatorial Structures - Pramod Ganapathi; Rama B (CoRR, 2010)