Question: ( 2 5 points ) You are given the locations of n buildings B 1 , dots, B n on the real line. Each location

(25 points) You are given the locations of n buildings B1,dots,Bn on the real line. Each location is a coordinate (i.e., a real number). Each building Bi has a WIFI signal receiver with a range of ri>0. That is, if we place a signal tower at distance ri or less from Bi, then Bi gets WIFI. Note that the signal receivers of different buildings may have different ranges.
Describe a greedy algorithm that places the smallest number of signal towers so that every building gets WIFI. Explain the correctness of your algorithm. Derive the running time of your algorithm.
( 2 5 points ) You are given the locations of n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!