Generalizing a result of Hochbaum and Shmoys, a polynomial algorithm with a worst-case error ratio of 2 is described for the p-center problem in connected graphs with edge lengths and vertex weights. A slight modification of this algorithm provides ratio 2 also for the absolute p- center problem. Both these heuristics are best possible in the sense that any smaller ratio would imply that P = NP.
đang được dịch, vui lòng đợi..