Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi I need help understanding this question. Suppose there is a set of growers G = {a, b, c, d}, a set of retailers R

Hi

I need help understanding this question.

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 xC, respectively, defined by: aAe, bAg, cAf, dAe, dAg, and eBn, eBr, fBm, fBq, gBp xAy means "grower x sold goods to retailer y", and yA1x means "retailer y bought goods from grower x" xBy means "retailer x sold goods to customer y", and yB1x means "customer y bought goods from retailer x" (i) Find the matrices M(A) and M(B) that represent the relations A and B. (ii) Find the matrices M(A)T and M(B)T that represent the relations A1 and B1 (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)T M(A)T, and finally M(B)T M(A)T M(A) M(B), and hence answer the query.

Regards

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

How is network availability calculated?

Answered: 1 week ago

Question

Writing a Strong Introduction

Answered: 1 week ago