J4

• 计算机科学 • Previous Articles     Next Articles

Compute All Maximal(NE/SNE) Repeats in a Stringwith Horizontaldivision Method

YUAN Zhe1, ZHAO Yongzhe1, ZHANG Wenrui2, ZHU Xiangbin1, ZHAO Dongwei1   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;2. Jilin Filiale of Jilin Mobile Communication Co., Ltd, Jilin 132001, Jilin Province, China
  • Received:2008-02-25 Revised:1900-01-01 Online:2008-09-26 Published:2008-09-26
  • Contact: ZHAO Yongzhe

Abstract: We proposed a new methodhorizontaldivision method by which we can compute all the Maximal Repeats of string x using only suffix array SAx and LCP array LCPx. We analyzed the situatio ns and locations where the Maximal NERepeats and SNERepeats of xcan be. Then we designed three algorithms by which all Maximal Repeats, Maximal NERepeats, and Maximal SNERepeats in a string x[1…n] can be computed onlyby means of SAx and LCPx. The given algorithms overcome the defects of the corresponding algorithms which require other assistant arrays in addition to suffix array and LCP array. So our algorithms reduce the space requirement greatly. Moreover, the time complexity of these algorithms is not increased. In addition, we can get all the Ma ximal Repeats, Maximal NE Repeats and Maximal SNE Repeats of a string by only scanningLCP array once.

Key words: repeats, suffix array, horizontadivision method

CLC Number: 

  • TP301