Which datatype and methods should I use?
I am trying to write a kind of simple search engine. I have a determined number of main subjects that are associated with specific keywords. The aim is to recognize the main subject from an input partial keyword. I am thinking of using a : Dictionary<string, List<string>> . I'll have to search in this dictionary and find, e.g., all keywords beginning with a 3 characters string and their main subject which is associated. Is my solution the best one ? And how can I efficiently look through those data without having to check manually every List , string by string . Let my know if I'am not clear.