Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Model \(16 \times 16\) Sudoku puzzles (with \(4 \times 4\) blocks) as satisfiability problems.

Short Answer

Expert verified

The model is \( \wedge _{i = 1}^{16} \wedge _{n = 1}^{16} \vee _{j = 1}^{16}p\left( {i,\;j,\;n} \right)\), \( \wedge _{j = 1}^{16} \wedge _{n = 1}^{16} \vee _{i = 1}^{16}p\left( {i,\;j,\;n} \right)\), \( \wedge _{r = 0}^4 \wedge _{s = 0}^4 \vee _{n = 1}^{16} \vee _{i = 1}^4 \vee _{j = 1}^4p\left( {4r + i,4s + \;j,\;n} \right)\), and \(p\left( {i,\;j,\;n} \right) \to \neg p\left( {i,\;j,\;n'} \right)\).

Step by step solution

01

Describe the given information

Given that 16×16Sudoku puzzle (which thus contains every integer from 1 to 16 in each row, column and\(4 \times 4\)block).

02

Model \(16 \times 16\) Sudoku puzzles as satisfiability problems

Let \(p\left( {i,\;j,\;n} \right)\) represent the cell in row \(i\) and column \(j\) and that has the value \(n\)is thus an integer between \(1\) and \(16\), inclusive).

Every row needs to contain every number between \(1\) and \(16\). There are \(16\) rows and \(16\) columns.

\( \wedge _{i = 1}^{16} \wedge _{n = 1}^{16} \vee _{j = 1}^{16}p\left( {i,\;j,\;n} \right)\)

Every column needs to contain every number between \(1\) and \(16\). There are \(16\) rows and \(16\) columns.

\( \wedge _{j = 1}^{16} \wedge _{n = 1}^{16} \vee _{i = 1}^{16}p\left( {i,\;j,\;n} \right)\)

Every \(4 \times 4\)block contains every number between 1 and 4.

\( \wedge _{r = 0}^4 \wedge _{s = 0}^4 \vee _{n = 1}^{16} \vee _{i = 1}^4 \vee _{j = 1}^4p\left( {4r + i,4s + \;j,\;n} \right)\)

Finally, no cell contains more than one number.

\(p\left( {i,\;j,\;n} \right) \to \neg p\left( {i,\;j,\;n'} \right)\)

Therefore, the model is \( \wedge _{i = 1}^{16} \wedge _{n = 1}^{16} \vee _{j = 1}^{16}p\left( {i,\;j,\;n} \right)\), \( \wedge _{j = 1}^{16} \wedge _{n = 1}^{16} \vee _{i = 1}^{16}p\left( {i,\;j,\;n} \right)\), \( \wedge _{r = 0}^4 \wedge _{s = 0}^4 \vee _{n = 1}^{16} \vee _{i = 1}^4 \vee _{j = 1}^4p\left( {4r + i,4s + \;j,\;n} \right)\), and \(p\left( {i,\;j,\;n} \right) \to \neg p\left( {i,\;j,\;n'} \right)\).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

You can graduate only if you have completed the requirements of your major and you do not owe money to the university and you do not have an overdue library book. Express your answer in terms of g: “You can graduate,” m: “You owe money to the university,” r: “You have completed the requirements of your major,” and b: “You have an overdue library book.”

Let P(x),Q(x),R(x),andS(x) be the statements “xis a duck,” “xis one of my poultry,” “xis an officer,” and “xis willing to waltz,” respectively. Express each of these statements using quantifiers; logical connectives; andP(x),Q(x),R(x),andS(x).

(a) No ducks are willing to waltz.

(b) No officers ever decline to waltz.

(c) All my poultry are ducks.

(d) My poultry are not officers.

(e) Does (d) follow from (a), (b), and (c)? If not, is there a correct conclusion?

The police have three suspects for the murder of Mr. Cooper: Mr. Smith, Mr. Jones, and Mr. Williams. Smith, Jones, and Williams each declare that they did not kill Cooper. Smith also states that Cooper was a friend of Jones and that Williams disliked him. Jones also states that he did not know Cooper and that he was out of town the day Cooper was killed. Williams also states that he saw both Smith and Jones with Cooper the day of the killing and that either Smith or Jones must have killed him. Can you determine who the murderer was if

a) One of the three men is guilty, the two innocent men are telling the truth, but the statements of the guilty man may or may not be true?

b) Innocent men do not lie?

For each of these sentences, state what the sentence means if the logical connective or is an inclusive or (that is, a disjunction) versus an exclusive or. Which of these meanings of or do you think is intended?

a) To take discrete mathematics, you must have taken calculus or a course in computer science.
b) When you buy a new car from Acme Motor Company, you get $ back in cash or a car loan.
c) Dinner for two includes two items from column A or three items from column B.
d) School is closed if more than feet of snow falls or if the wind chill is below

Why are the duals of two equivalent compound propositions also equivalent, where these compound propositions contain only the operators,, and ¬?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free