Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links


String matching algorithm

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-07-2010
Member
 
Join Date: Mar 2010
Posts: 57
String matching algorithm

Sponsored Links
Actually I was searching for the algorithm that can be used to find the matching string. The thing is that I am having the ArrayList of the string and I need that to be parsed. I also want to pass the string to algorithm that can return the single string which matches exactly or that can pass the exact value. Any related reply to String matching algorithm will appreciated.

Reply With Quote
  #2  
Old 19-07-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,943
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.
Reply With Quote
  #3  
Old 19-07-2010
Member
 
Join Date: Mar 2010
Posts: 57
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?
Reply With Quote
  #4  
Old 19-07-2010
Member
 
Join Date: May 2008
Posts: 2,000
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.
Reply With Quote
  #5  
Old 21-07-2010
Member
 
Join Date: Feb 2010
Posts: 641
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 03:13 AM.