What is a good algorithm for getting the minimum vertex cover of a tree?

后端 未结 7 678
感动是毒
感动是毒 2020-12-28 16:55

What is a good algorithm for getting the minimum vertex cover of a tree?

INPUT:

The node\'s neighbours.

OUTPUT:

The minimum number of vertice

7条回答
  •  太阳男子
    2020-12-28 17:03

    I would simply use a linear program to solve the minimum vertex cover problem. A formulation as an integer linear program could look like the one given here: ILP formulation

    I don't think that your own implementation would be faster than these highly optimized LP solvers.

提交回复
热议问题