Content deleted Content added
m spelling |
MatrixFrog (talk | contribs) mNo edit summary |
||
Line 6:
==Method==
Given M intervals c +/- r
The intersection algorithm begins by creating a table of tuples <offset,type>. For each interval there are three entries, the lower endpoint, the midpoint and the upper endpoint, labelled with types -1, 0 1 respectively. Thus interval c +/- r results in entries <c-r,-1> <c,0> <c+r,+1>. These are then sorted by offset.
|