library-checker-problems icon indicating copy to clipboard operation
library-checker-problems copied to clipboard

[問題案] Planarity Testing

Open hly1204 opened this issue 3 years ago • 1 comments

(任意) 問題ID: planarity_testing 問題名: Planarity Testing

(任意) 想定アルゴリズム: Hopcorft-Tarjan Algorithm or PQ-trees or PC-trees (任意) 参考資料: https://cs.brown.edu/people/rtamassi/gdhandbook/chapters/planarity.pdf

問題概要

Testing the planarity of a graph

入力

a graph with n vertices and m undirected edges

n m
f_0 t_0
...
f_{m-1} t_{m-1}

出力

True or False

制約

n, m <= 10^{6}

hly1204 avatar Mar 28 '21 13:03 hly1204

Look good to me (sorry for slow reply).

I recommends to:

  • graph don't have to be connected
  • graph doesn't contain multiple edges / self-loop
  • print (Yes / No) (just my prefer)

yosupo06 avatar Apr 13 '21 00:04 yosupo06