HBC17136Two Graphs题解

一个忧伤的美男子 算法基础篇 63 0
想要成为编程高手?那就来试试全网最全C++题库,让您在练习中快速成长。
Two undirected simple graphs G1=V,E1G_1 = langle V, E_1 rangleG1=V,E1 and G2=V,E2G_2 = langle V, E_2 rangleG2=V,E2 where V={1,2,…,n} are isomorphic when there exists a bijection phi on V satisfying {,}∈E1{phi, phi} in E_1{,}∈E1if and only if {x, y} ∈ E2. Given two graphs G1=V,E1G_1 = langle V, E_1 rangleG1=V,E1 and G2=V,E2G_2 = langle V, E_2 rangleG2=V,E2, count the number of graphs G=V,EG = langle V, E rangleG=V,E satisfying the following condition: * EE2E subseteq E_2EE2. * G1 and G are isomorphic.

Two undirected simple graphs G1=⟨V,E1⟩G_1 = langle V, E_1 rangleG1​=⟨V,E1​⟩ and G2=⟨V,E2⟩G_2 = langle V, E_2 rangleG2​=⟨V,E2​⟩ where V={1,2,…,n}V = {1, 2, dots, n}V={1,2,…,n} are isomorphic when there exists a bijection ϕphiϕ on V satisfying {ϕ(x),ϕ(y)}∈E1{phi(x), phi(y)} in E_1{ϕ(x),ϕ(y)}∈E1​ if and only if {x, y} ∈ E2. Given two graphs G1=⟨V,E1⟩G_1 = langle V, E_1 rangleG1​=⟨V,E1​⟩ and G2=⟨V,E2⟩G_2 = langle V, E_2 rangleG2​=⟨V,E2​⟩, count the number of graphs G=⟨V,E⟩G = langle V, E rangleG=⟨V,E⟩ satisfying the following condition: * E⊆E2E subseteq E_2E⊆E2​. * G1 and G are isomorphic.

HBC17136Two Graphs题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
全网最全C++题库,助您挑战自我,突破极限,成为编程领域的佼佼者!

标签: HBC17136Two Graphs题解