Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The game PEBBLES is played on a k n chessboard. Initially each square of the chessboard has a black pebble, or a white pebble, or

The game PEBBLES is played on a k n chessboard. Initially each square of the chessboard has a black pebble, or a white pebble, or no pebble. You play the game by removing pebbles one at a time. You win the game if you can end up with a board in which each column contains only pebbles of a single color and each row contain at least one pebble.

(a) Show that the set of winnable PEBBLES games is in NP by describing a nonde-terministic polynomial-time algorithm to determine whether a given PEBBLES

board is winnable.

(b) Given a boolean expression E in 3-CNF with k clauses and n variables, construct the following kn board: If literal xi is in clause cj, put a black pebble in column xi, row cj. If literal xi is in clause cj, put a white pebble in column xi, row cj.

Show that E is satisfiable if and only if this PEBBLES game is winnable.

(c) What can you conclude from (a) and (b)?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago