Let be a sentence of (monadic second-order logic with quantification over edge subsets and counting modular predicates) over the signature of graphs. We present a dynamic data structure that for a given graph that is updated by edge insertions and edge deletions, maintains whether is satisfied in . The data structure is required to correctly report the outcome only when the feedback vertex number of does not exceed a fixed constant , otherwise it reports that the feedback vertex number is too large. With this assumption, we guarantee amortized update time ${\cal O}{\varphi,k}(\log n)$. If we additionally assume that the feedback vertex number of never exceeds , this update time guarantee is worst-case. By combining this result with a classic theorem of Erd\H{o}s and P'osa, we give a fully dynamic data structure that maintains whether a graph contains a packing of vertex-disjoint cycles with amortized update time ${\cal O}{k}(\log n)$. Our data structure also works in a larger generality of relational structures over binary signatures.

生成讲解博客的中文版本

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