Answering Partial Match queries using a Multiple-key index
Example:
One scan of the
Level 2 index file will
find
all the data records !!
Answering Partial Match queries using a Multiple-key index
Example:
Processing:
Answering Partial Match queries using a Multiple-key index
Example:
Processing:
Answering Partial Match queries using a Multiple-key index
Example:
Processing:
Answering Partial Match queries using a Multiple-key index
Example:
Processing:
Answering Range queries using a Multiple-key index
Solution:
Answering "Nearest Neighbor" queries using a Multiple-key index
How to find the
nearest (smallest distance) neighbor:
Use the expanding range
search algorithm
(with pruning)
Answering "Nearest Neighbor" queries using a Multiple-key index
Find the nearest neighbor of
(age=45, salary=250)
We need a good candidate point:
Answering "Nearest Neighbor" queries using a Multiple-key index
Find the nearest neighbor of
(age=45, salary=250)
We need a good candidate point:
Answering "Nearest Neighbor" queries using a Multiple-key index
Find the nearest neighbor of
(age=45, salary=250)
We need a good candidate point:
Answering "Nearest Neighbor" queries using a Multiple-key index
Prune away
the first level indexes that
exceeds the
candidate distance:
Search in the
unpruned branches
to find a better candidate
(and prune further when found)
Answering "Nearest Neighbor" queries using a Multiple-key index
Continued search in an
unpruned branch:
Answering "Nearest Neighbor" queries using a Multiple-key index
Use the better candidate to
prune away
65 because
|45−65| = 20
> 15:
Answering "Wher-am-I" queries using a Multiple-key index
❮
❯