What's the fastest way to search a very long list of words for a match in actionscript 3?
Posted
by Nuthman
on Stack Overflow
See other posts from Stack Overflow
or by Nuthman
Published on 2010-05-16T07:29:14Z
Indexed on
2010/05/16
7:30 UTC
Read the original article
Hit count: 170
So I have a list of words (the entire English dictionary).
For a word matching game, when a player moves a piece I need to check the entire dictionary to see if the the word that the player made exists in the dictionary. I need to do this as quickly as possible. simply iterating through the dictionary is way too slow.
What is the quickest algorithm in AS3 to search a long list like this for a match, and what datatype should I use? (ie array, object, Dictionary etc)
© Stack Overflow or respective owner