“…The goal is to obtain a compact data structure while supporting fast queries in terms of the length of the pattern P and the number of reported occurrences k. For an example, see Figure 1. 4,7,11,22,24,26,30,39 and 41 in S. The top 5 close consecutive occurrences are (22,24), (24,26), (39, 41), (4,7), and (7,11), with the tie between (7,11) and (26,30) broken arbitrarily.…”