1. ## Relations and functions.

Not sure if this is under the section, if not I do apoligize.

Im having a little trouble with the last 2 questions in my example sheet, the others were pretty straights forward, as there was a lot of references on my others.
But I was wondering if someone could throw me a line.

The questions were as follows:
Part C
iii)
Define a relation to show how pages on a website are related.

iv)
Describe and show how you could use relational composition to
identify those pages which are
two links apart. How could you use

relational composition to identify pages which are

Thanks again and sorry i this is in the wrong sections

JT

2. Define a relation to show how pages on a website are related.
There are many ways to define a relation, but what is probably meant is this: for two pages x and y, R(x,y) is true iff x has a link to y.

Describe and show how you could use relational composition to
identify those pages which are two links apart.
You can get from a page x to a page y by following exactly 2 links iff $\displaystyle R^2(x,y)$. Here $\displaystyle R^2=R\circ R$. This generalizes to n links.

3. Thansk for the swift reply.

JT