Problem 1 - Triangle Problem (TRIANGLE). A triangle in an undirected graph is a
subgraph that has 3 vertexes connected to each other (so that they form a triangle). We are asked
”Given an undirected graph G, does it contain triangle?”
Is TRIANGLE in P? if not, is it in NP?
• If the problem is in P give a polynomial-time algorithm that decides it;
• If the problem is in NP, but you cannot show that it is in P give a polynomial-time verifier.
2006-10-19
02:48:27
·
2 answers
·
asked by
Z R
1
in
Science & Mathematics
➔ Mathematics