摘要
In the Binary Paint Shop Problem proposed by Epping et聽al. (2004) one has to find a -coloring of the letters of a word in which every letter from some alphabet appears twice, such that the two occurrences of each letter are colored differently and the total number of color changes is minimized. Meunier and Seb艖 (2009) and Amini et聽al. (2010) gave sufficient conditions for the optimality of a natural greedy algorithm for this problem. Our result is a best possible generalization of their results. We prove that the greedy algorithm optimally colors every suitable subword of a given instance word if and only if contains none of the three words , , and as a subword. Furthermore, we relate this to the fact that every member of a family of hypergraphs associated with is evenly laminar.