3

Good morning,

Does anyone know about efficient algorithms for partial string matching? For example, given the two strings "woods" and "woodes", the algorithm could/should possibly return "wood+s", or " | e".

Thank you very much.

2
  • Sounds like you are looking for a stemming algorithm. en.wikipedia.org/wiki/Stemming Commented Oct 22, 2010 at 8:38
  • That's not what I am looking for. Anyway, thank you very much. Commented Oct 22, 2010 at 8:47

2 Answers 2

3

Search for "Levenshtein algorithm" and/or "diff algorithm" on stackoverflow.

Sign up to request clarification or add additional context in comments.

Comments

2

that's a quite complex problem and named "sequence alignment problem". do you want to implement it by yourself? for a first look wikipedia provides a nice article: http://en.wikipedia.org/wiki/Sequence_alignment

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.