The reason why the dictionary is a lot more efficient is that it uses a HashMap under the hood. With a HashMap the data is indexed and can therefore in the best case be looked up directly. An alternative to using a dictionary would be to implement a more advanced search algorithm yourself. You could for example order your word list alphabetically and then use an algorithm like binary search to find the word a lot faster.
@TheBuffED Жыл бұрын
Definitely, I want to go down the path of getting my own implemented at some point for fun just because I haven't really done any of that since my data structures class like 8 years ago
@GrantParkerstudio Жыл бұрын
Nice man, Love the detail in getting a spell check setup.
@TheBuffED Жыл бұрын
Thanks man! If I release a video on Outer Wilds though just make sure you skip that one