( 0 1), , , O (N) , N - , ( , ). ( , , ) O(1) . , , .
, 1, - . , ( ), node , . , node node. , -, node, .
, , , O(N'), N' - , . , node .
, . 1, node ( ); count , node O(1). , ( ) , .
, , :
Count list word lists (each node points back to the count node)
17 a <--> the <--> for
^
|
v
12 Wilbur <--> drawing
^
|
v
11 feature
, a Wilbur. 13; , 12 13, 13 count node . Wilbur , , node, count Wilbur, node.
, drawing , 11. , 12 11, node ; drawing 11, -, . , , 12, , 12 count node .
0, 0 count node, , node. , 1 count node, node, .
, . , - , , .
---
, . . , . , , / .
, , - . , . , , .
- . ( -, , -.) k , k ; , .