Assignment Solution CS701
Assignment Solution CS701
Fall 2018
Assignment 3
The purpose of the assignments is to give students hands on practice. It is expected that
students will solve assignments themselves. Following rules will apply during the
evaluation of the assignment.
Cheating from any source will result in zero marks in the assignment.
Any student found cheating in any two of the assignments submitted during the
course will be awarded "F" grade in the course.
No assignment after due date will be accepted.
1
Virtual University of Pakistan
Fall 2018
Solution:
If A = {F', S', 3}
where F'= {1, 2, 3, 4, 5, 6, 7, 8, 9},
S' = {{1, 3}, {1, 4}, {1, 8}, {1, 9}, {2, 4}, {2, 5}, {2, 6}, {2, 7}, {2, 9},
{3, 4}, {3, 7}, {4, 5}, {5, 7}, {5, 8}, {6, 7}, {6, 8}, {6, 9}, {7, 8}}
Solution:
2
Virtual University of Pakistan
Fall 2018
We prove that A ∈ SCHEDULE by giving a schedule with h = 3 slots such that no student
is taking two exams in the same slot
h Final-exams
1 1, 5, 6
2 2, 3, 8
3 4, 7, 9
𝜓 = (𝑥1 ∨ 𝑥2 ∨ 𝑥3 ) ∧ (𝑥
̅̅̅1 ∨ ̅̅̅
𝑥2 ∨ ̅̅̅)
𝑥3 ∧ (𝑥
̅̅̅1 ∨ 𝑥
̅̅̅2 ∨ 𝑥3 ) ∧ (𝑥
̅̅̅1 ∨ 𝑥2 ∨ 𝑥
̅̅̅)
3 ∧ (𝑥1 ∨ ̅̅̅
𝑥2 ∨ 𝑥
̅̅̅)
3 ∧
(𝑥1 ∨ 𝑥2 ∨ ̅̅̅)
𝑥3
Solution:
𝜓 has two satisfying assignments: x1 = 1, x2 = 0, x3 = 0 and x1 = 0, x2 = 1, x3 = 0
Hence 𝜓 belong to 3SAT.