|
| ||||||||||
| Tags: java, jdk, object oriented programming, string algorithm, sun microsystems |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| String matching algorithm
|
|
#2
| ||||
| ||||
| Re: String matching algorithm
Try to use the Levenshtein algorithm for comparing strings, this will define the minimum number of edits that are required for transforming the string in the other. This gives the option for editing operation for inserting deleting or for the substitution for the character you need. For example: cat > bat (substitution of 'c' for 'b'). I hope you got the idea about this thing. |
|
#3
| |||
| |||
| Re: String matching algorithm
Thank you for the information that you have provided related to string matching algorithm. I have also searched the net and discovered that it is very useful, if you want to do this in Java. I mean that it is also having the java implementation for this thing. At the starting this algorithm is working perfectly, after that I have started to test this for the strange test string that includes the actual user input and then it started to fail. Do you have any idea related to this? |
|
#4
| |||
| |||
| Re: String matching algorithm
See if you want the design the algorithm according to your requirement that is not documented then you have modify the algorithm per your need. If you are trying to use the Levenshtein algorithm, for this purpose then it will definitely fail. Because this algorithm is specifically designed for the documented problems only. If you have the knowledge for changing algorithm then you can try to change the algorithm as per your needs. |
|
#5
| |||
| |||
| Re: String matching algorithm
If you are asking that somebody has designed the algorithm which can be used for your specific need then it is somewhat difficult. Because the normally the available algorithm are designed for documented problems. If you want to satisfy you searching needs then you will have to build algorithm according to your needs or higher a developer who can do that thing for you. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "String matching algorithm" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem in matching Regex | Vodka | Software Development | 5 | 18-02-2010 03:12 AM |
| Problem in pattern matching | Gunner 1 | Software Development | 5 | 03-02-2010 11:32 PM |
| What are matching mutator methods? | Abhay singh | Software Development | 3 | 04-11-2009 02:06 PM |
| How to Manipulate String using PHP String Functions | ComPaCt | Software Development | 3 | 21-09-2009 09:07 AM |
| JAVA Help - Background change by color matching | Daren | Software Development | 4 | 12-05-2009 08:41 AM |