Description: Tricolor problem was first raised by the EWDijkstra, the term he uses for the Dutch Nation Flag (Dijkstra is Dutch), but most people will use the Three-Color Flag to call it.
Suppose there is a rope above a blue, white and red colors of the flag, the color of the rope on the flag initially did not order, you want to classification and arrangement of blue, white and red of the order, how times before moving will be minimal, note that you can only perform this action on a rope, and one can only swap two flag.
To Search:
File list (Check if you may need any files):
flags.doc