i am implementing dictionary in which key is a string keyword.suppose i have following keys in dictionary.
mat**hon** sat**hon** lat**hon**
now if i serach single keyword suppose mathon it will search it in constant time.but if i am to search hon i want all of three words to be retreived in constant time or minimum time possible like in case of google search.what should be my approach? and is dictionary right datastructure for purpose?
value of dictionary is list of items which i need to display to user and search can be multiple keyword based.