Given a rewriteable text T of length n on an alphabet of size σ, we propose an online algorithm that computes the sparse suffix array and the sparse longest common prefix array of T in \Oh\abs\Comlcp√lgn+mlgmlgnlg∗n time by using the text space and \Ohm additional working space, where m is the number of some positions \Pos on [1..n], provided online and arbitrarily, and \Comlcp=⋃p,p′∈\Pos,p≠p′[p..p+\lcp(T[p..],T[p′..])].