Given a graph and a positive integer , the task in the vertex cover () problem is to find a minimum subset of vertices such that every path of order in contains at least one vertex from . The problem is NP-complete for any integer and has many applications in real world. Recently, the authors presented a dynamic programming algorithm running in time for the problem on -vertex graphs with treewidth . In this paper, we propose an improvement of it and improved the time-complexity to $3^p\cdot n^{O(1)}$. The connected vertex cover () problem is the connected variation of the problem where is required to be connected. Using the Cut&Count technique, we give a randomized algorithm with runtime for the problem on -vertex graphs with treewidth .

生成讲解博客的中文版本

生成AI智能校验的中文版本