I have to write a C/C++ Code for a dictionary implementation with the following features:
There are basically definitions (1 or more) for words.
1) Insertion
2) Searching (As fast as possible)
3) Auto Complete
4) Auto Correct
5) Spell Check
So I need to know HOW TO DO SO?
Which data structures should be the most efficient? Trie or hast table or something else
Which searching technique to use...?
How to implement auto-complete and spell Checking effectively..?
Certainly you need a database with a list of words, then you need to split your text up into words and see if they exist in the database.
For Autocomplete you can just check that the text entered so far matches words in the dictionary (with a LIKE txt+'%' clause), implemented with an AJAX call.