I know that I can use KD-Tree to store points and quickly iterate over a part close to another given point. I am wondering if there is something similar for strings.
Given the set of L lines in 3D (which will be stored in this data structure) and another “query line” q, I would like to quickly iterate over all lines in L that are “fairly close” to q. The distance I plan to use is the minimum Euclidean distance between two points u and v, where u is some point on the first line and v is some point on the second line. Calculating this distance is not a problem (there is a good trick involving cross-product).
Perhaps you have a good idea or know where to look for documents, descriptions, etc.
TIA, p.
source
share