If you're using a genetic algorithm, say, to solve a travelling salesman problem, you need to be able to enumerate the permutations of a list of destinations, representing each as a unique string. These strings are the "chromosomes" which undergo reproduction and selection, the goal being to find the trajectory that minimizes the overall distance travelled in visiting all the destinations.