?? boyermoore.h
字號(hào):
// BoyerMoore.h: interface for the BoyerMoore class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(_BOYERMOORE_H__)
#define _BOYERMOORE_H__
//The Boyer-Moore algorithm is considered as the most efficient
//string-matching algorithm in usual applications. A simplified
//version of it or the entire algorithm is often implemented in
//text editors for the <search> and <substitute> commands.
#include "MatchingString.h"
class BoyerMoore : public MatchingString
{
public:
BoyerMoore();
virtual ~BoyerMoore();
static void test();
void search();//char *x, int m, char *y, int n
private:
void preBmBc(char *x, int m, int bmBc[]);
void suffixes(char *x, int m, int *suff);
void preBmGs(char *x, int m, int bmGs[]);
};
#endif // !defined(_BOYERMOORE_H__)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -