I want to implement an algorithm in Java to find the closest similar lines.
I have station_names in mysql database - 23 ST, 233 ST, 21 ST, 14 St Times Sq, 24 ST
and if the user enters a search string, such as the 23rd station , then I must return 23 ST and 233 ST , or if the user enters Times Square, then the result should be 14 St Times Sq .
I found many algorithms on the Internet, but I'm confused about what to use.
Could you offer me the best algorithm that can be implemented in Java?
Thank you in advance
Deepu source share