Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What kind of search algorithm does Xcode "open quickly" and Textmate "Go to file" use?

What type of search is this called? And how do they implement efficient searching of substring in this manner? Notice how when one type "empeee" it matches "Emp loy ee Vi e w.xib"

Xcode

enter image description here

TextMate

enter image description here

like image 968
Tony Avatar asked Nov 05 '22 09:11

Tony


1 Answers

The name is "fuzzy matching" or "fuzzy search" or some variant. Wikipedia has an article about that.

like image 167
romainl Avatar answered Nov 15 '22 05:11

romainl