Originally Posted By: jnewth
In 1.14C I think I have a strategy but wanted to get some feedback. Essentially, each of these problems can be shown to be in P if one can find a deterministic polynomial algorithm that decides it. My strategy for BIPARTITE is to pick a node, assign it to A, and then assign all its nodes to B. Then, for each of those nodes, follow their links and assign them to A. If there is ever an instance when a node is in one partition and needs to be assigned to the other, stop and reject G.
My question is, how can we know that all the nodes are visited? What assumptions can we make about the graph? Are all these links one-way? Am I barking up the wrong tree?
'''Originally Posted By: jnewth'''
In 1.14C I think I have a strategy but wanted to get some feedback. Essentially, each of these problems can be shown to be in P if one can find a deterministic polynomial algorithm that decides it. My strategy for BIPARTITE is to pick a node, assign it to A, and then assign all its nodes to B. Then, for each of those nodes, follow their links and assign them to A. If there is ever an instance when a node is in one partition and needs to be assigned to the other, stop and reject G. <br><br>My question is, how can we know that all the nodes are visited? What assumptions can we make about the graph? Are all these links one-way? Am I barking up the wrong tree?