In Exercises 47 and 48 we consider the problem of placing towers along a straight road, so that every building on the road receives cellular service. Assume that a building receives cellular service if it is with one mile of a tower.
*48. Use mathematical indouction to prove that the algorithm you deised in Exerise 47 produces an optimal solution, that is, that it uses the fewest towers possible to provide cellular service to all buildings.
47.Devise a greedy algorithm that uses the minimum number of towers possible to provide cell service todbuildings located atpositions from the start of theroad. [Hint: At each step, go as far as possible along the road before adding a towver so as not to leave any buildings without coverage.]
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
- Algebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning