Let be a graph and let each vertex of has a lamp and a button. Each button can be of -type or -type. Assume that initially some lamps are on and others are off. The button on vertex is of -type (-type, respectively) if pressing the button changes the lamp states on and on its neighbors in (the lamp states on the neighbors of only, respectively). Assume that there is a set such that pressing buttons on vertices of lights all lamps on vertices of . In particular, it is known to hold when initially all lamps are off and all buttons are of -type. Finding such a set of the smallest size is NP-hard even if initially all lamps are off and all buttons are of -type. Using a linear algebraic approach we design a polynomial-time approximation algorithm for the problem such that for the set constructed by the algorithm, we have where is the rank of a (modified) adjacent matrix of and is the size of an optimal solution to the problem. To the best of our knowledge, this is the first polynomial-time approximation algorithm for the problem with a nontrivial approximation guarantee.

生成讲解博客的中文版本

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