On this page:
1 Solving Sudoku
2 Sudoku Implies P = NP?
3 Verifying a General Sudoku Game Solution
4 Poly Time Mapping Reducibility to the Halting Problem

Homework 11

Last updated: Thu, 28 Apr 2022 11:53:20 -0400

Out: Wed April 27, 00:00 EST Due: Tue May 03, 23:59 EST

This assignment starts to explore NP and NP-Completeness.

Homework Problems

  1. Solving Sudoku (5 + 5 = 10 pts)

  2. Sudoku Implies P = NP? (9 pts)

  3. Verifying a General Sudoku Game Solution (5 + 5 = 10 pts)

  4. Poly Time Mapping Reducibility to the Halting Problem (10 pts)

  5. README (1 point)

Total: 40 points

Submitting

Submit your solution to this assignment in Gradescope hw11. Please assign each page to the correct problem and make sure your solutions are legible.

A submission must also include a README containing the required information.

1 Solving Sudoku

A Sudoku game board is a square made up of 9 subgrids (arranged 3\times 3), where each subgrid itself has 9 boxes (also arranged 3 \times 3), so the overall game board is 9 \times 9.

A solution to this game requires putting a number from 1 to 9 in each box such that each row, column, and subgrid contains each number once and only once.

2 Sudoku Implies P = NP?

Prove that if the Sudoku problem from Problem 1 Solving Sudoku is NP-Complete, then \textbf{P} = \textbf{NP}.

3 Verifying a General Sudoku Game Solution

A general version of the Sudoku game allows the size of the board to change. Specifically, this general Sudoku game board has n\times n subgrids, each containing n \times n boxes (so overall, the board size is n^2\times n^2), and each subgrid/row/column must be filled with the numbers 1 to n^2 once and only once.

Formally, let \textit{GSUDOKU}=\left\{B \mid B \textrm{ is a solvable general Sudoku board}\right\}

Prove that \textit{GSUDOKU} \in \textbf{NP}.

Give two different solutions.

(This, along with the Solving Sudoku problem, demonstrates that when discussing \textbf{P} and \textbf{NP}, the only problems that are interesting are ones where the input can change in size.)

4 Poly Time Mapping Reducibility to the Halting Problem

Show that \textit{HAMPATH}\leq_\textrm{P} \textit{HALT}_\textsf{TM}