Introduction to Backtracking : http://en.wikipedia.org/wiki/Backtracking
Implementation [1]:
Simple Exercise : Use the above template to count the number of permutations of 1, 2, 3... n (n > 5) in which 4 and 5 are not neighbours.
[1] - http://www.cs.sunysb.edu/~skiena/392/programs/
Implementation [1]:
Simple Exercise : Use the above template to count the number of permutations of 1, 2, 3... n (n > 5) in which 4 and 5 are not neighbours.
[1] - http://www.cs.sunysb.edu/~skiena/392/programs/
No comments:
Post a Comment