Homework 8
CS 280 - Spring 2002
Due: Friday, April 19
Part A
- Consider the set of strings using letters of the alphabet. For each
of the relations below, determine if the relation is reflexive, irreflexive
(defined on page 382), symmetric, antisymmetric, and/or transitive.
- {(a, b) | a and b have no vowels in common}
- {(a, b) | a and b have different lengths}
- {(a, b) | a and b end with the same letter}
- {(a, b) | every letter in a also appears in b} [Don't worry about
number of occurrences of each letter; in other words, the relation
includes (xx, x).]
- R = {(a, a), (a, b), (b, c), (c, b), (c, c), (c, d)} is a relation on A =
{a, b, c, d}.
- What is the symmetric closure of R?
- What is the transitive closure of R?
- What is the symmetric, transitive closure of R?
- What is the reflexive, symmetric closure of R?
Part B
- Consider the following Hasse diagram.
a
/ \
b c
/ \ / \
d e f
\ / \ /
g h
- Which elements are maximal?
- Which are minimal?
- Find the upper bounds of {d, e}. Is there a least upper
bound? What is it?
- Find the lower bounds of {b, c}. Is there a greatest lower
bound? What is it?
- Consider the following Hasse diagram. It's the same as the
preceding diagram except that there is no node e; instead edges (from g to c
and from h to b) cross at the position formerly occupied by e.
a
/ \
b c
/ \ / \
d f
\ / \ /
g h
- Find the lower bounds of {b, c}. Is there a greatest lower
bound? What is it?
- Find the upper bounds of {g, h}. Is there a least upper bound?
What is it?
- Find the lower bounds of {d, c}. Is there a greatest lower
bound? What is it?
- Find the lower bounds of {a, b}. Is there a greatest lower
bound? What is it?
Part C
- Consider two relations R and S on some set A. Define two new
relations T and U on A.
T = {(a, b) | (a, b) in R and (a, b) in S}
U = {(a, b) | (a, b) in R or (a, b) in S}
- Suppose R and S are equivalence relations. Is T an equivalence
relation? Is U an equivalence relation? Provide a either a proof
or a counterexample for each question.
- Suppose R and S are partial orders. Is T a partial order?
Is U a partial order? Provide either a proof or a counterexample
for each question.
- Suppose we build a simple graph on 10 vertices by flipping an unbiased
coin to determine which edges are present. In other words, each
possible edge e appears with probability 1/2.
- What is the expected number of edges for such a graph?
- What is the expected degree of a vertex in this graph?
This question is not part of the homework assignment, but it's interesting
to think about: What is the probability that the resulting graph in problem
6 has a subgraph which
is a triangle?