How to find similar patterns in lists/arrays of strings -


I find ways to find matching patterns in lists or strings of arrays, especially .net, but with algorithms or logic I'm going to be helpful in other languages ​​

I have to say that I have 3 arrays (or in this special case list) (string))

  Array1 "Do "" Re "" Mi "" Fa "" Ti "Array 2" m "" fa "" gym "" bob "" so "array 3" gym "" bob "" to "" " Match "Ti"  

I

  ("MI", "FA") (1,2) ("So") in Array (1,2,3) in Array ("Jim", "Bob", "Soo") in Arhee (2,3) ("Then", "la", "ti") (1, 3)  

... and any other

I would like to troubleshoot it I'm using it, especially not to make a commercial product of it, and not with it by hand (there are 110 lists of about 100-200 items).

Is there an algorithm, existing code or ideas that will help me find the results that I have told?

As you would like, the function tells you if you are using .NET 3.0, So consider using LINQ's interaction function.

See

Consider using LinqPAD to experiment.


Comments