Skip to main content

Table 1 Example for the matching statistics and the data for the CMS and the eCMS

From: Suffix sorting via matching statistics

i

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

R

T

G

A

T

G

G

C

A

C

A

G

A

T

A

C

T

#

S

G

A

T

G

G

C

A

C

A

T

T

G

A

T

G

G

$

\(p_i\)

2

3

4

5

6

7

8

9

12

13

1

2

3

4

5

6

-1

\(\ell _i\)

9

8

7

6

5

4

3

2

2

1

6

5

4

3

2

1

0

Head

\(\checkmark\)

       

\(\checkmark\)

 

\(\checkmark\)

      

\(q_i\)

2

3

4

5

6

7

8

9

3

4

1

2

3

4

5

11

17

i-head

\(\checkmark\)

       

\(\checkmark\)

 

\(\checkmark\)

    

\(\checkmark\)

\(\checkmark\)

  1. In the first two rows, we give \(\textit{MS}\) of S w.r.t. R, where \(\textit{MS}[i]=(p_i,\ell _i)\). In row 3, we mark the heads (for the CMS). In rows 4, we give the position \(q_i\), defined by ip(i), i.e. \(q_i=\textit{SA}_R[ip(i)]\), where ip(i) is the insert-point of suffix S[i..] in the suffix array of R. In row 5, we mark the insert-heads (for the eCMS)