Sensor Network
Time limit2sMemory limit128 MB
Find the largest group of sensors where every pair lies within distance d and print its size and members.
- Level
Hard8 of 10
- Topics
- Backtracking, Graph, Geometry
- Solved
- No attempts yet
Problem
Each sensor can communicate directly with sensors within Euclidean distance . Given sensor coordinates, find a largest set in which every pair can communicate directly.
Input
The first line has and (, ). The next lines give coordinates , for sensors through .
Output
Print the maximum set size on the first line. Print the sensor indices on the second line. Any optimal set is accepted.