加载中…
We show that the number of independent sets in cocomparability graphs can be counted in linear time, as can counting cliques in comparability graphs. By contrast, counting cliques in cocomparabilty graphs and counting independent sets in comparability graphs are #P-complete. We extend these results to counting maximal cliques and independent sets. We also consider the fixed-parameter versions of counting cliques and independent sets of given size . Finally, we combine the results to show that both counting cliques and independent sets in permutation graphs are in linear time.

生成讲解博客的中文版本

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