Abstract
Let T = (V, E) be a tree. A core of T is a path P, for which the sum of the weighted distances from all vertices to this path is minimized. In this paper, we consider the semi-obnoxious case in which the vertices have positive or negative weights. We prove that, when the sum of the weights of vertices is negative, the core must be a single vertex and that, when the sum of the vertices’ weights is zero there exists a core that is a vertex. Morgan and Slater (J Algorithms 1:247–258, 1980) presented a linear time algorithm to find the core of a tree with only positive weights of vertices. We show that their algorithm also works for semi-obnoxious problems.
Similar content being viewed by others
References
Avella P, Boccia M, Sforza A, Vasil’Ev I (2005) A branch-and-cut algorithm for the median-path problem. Comput Optim Appl 32: 215–230
Averbakh I, Berman O (1999) Algorithms for path medi-centers of a tree. Comput Oper Res 26: 1395–1409
Becker RI, Chang Y, Lari I, Scozzari A, Storchi G (2002) Finding the l-core of a tree. Discret Appl Math 118: 25–42
Benkoczia R, Bhattacharya BK, Breton D (2006) Efficient computation of 2-medians in a tree network with positive/negative weights. Discret Math 306: 1505–1516
Burkard RE, Fathali J (2007) A polnomial method for the pos/neg weighted 3-median problem on a tree. Math Methods Oper Res 65: 229–238
Burkard RE, Krarup J (1998) A linear algorithm for the pos/neg-weighted 1-median problem on a cactus. Computing 60: 193–215
Burkard RE, Çela E, Dollani H (2000) 2-Median in trees with pos/neg weights. Discret Appl Math 105: 51–71
Church RL, Garfinkel RS (1978) Locating an obnoxious facility on a network. Transp Sci 12: 107–118
Gavish B, Sridhar S (1995) Computing the 2-median on tree networks is O(nlog n) time. Networks 26: 305–317
Goldman AJ (1971) Optimal center location in simple networks. Transp Sci 5: 212–221
Hedetniemi SM, Cockaine EJ, Hedetniemi ST (1981) Linear algorithms for finding the jordan center and path center of a tree. Transp Sci 15: 98–114
Kariv O, Hakimi SL (1979) An algorithmic approach to network location problems. Part II:p-medians. SIAM J Appl Math 37: 539–560
Morgan CA, Slater PJ (1980) A linear algorithm for a core of a tree. J Algorithms 1: 247–258
Peng S, Lo W (1996) Efficient algorithms for finding a core of a tree with a specified length. J Algorithms 20: 445–458
Slater PJ (1982) Locating central paths in a graph. Transp Sci 16: 1–18
Tamir A (1991) Obnoxious facility location on graphs. SIAM J Discret Math 4: 550–567
Tamir A (1996) An O(pn 2) algorithm for the p-median and related problems on tree graphs. Oper Res Lett 19: 59–64
Ting SS (1984) A linear-time algorithm for maxisum facility location on tree networks. Transp Sci 18: 76–84
Zelinka B (1968) Medians and peripherians of trees. Archvum Math 4: 87–95
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Zaferanieh, M., Fathali, J. Finding a core of a tree with pos/neg weight. Math Meth Oper Res 76, 147–160 (2012). https://doi.org/10.1007/s00186-012-0394-5
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00186-012-0394-5