This paper deals with facility location problems with pos=neg weights in trees. We consider two di erent objective functions which model two di erent ways to handle obnoxious facilities. If we minimize the overall sum of the minimum weighted distances of the vertices from the facilities, the optimal solution has nice combinatorial properties, e.g., vertex optimality. For the pos=neg 2-median problem on a network with n vertices, these properties can be exploited to derive an O(n2 ) algorithm for trees, an O(n log n) algorithm for stars and a linear algorithm for paths. For the p-median problem with pos=neg weights on a path we give an O(pn2 ) algorithm. If we minimize the overall sum of the weighted minimum distances of the vertices from the facilities, we can show that there exists a
Rainer E. Burkard, Eranda Çela, Helidon Dol