We have coordinates of N houses in a rectangular village, find out the equation of straight pipeline parallel of x axis, from which the sum of the perpendicular distances of all the houses will be minimum.
example:
House coordinates : (2,3), (4,2), (3,5), (7,1), (2,9), (5,1), (8,8)
pipeline equation ,y =3.0