Skip to content

Commit 4cf920e

Browse files
committed
h:27: postion -> position h:260: beginnig -> beginning h:269: seperate -> separate
1 parent a0ce506 commit 4cf920e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/suffix_tree.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SuffixTree
2424
SuffixTree(string str):test_str(str), root(test_str), active_point(&root, 0, 0), remainder(0), pos(0), active_e(0), ls() {}
2525
int construct(void);
2626

27-
// return -1 if no such sub exist, return the beginning postion of this substring in thr original string if it exist
27+
// return -1 if no such sub exist, return the beginning position of this substring in thr original string if it exist
2828
int search(string sub);
2929

3030
// return the length of the longest prefix of sub which can be matched in suffix tree
@@ -257,7 +257,7 @@ class SuffixTree
257257
int remainder;
258258
// how many characters inserted?
259259
unsigned int pos;
260-
unsigned int active_e; // the beginnig position of suffixes need to be inserted
260+
unsigned int active_e; // the beginning position of suffixes need to be inserted
261261
char get_ele(int i) { return test_str[i]; }
262262
// insert a char from pos to suffix tree
263263
int insert();
@@ -266,7 +266,7 @@ class SuffixTree
266266
int print_node(Node* node, int level);
267267

268268

269-
Node* seperate_edge(Node * node, Edge* edge);
269+
Node* separate_edge(Node * node, Edge* edge);
270270

271271
// check if we can change active node
272272
bool check_active_node(void)

0 commit comments

Comments
 (0)