, .
patricia trie , . patricia trie , char , , , , node . , ($, a, e, h, i, n, r, s, t, w). .
, ?
"hen", , "h" . "h" "h" , "h" . "h" , "hen" "he" "h" , "h" , "n", "n", .
Trie:
βββ (black)
βββ (white) as
βββ (white) e
β βββ (white) eir
β βββ (white) en
β βββ (white) ere
βββ (white) he
β βββ (white) heir
β βββ (white) hen
β βββ (white) here
βββ (white) ir
βββ (white) n
βββ (white) r
β βββ (white) re
βββ (white) s
βββ (white) the
β βββ (white) their
β βββ (white) there
βββ (black) w
βββ (white) was
βββ (white) when
:
String = the$their$there$was$when$
End of word character = $
βββ (0)
βββ (22) $
βββ (25) as$
βββ (9) e
β βββ (10) ir$
β βββ (32) n$
β βββ (17) re$
βββ (7) he
β βββ (2) $
β βββ (8) ir$
β βββ (31) n$
β βββ (16) re$
βββ (11) ir$
βββ (33) n$
βββ (18) r
β βββ (12) $
β βββ (19) e$
βββ (26) s$
βββ (5) the
β βββ (1) $
β βββ (6) ir$
β βββ (15) re$
βββ (29) w
βββ (24) as$
βββ (30) hen$