Added searching based on first letter. In train(), I choose the key for the dictionary by the first letter of the word, since the algorithm takes into account that it is less likely for someone to mistype the first letter. And then the value to each letter is the collections that were used before. Iteration is now by letter and not O(n), if n is the dictionary
Merge branch 'master' of https://github.com/jacks205/Spell-Check
Added searching based on first letter. In train(), I choose the key for the dictionary by the first letter of the word, since the algorithm takes into account that it is less likely for someone to mistype the first letter. And then the value to each letter is the collections that were used before. Iteration is now by letter and not O(n), if n is the dictionary
Added searching based on first letter. In train(), I choose the key for the dictionary by the first letter of the word, since the algorithm takes into account that it is less likely for someone to mistype the first letter. And then the value to each letter is the collections that were used before. Iteration is now by letter and not O(n), if n is the dictionary