用法 nuget install TrieNet using Gma . DataStructures . StringSearch ; ... var trie = new UkkonenTrie < int>( 3 ); // var trie = new SuffixTrie(3); trie . Add ( " hello " , 1 ); trie . Add ( " world " , 2 ); trie . Add ( " hell " , 3 ); var result = trie . Retrieve ( " hel " ); 更新 添加了Ukkonen