I am a bit stuck on this one problem in the current project I am working on:
I want to take one ArrayList<String>
(call it A) and compare it to many ArrayList<String>
, making note of how many strings match in these array comparisons. Then, I want to order the multiple string arrays in order from most similar to least similar to A.
Does anyone know any fast algorithms to do this? Not looking for code so much as algorithms, but I am working in Java.
Thanks!
My suggestion :
set.contains(string)
find out how many matches each array list contains.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With