Constant time enumeration of weighted trees
This study specifically addresses the enumeration problem of the class of weighted trees. A weighted tree is a rooted unordered tree, and each vertex in a weighted tree is assigned an integer weight. The task is to enumerate the weighted trees. Given a tree T and a weight w , the objective is to enumerate all weighted trees that share the same tree structure as T and have a total weight of w . Note that the weight assigned to each vertex must be non-negative. The algorithm utilizes reverse search and enumerates each weighted tree in a constant amortized time. By combining our findings with the enumeration of the class of rooted trees, we can efficiently enumerate every weighted tree with a maximum of n vertices and a total weight of w for any given positive inputs n and w .
Authors
- Mengze Qian (ORCID: https://orcid.org/0000-0003-0859-2736)
- Ryuhei Uehara (ORCID: https://orcid.org/0000-0003-0895-3765)
Institutions
- Japan Advanced Institute of Science and Technology (JP)
Publication Details
- Journal
- Discrete Applied Mathematics
- Published
- 2025-06-13
- DOI
- https://doi.org/10.1016/j.dam.2025.05.043
- Citations
- 2
- Primary Topic
- Graph theory and applications
- Type
- article
- Field-Weighted Citation Impact
- 8.18