View the step-by-step solution to:

Question

This question was created from ENS1161_A1_ECU_v25_1_2018.docx https://www.coursehero.com/file/29654717/ENS1161-A1-ECU-v25-1-2018docx/

pls give me the answer for this

Question 2
Suppose there is a set of growers G = {a, b, c, d}, a set of retailers R = {e, f, g} and a set of customers
C = {m, n, p, q, r}. There are two relations A and B on G x R and R x C, respectively, defined by:
aAe, bAg, cAf, dAe, dAg, and eBn, eBr, fBm, fBq, gBp
XAy means &quot;grower x sold goods to retailer y&quot;, and
yA *x means &quot;retailer y bought goods from grower x&quot;
xBy means &quot;retailer x sold goods to customery&quot;, and yB&quot;
*x means &quot;customer y bought goods from retailer x&quot;
(i)
Find the matrices M(A) and M(B) that represent the relations A and B.
(ii)
Find the matrices M(A) and M(B) that represent the relations A&quot; and B&quot;
(iii) Consider the query:
Which customers have received goods that came from
the same grower(s) as those goods received by customer p?
Find the logical matrix products M(A) M(B) and then M(B) ' M(A) , and finally
M(B)' M(A) M(A) M(B), and hence answer the query.
[ Hint: To see a similar exercise, look at the &quot;Application&quot; on page 13 of Lecture 5.]
[1 + 1 + 3 = 5 marks

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents