Suppose I have 3 kinds of constraints for calculating a spanning tree:
- Limited degree (for example: a node in a spanning tree can connect up to 3 other nodes)
- A limited diameter (for example, all ribs) of the weight, once summed, cannot exceed 100).
2.1. If possible, show all subtrees matching these criteria. - AND
Are there any good algorithms to solve this problem that will not infuriate me? I need to run this with fairly large capabilities (1000+ nodes), so its complexity also cannot be too high.
source
share