The village consists of n houses located along a straight road. The coordinate of the i-th house is x[i].The internet provider wants to install several Wi-Fi access points in the village, covering all houses. A point with coverage radius r costs A + B.( R )^2. Find the minimum cost of the required access points.
Help of any kind is absolutely thankful!