Created
February 1, 2015 21:52
-
-
Save paratechnical/54e2971d02df1364f089 to your computer and use it in GitHub Desktop.
Gist 1 from article Autocomplete functionality using prefix trees
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<string> subsequentStrings; | |
/// <summary> | |
/// Create a prefix tree - the root node should always store ' ' | |
/// Initializae the list that will store the strings | |
/// found during the autocomplete process | |
/// </summary> | |
public Tree() | |
{ | |
_root = new Node(' '); | |
subsequentStrings = new List<string>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment