After constructing \(\mathcal{A}\), it is straightforward to identify duplicated training examples. Suppose that the sequence \(s\) was repeated exactly twice in the training dataset \(\mathcal{S}\) at positions \(i\) and \(j\), that is, \(\mathcal{S}_{i.i+|s|}=\mathcal{S}_{j.j+|s|}\). Then the indices \(i,j\) will occur adjacent to each other in the suffix array \(\mathcal{A}\).