| Algorithm 3 A fast algorithm for constructing combinations. |
|
Input: A set of POIs on the line segment with positions , where is the position for , and a real number r that is the radii of the sensors; |
| Output: The set of combinations . |
| 1: Set , and ; |
| 2: For POI to do |
| 3: For to do |
| 4: If and then |
| 5: ; |
| 6: EndIf |
| 7: EndFor |
| 8: EndFor |
| 9: Return and terminate. |