944,138 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4448
  • C++ RSS
Aug 22nd, 2007
0

T9 Predictive input and dictionary

Expand Post »
Hi Guys

1)I am planning to write a simple implementation of T9 , as seen in nokia phones.
Could someone suggest an efficient way to go about this ??


2)I am also planning to write the code for a english dictionary. What is the most efficient way to store and retrieve the data ??


Thanks in advance
Subramanyam
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
orkut123 is offline Offline
1 posts
since Aug 2007
Aug 22nd, 2007
0

Re: T9 Predictive input and dictionary

> am planning to write a simple implementation of T9 , as seen in nokia phones.
Could someone suggest an efficient way to go about this ??
http://en.wikipedia.org/wiki/Trie
http://www.csse.monash.edu.au/~lloyd...Tree/PATRICIA/
Reputation Points: 1159
Solved Threads: 285
Posting Virtuoso
vijayan121 is offline Offline
1,606 posts
since Dec 2006
Aug 22nd, 2007
0

Re: T9 Predictive input and dictionary

> 1)I am planning to write a simple implementation of T9 , as seen in nokia phones.

Perhaps not the most efficient way but I guess you could do something like.

1. Go through every word in the english dictionary and convert it to it's numeric equivalent.

i.e.

C++ Syntax (Toggle Plain Text)
  1. abc = 1
  2. def = 2
  3. ghi = 3

Then when the user enter a word on their keypad, you would use the numeric equivalents and do a letter frequency count. Those words that match the exact letter frequency count you could pair off with the english words.

You could use the '#' key to toggle through the various options.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: string searching
Next Thread in C++ Forum Timeline: functions using strings and arrays





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC