Methods and algorithms for frequency planning