Question
Remember to explain your solutions clearly. A formula is not a complete solution, even if correct. Exercise 2 Show that the following problems are in
Remember to explain your solutions clearly. A formula is not a complete solution, even if correct.
Exercise 2
Show that the following problems are in P
(a) 2Cnf = { | is a satisfiable cnf-formula where each variable appears in at most 2 places}
(b) 2Sat = { | is a satisfiable cnf-formula where each clause has at most two literals}
(c) We are given a map of a city crossed by many rivers. The city is famous for its bridges. We want to know whether it is possible to find a route going through all bridges only once.
(d) A coloring of a graph is an assignment of colors to the vertices so that no two neighboring vertices have the same color 2Color = {G | G is colorable with 2 colors.}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started