How to find this record:
|
insert( record )
{
Lookup( record.SearchKey );
Let b = the last bucket block;
if ( b has room for record )
{
Insert record in block b;
}
else
{
Allocate an overflow block for bucket;
Link overflow block to b
Insert record in overflow bucket block;
}
}
|
|
|
|
|
|
Example:
|
Conclussion:
|
|
Example:
|
Find the nearest neighbor of a data point:
|
The expanding range search algorithm:
|
Note:
|
|
|