Algorithm for the placement of nodes for effective coverage