Results 1 to 8 of 8
- 08-15-2009, 07:56 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 17
- Rep Power
- 0
Checking spelling errors..Any ideas?
Hi,
I am trying to do the following.
I am given a file which contains an accepted wordlist.
And there is another input file containing a sentence (all in lowercase)
I am supposed to find out whether the words in input file are from accepted wordlist. If not then the program must print out the minimum number of changes necessary to turn all words in the input wall post into accepted words as defined by the word list file. Words may not be joined together, or separated into multiple words. A change in a word is defined as one of the following:
1. Replacing any single letter with another letter.
2. Adding a single letter in any position.
3. Removing any single letter.
please help me with some ideas......
esp with...if a word is not from the accepted list, then how do u find the closest word to it?
- 08-15-2009, 08:29 PM #2
Member
- Join Date
- Aug 2009
- Posts
- 17
- Rep Power
- 0
Example:
Input file contains this:
tihs sententcnes iss nout varrry goud
the output shud be an integer indicating number of changes
- 08-15-2009, 09:33 PM #3
Member
- Join Date
- Aug 2009
- Posts
- 17
- Rep Power
- 0
i guess i got the answer...this is the algo
csse.monash .edu.au/~lloyd/tildeAlgDS/Dynamic/Edit/]Dynamic Programming Algorithm, Edit Distance[/url]
-
I'm less than a newbie in this type of algorithm, but I can help with posting a functioning link to the very interesting article that you mentioned above. Many thanks for sharing it with us!
Dynamic Programming Algorithm, Edit Distance
- 08-15-2009, 09:48 PM #5
Senior Member
- Join Date
- Jun 2008
- Posts
- 339
- Rep Power
- 5
Cool - it is a tricky challenge even for relatively short lists.
Thanks for the link.
- 08-15-2009, 09:51 PM #6
Member
- Join Date
- Aug 2009
- Posts
- 17
- Rep Power
- 0
@Fubarable
how did you post the hyperlink? i am new to these forums so just curious.
-
new coder, it's a secret that I'm not allowed to tell you until you've posted 20 posts.
....OK, actually it's a "feature" of the forum that prevents newbies from posting links until they've posted 20 posts. Before we had this we were getting more and more porn-spam posts. Keep posting and you'll soon reach the 20 limit. Sorry for the inconvenience.
- 08-15-2009, 10:04 PM #8
Member
- Join Date
- Aug 2009
- Posts
- 17
- Rep Power
- 0
Similar Threads
-
Need ideas here
By Manfizy in forum New To JavaReplies: 0Last Post: 07-30-2009, 08:07 AM -
out of ideas
By v1nsai in forum New To JavaReplies: 2Last Post: 03-27-2009, 01:35 AM -
What is the difference between Semantic Errors and Logical Errors?
By tlau3128 in forum New To JavaReplies: 3Last Post: 03-08-2009, 01:51 AM -
Research Ideas
By hawaiifiver in forum Forum LobbyReplies: 2Last Post: 02-03-2009, 04:43 AM -
Merging Ideas
By CompleteBeginner in forum New To JavaReplies: 1Last Post: 05-19-2008, 02:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks