“…In many real-world applications, such as in bioinformatics [4,22,25,7] or in image processing [3,33,34,32], any cyclic shift (rotation) of P is a relevant pattern, and thus one is interested in computing the minimal distance of every length-m substring of T and any cyclic shift of P , if this distance is no more than k. This is the circular pattern matching with k mismatches (k-CPM) problem. A multitude of papers [17,8,6,5,9,24] have thus been devoted to solving the k-CPM problem but, to the best of our knowledge, only average-case upper bounds are known; i.e.…”