Chapter 8: Q31P (page 360)
Show that 2SAT is NL-complete.
Short Answer
The clauses of will be and for every edge of .
Both BFS and DFS take polynomial time of time, where v=#vertices ans E # edges in G
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 8: Q31P (page 360)
Show that 2SAT is NL-complete.
The clauses of will be and for every edge of .
Both BFS and DFS take polynomial time of time, where v=#vertices ans E # edges in G
All the tools & learning materials you need for study success - in one app.
Get started for free
The cat-and-mouse game is played by two players, "Cat" and "Mouse," on an arbitrary undirected graph. At a given point, each player occupies a node of the graph. The players take turns moving to a node adjacent to the one that they currently occupy. A special node of the graph is called "Hole." Cat wins if the two players ever occupy the same node. Mouse wins if it reaches the Hole before the preceding happens. The game is a draw if a situation repeats (i.e., the two players simultaneously occupy positions that they simultaneously occupied previously, and it is the same player's turn to move).
Are respectively a graph and positions of the Cat, Mouse, and Hole, such that Cat has a winning strategy if Cat moves first}.
Show that is in . (Hint: The solution is not complicated and doesn't depend on subtle details in the way the game is defined. Consider the entire game tree. It is exponentially big, but you can search it in polynomial time.)
For each , exhibit two regular expressions, , of length , where, but where the first string on which they differ is exponentially long. In other words, must be different yet agree on all strings of length up to for some constant .
Consider the following two-person version of the language that was described in Problem 7.28. Each player starts with an ordered stack of puzzle cards. The players take turns placing the cards in order in the box and may choose which side faces up. Player I wins if all hole positions are blocked in the final stack, and Player II wins if some hole position remains unblocked. To prove that the problem of determining which player has a winning strategy for a given starting configuration of the cards is PSPACE-Complete.
Define CYCLE= {(G)| G is a directed graph that contains a directed cycle}. Show that CYCLEis NL-complete.
Show that TQBF restricted to formulas where the part following the quantifiers is in conjunctive normal form is still PSPACE-complete.
What do you think about this solution?
We value your feedback to improve our textbook solutions.