What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which of the following statements are TRUE?
1. The problem of determining whether there exists a cycle in an undirected graph is in P.
2. The problem of determining whether there , exists a cycle in an undirected graph is in NP.
3. If a problem A is NP-Complete, there exists a non-deterministic polynomial time algorithm to solve A
Consider two decision problems Q1, Q2 such that Q1 reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to Q2. Then which one of the following is consistent with the above statement?
Language L1 is polynomial time reducible to language L2. Language L3 is polynomial time reducible to L2, which in turn is polynomial time reducible to language L4. Which of the following is/are True?
I. If L4 ∈ P , L2 ∈ P
II If L, ∈ P or L3e P, then L2∈ P
III. L, ∈ P, if and only if L3∈ P
IV. If L4 ∈ P, then L1 ∈ P and L3 ∈ P
63 videos|8 docs|165 tests
|
63 videos|8 docs|165 tests
|