Ask Math Expert


Home >> Math

Problem 1: Mathematical Background: Set Theory

1. Let A = {1,2,3}, B = {∅,{1},{2}}, and C = {1,2,{1,2}}. Compute A ∪ B, A ∩ B, B ∩ C, A ∩ C, A × B,

A × C, C \ B, A × B × C, and 2B. Recall that 2A denotes the power set of A, and A \ B denotes A set difference B.

2. Prove that for any sets A, B, and C, A × (B ∪ C) = (A × B) ∪ (A × C).

Problem 2 Mathematical Background: Proofs and Induction

1. Prove Pythagorean Theorem, which states that the square of hypotenuse is equal to the sum of squares of the other two sides.

2. Prove by contradiction that there are infinitely many prime numbers.

3. Suppose that a post office sells only 2¢ and 3¢ stamps. Show that any postage of 2¢, or over, can be paid for only using these stamps.

Problem 3 Propositional Logic

1. Prove that the following semanic entailments are true by using truth tables.
• (p → q) → r,s → ¬p,t,¬s,t → q |= r
• ∅ |= q → (p → (p → (q → p)))

2. Prove the following inferences in propositional logic using natural deduction proof rules.
• (p → q) → r,s → ¬p,t,¬s,t → q ` r
• `q → (p → (p → (q → p)))

Problem 4 [Complexity of Some Problems in Propositional Logic]

Two of the commonly used normal forms for formulas in propositional logic is Conjunctive Normal Form (CNF) and Disjuctive Normal Form (DNF). A formula φ is said to be in k-CNF form if it is a conjuction of subformulas, i.e., φ = ψ1∧ψ2∧ψl where, each ψi is a disjuction of k literals, i.e., ψi = p1∨p2 ∨...∨pk. A formula ξ is said to be in k-DNF if it is a disjunction of subformulas, i.e, ξ = η1∨η2 ∨...∨ηl where, each ηi is a conjunction of k literals, i.e., ηi = p1 ∧ p2 ∧...∧pk. Here, pi can be a propositional variable or its negation. Now prove the following complexity theoretical problems over propositional logic.

1. Given a k-DNF formula, prove that its satisfiability can be decided in polynomial time.

2. Given a k-CNF formula, prove that to decide whether the given formula is a tautologycan be decided in polynomial time.

3. Given a 2-CNF formula, prove that its satisfiability can be decided in polynomial time.

Problem 5 [Solving Sudoku Using SAT Solvers] Sudoku is a popular number-placement puzzle that originated in France in the end of the 19th century. Modern Sudoku was likely invented by Howard Garns from Connersville, Indiana and was first published in 1979 under the name Number Place. The objective of the puzzle is to place numbers 19 on a 9×9 grid, such that each number occurs only once in every row, every column, and every of the nine 3×3 subgrids that compose the main grid. Sudoku puzzles are grids that have been partially occupied with numbers. The task is then to occupy the remaining fields in such a way that the constraints on rows, columns, and sub-grids are satisfied. A sample Sudoku problem and its solution are given in Figure 1. For more information about Sudoku refer to its Wikipedia page at http://en.wikipedia.org/wiki/Sudoku.

In this problem, you will use one of the SAT Solvers Z3 (downloadable at http://z3. codeplex.com/ and use Python API) or use MiniSAT (downloadable at http://minisat.se/ with C++ API) to solve the sudoku problem given in Figure 1. Alternatively, you can also you use any other SAT solver of your preference. In this problem, you will do the following:

1. Write the boolean formula for the constraints that each number can occur at most oncein every row.

2. Write the boolean formula for the constraints that each number can occur at most oncein every column.

3. Write the boolean formula for the constraints that each number can occur at most oncein every 3×3 sub-grid.

Encode each of the above mentioned constraints using the API for the solver that you chose. Finally, encode the constraints which specify the numbers provided in the partially filled puzzle.

2272_Sudoku puzzle.png

Figure 1: Sudoku puzzle for Problem 5.

Math, Academics

  • Category:- Math
  • Reference No.:- M91644619
  • Price:- $80

Guranteed 48 Hours Delivery, In Price:- $80

Have any Question?


Related Questions in Math

Questions -q1 prove the following identitiesa sinx y sinx

Questions - Q1. Prove the following identities a. sin(x + y) + sin(x - y) = 2 sin x cos y b. sec(x - y) = cos(x + y)/(cos 2 x - sin 2 y) c. tan 2 x - sin 2 x = (tan x sin x) 2 Q2. Solve the following equations for x ∈ [0 ...

Maths assignment - 1 analysis of a data setusing a

Maths Assignment - 1. Analysis of a data set Using a continuous data set you are requested to collect in the types of data and gathering data section, perform a statistical analysis on your data. You have opportunities t ...

Questions - provide solution to the following questionsq1

Questions - Provide solution to the following questions: Q1. Evaluate the following: ∫xsin3xdx Q2. If , then for what value of α is A an identity matrix? Q3. The line y = mx + 1 is a tangent to the curve y 2 = 4x. Find t ...

Assessment taskpractical investigation- question 1 requires

Assessment Task Practical Investigation - Question 1 requires selecting reference points from the graph. It is expected that each student will choose different reference points to other students. Take note of the criteri ...

1 suppose that n 10088821 is a product of two distinct

1. Suppose that n = 10088821 is a product of two distinct primes, and Φ(n) = 10082272. Determine the prime factors of n. 2. It is easy to show that the converse of Fermat's Theorem does not hold; i.e., the congruence a n ...

Assignment -question 1 let t and or 0 1 be a boolean

Assignment - Question 1. Let (T, ∧, ∨,', 0, 1) be a Boolean Algebra. Define ∗ : T × T → T and o : T × T → T as follows: x ∗ y := (x ∨ y)' x o y := (x ∧ y)' (a) Show, using the laws of Boolean Algebra, how to define x ∗ y ...

Assignment - provide solution to the following questionsq1

Assignment - Provide solution to the following questions: Q1. Evaluate the following: ∫xsin3x dx Q2. If , then for what value of α is A an identity matrix? Q3. The line y = mx + 1 is a tangent to the curve y 2 = 4x. Find ...

Question 1 what is the nth order approximation using taylor

Question: 1. What is the nth order approximation using Taylor series? 2. What is Error Propagation? 3. Please explain what the total numerical error is? Please illustrate how the change of step size will affect the total ...

Mathematics- algebraic geometry problemlet k denotes an

Mathematics- Algebraic Geometry Problem Let K denotes an algebraically closed field and let P 1 be constructed as in Example 5.5(a) in Gathmanns notes, i.e. P 1 is the gluing of X 1 = A 1 and X 2 = A 1 along  the open su ...

Mathematics- algebraic geometry problemlet k denotes an

Mathematics- Algebraic Geometry Problem Let K denotes an algebraically closed field and let P 1 be constructed as in Example 5.5(a) in Gathmanns notes, i.e. P 1 is the gluing of X 1 = A 1 and X 2 = A 1 along  the open su ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As