Questions about Predicate Logic in relation to a Word Problem? You are writing a program that keeps track of movies and actors. The situation can be described using the following predicates: R(M,Y) is true if movie M was released in year Y. S(A,M) is true if actor A appears in movie M. H(M) is true if the movie M was a hit!

tamola7f

tamola7f

Answered question

2022-09-05

Questions about Predicate Logic in relation to a Word Problem?
I am struggling to undersand Predicate Logic and my teacher gave me an interesting problem that is just a little confusing. I am unsure what I need to exactly describe these situations. I gave it a go but I would appreciate any insights into what I might be doing wrong.
You are writing a program that keeps track of movies and actors. The situation can be described using the following predicates:
R(M,Y) is true if movie M was released in year Y.
S(A,M) is true if actor A appears in movie M.
H(M) is true if the movie M was a hit!
Use these predicates to state the following facts:
(a) Actor “A” has appeared in at least one hit.
(b) Actor “A” has appeared in at least two hits.
(c) Actors “A1” and “A2” have appeared together in the same movie.
(d) All the movies that Actor “A” appears in are hits.
(e) Actor “A” appears in all the hits released in ”2020”.
My solutions so far:
a. ( x ) S ( A , M ) H ( M )
b. ( x ) S ( A , M ) H ( M ) H ( M )
c. ( x ) S ( A 1 , M ) S ( A 1 , M )
d. ( x ) S ( A , M ) H ( M )
e. ( x ) S ( A , M ) H ( M ) in 2020

Answer & Explanation

Baluttor7

Baluttor7

Beginner2022-09-06Added 17 answers

Step 1
for example,
( x ) P Q
actually means
( x P ) Q
instead of the intended
x ( P Q ) .
Step 2
(a) Actor “A” has appeared in at least one hit.
a. ( x ) S ( A , M ) H ( M )
a m ( S ( a , m ) H ( m ) )
(b) Actor “A” has appeared in at least two hits.
b. ( x ) S ( A , M ) H ( M ) H ( M )
a m 1 m 2 ( S ( a , m 1 ) S ( a , m 2 ) H ( m 1 ) H ( m 2 ) m 1 m 2 )
(c) Actors “A1” and “A2” have appeared together in the same movie.
c. ( x ) S ( A 1 , M ) S ( A 1 , M )
a 1 a 2 m ( S ( a 1 , m ) S ( a 1 , m ) )
(d) All the movies that Actor “A” appears in are hits.
d. ( x ) S ( A , M ) H ( M )
a m ( S ( a , m ) H ( m ) )
(e) Actor “A” appears in all the hits released in ”2020”.
e. ( x ) S ( A , M ) H ( M ) i n 2020
a m ( ( R ( m , 2020 ) H ( m ) ) S ( a , m ) )

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?