100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

COS3751 Assignment 3 DUE 15 August 2025 Answers/Solutions

Rating
-
Sold
5
Pages
6
Uploaded on
04-07-2025
Written in
2024/2025

COS3751 Assignment 3 DUE 15 August 2025 Answers/Solutions









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
July 4, 2025
Number of pages
6
Written in
2024/2025
Type
Other
Person
Unknown

Subjects

Content preview

COS3751 Assignment 3

66796504



Question 1

a. Emily is either a surgeon or a lawyer (but not both):
(Surgeon(Emily) ∧ ¬Lawyer(Emily)) ∨ (Lawyer(Emily) ∧ ¬Surgeon(Emily))

b. All surgeons are doctors:
∀p (Surgeon(p) → Doctor(p))

c. Joe does not have a lawyer:
¬∃p (Lawyer(p) ∧ Customer(Joe, p))

d. There exists a lawyer all of whose customers are doctors:
∃p (Lawyer(p) ∧ ∀q (Customer(q, p) → Doctor(q)))

e. Every surgeon has a lawyer:
∀p (Surgeon(p) → ∃q (Lawyer(q) ∧ Customer(p, q)))

, Question 2

a. Let the 3x3 grid be represented as:

[A1, A2, A3],

[B1, B2, B3],

[C1, C2, C3]

Variables:

• Each cell is a variable: A1..C3

Domains:

• Each variable’s domain is the set of letters in the intersecting horizontal and vertical
words.

Constraints:

• Words must be valid across and down:
o A1A2A3 ∈ {DIE, DRY, OAK}
o B1B2B3 ∈ {DIE, DRY, OAK} - previously unused horizontal
o C1C2C3 ∈ {DIE, DRY, OAK} - previously unused horizontal
o A1B1C1 ∈ {AIR, KEY, ODD}
o A2B2C2 ∈ {AIR, KEY, ODD} - previously unused vertical
o A3B3C3 ∈ {AIR, KEY, ODD} - previously unused vertical

Start State:
All variables unassigned; domain consists of the six given words.




b. Solving Algorithm

Pseudocode: Backtracking with Constraint Propagation

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
studycheats University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
889
Member since
5 year
Number of followers
209
Documents
48
Last sold
1 month ago

4,3

38 reviews

5
26
4
5
3
3
2
2
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions