The \emph{longest common extension} (\emph{LCE}) problem is to preprocess a given string of length so that the length of the longest common prefix between suffixes of that start at any two given positions is answered quickly. In this paper, we present a data structure of $O(z \tau^2 + \frac{n}{\tau})O(1)$ time and can be built in time, where is a parameter, is the size of the Lempel-Ziv 77 factorization of and is the alphabet size. This is an \emph{encoding} data structure, i.e., it does not access the input string when answering queries and thus can be deleted after preprocessing. On top of this main result, we obtain further results using (variants of) our LCE data structure, which include the following:

生成讲解博客的中文版本

生成AI智能校验的中文版本