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
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 freeConsider 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.
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.)
Show that PSPACE is closed under the operations union, complementation, and star.
A ladderis a sequence of strings s1, s2, . . . ,sk, wherein every string differs from the preceding one by exactly one character. For example, the following is a ladder of English words, starting with “head” and ending with “free”:head, hear, near, fear, bear, beer, deer, deed, feed, feet, fret, free.
Let
Show that is in PSPACE.
Give an example of an NL-complete context-free language.
What do you think about this solution?
We value your feedback to improve our textbook solutions.