c# - Finding Best Matches in Two Lists -
i have 2 lists of string, need locate 1 string 1 of them , 1 string other list, best match each other among matches between 2 lists.
i create list <tuple<string, string, int>>
holds strings of both lists , distance, costly in memory.
would not if easier more object-oriented?
public class match { public string value1 { get; set; } public string value2 { get; set; } public int distance { get; set;} }
and have
list<match>
Comments
Post a Comment