In this paper we study the problem of partitioning a tree with n weighted vertices into p connected components. For each component, we measure its gap, that is, the difference between the maximum and the minimum weight of its vertices, with the aim of minimizing the sum of such differences. We present an O(n3p2) time and O(n3p) space algorithm for this problem. Then, we generalize it, requiring a minimum of ϵ≥1 nodes in each connected component, and provide an O(n3p2ϵ2) time and O(n3pϵ) space algorithm to solve this new problem version. We provide a refinement of our analysis involving the topology of the tree and an improvement of the algorithms for the special case in which the weights of the vertices have a heap structure. All presented algorithms can be straightforwardly extended to other similar objective functions. Actually, for the problem of minimizing the maximum gap with a minimum number of nodes in each component, we propose an algorithm which is independent of ϵ and requires O(n2lognp2) time and O(n2p) space.

Cardinality constrained connected balanced partitions of trees under different criteria / R. Cordone, D. Franchi, A. Scozzari. - In: DISCRETE OPTIMIZATION. - ISSN 1572-5286. - 46:(2022), pp. 100742.1-100742.22. [10.1016/j.disopt.2022.100742]

Cardinality constrained connected balanced partitions of trees under different criteria

R. Cordone
Primo
;
2022

Abstract

In this paper we study the problem of partitioning a tree with n weighted vertices into p connected components. For each component, we measure its gap, that is, the difference between the maximum and the minimum weight of its vertices, with the aim of minimizing the sum of such differences. We present an O(n3p2) time and O(n3p) space algorithm for this problem. Then, we generalize it, requiring a minimum of ϵ≥1 nodes in each connected component, and provide an O(n3p2ϵ2) time and O(n3pϵ) space algorithm to solve this new problem version. We provide a refinement of our analysis involving the topology of the tree and an improvement of the algorithms for the special case in which the weights of the vertices have a heap structure. All presented algorithms can be straightforwardly extended to other similar objective functions. Actually, for the problem of minimizing the maximum gap with a minimum number of nodes in each component, we propose an algorithm which is independent of ϵ and requires O(n2lognp2) time and O(n2p) space.
Balanced tree partitioning; Cardinality constrained components; Dynamic programming; Min–max gap optimization; Min–sum gap optimization
Settore INF/01 - Informatica
Settore MAT/09 - Ricerca Operativa
2022
Article (author)
File in questo prodotto:
File Dimensione Formato  
main.pdf

embargo fino al 24/09/2024

Tipologia: Post-print, accepted manuscript ecc. (versione accettata dall'editore)
Dimensione 399.24 kB
Formato Adobe PDF
399.24 kB Adobe PDF   Visualizza/Apri   Richiedi una copia
1-s2.0-S1572528622000470-main.pdf

accesso riservato

Tipologia: Publisher's version/PDF
Dimensione 1.05 MB
Formato Adobe PDF
1.05 MB Adobe PDF   Visualizza/Apri   Richiedi una copia
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/954394
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 1
  • ???jsp.display-item.citation.isi??? 1
social impact