對於字串比對問題,一般的字串比對演算法工作在線性時間及線性空間完成。在那些演算法當中,兩個有名的演算法是Knuth-Morris-Pratt演算法及Boyer-Moore演算法。然而,近幾年發表的演算法可以工作在線性時間及僅需要少的額外的記憶體空間。若這類的演算法工作在線性時間及常數空間,我們稱那些演算法為常數空間字串比對演算法。 在這篇論文,我們執行一個回顧關於常數空間字串比對演算法。我們將介紹五個常數空間字串比對演算法﹕Constant-space matching for a specific pattern, MaxSuffix Matching 演算法, Two Way Matching 演算法, Crochemore-Perrin 演算法和 Galil-Seiferas 演算法。最後,我們也討論他們的結果。
General string matching algorithms for string matching problem work in linear time and linear space. The two well-known famous of them are Knuth-Morris-Pratt (KMP) algorithm and Boyer-Moore (BM) algorithm. However, some string matching algorithms presented in recent years work in linear time and just need a small additional memory space. If such algorithms can work in linear time and simultaneously constant space, we call those algorithms as constant space string matching algorithms. In this thesis, we perform a review about constant space string matching algorithms. We will introduce five constant space string matching algorithms: the Constant-space matching for a specific pattern, the MaxSuffix Matching algorithm, the Two Way Matching algorithm, Crochemore-Perrin algorithm and Galil-Seiferas algorithm. Finally, we also discuss the results about them.