CMSC250, Spring 2004
Homework 14
Never due. Use this for practice.
- How many binary relations are there from a set with
elements to a set with
elements?
- Answer:
- Determine whether each of the following relations are reflexive, symmetric, transitive, antisymmetric
or none of these. Justify each answer with a proof or counterexample.
is the ``divides'' relation on
: for all integers
and
,
.
- Answer:
is reflexive since any integer divides itself.
is not symmetric since, for example,
but
.
is transitive. Proof:
Let
,
, and
be arbitrary integers. Assume
and
.
By the definition of divides,
such that
and
.
By substitution,
. And since
by closure of
under
multiplication,
by definition of divides.
Therefore,
is transitive by the definition of transitive.
is not antisymmetric since, for example,
and
, but
.
- Let
and
be the power set of
. A binary relation # is
defined on
as follows: for all
,
.
- Answer:
- # is reflexive since given any
,
.
- # is symmetric since given any
, if
then
.
- # is transitive since given any
, if
and
, then
by transitivity of equals.
- # is not antisymmetric since
and
, but
.
- Let
and
be the power set of
. A binary relation
is
defined on
as follows: for all
,
.
- Answer:
is not reflexive since
.
is not symmetric since
, but
.
is transitive since given any
, if
and
, then
by transitivity of less than.
is antisymmetric since given any
, if
and
, then
. This may seem silly, since there are no possible sets such that their sizes are both
less than and greater than each other. However, this fact makes the implication vacuously true --
we can't find a counterexample, so it has to be true!
- Let
and
be the power set of
. A binary relation
is
defined on
as follows: for all
,
.
- Answer:
is not reflexive since
.
is symmetric since given any
, if
, then
because
is symmetric.
is not transitive since, for example,
, and
, but
.
is not antisymmetric since, for example,
and
, but
.
- Let
be the set of all boolean formulas in three variables
and
. Define
to be the ``implies'' relation on
:
for all boolean statements
and
in
,
is true
.
- Answer:
is reflexive since given any boolean formula
,
is true,
which means
is true.
is not symmetric since, for example,
is true, but
is not true.
is transitive since, given any boolean formulas
and
, if
is true
and
is true, then
is true by hypothetical syllogism.
is not antisymmetric since, for example,
is true, and
is true,
but
. The two formulas are equivalent, but not equal.
- Note: there may be other possible answers besides the ones given here.
Let
. For each part, define a binary relation
on set
so that
is
- reflexive and symmetric, but not transitive.
- Answer:
.
- symmetric and transitive, but not reflexive.
- Answer:
.
- reflexive, symmetric, transitive, and antisymmetric.
- Answer:
OR
.
- Let
be the relation on
defined as follows:
for all
- Prove
is an equivalence relation.
- Answer: We need to show
is reflexive, symmetric, and transitive.
- Reflexive: Let
be an arbitrary real number. Since
, and 0 is an integer,
.
Therefore,
is reflexive by the definition of reflexive.
- Symmetric: Let
and
be arbitrary reals such that
. Therefore,
. Since
is an integer,
we can write
for some integer
. Therefore,
, and
is an integer
by closure of
under negation, which means
. So we proved
. Therefore,
is symmetric by the definition of symmetric.
- Transitive: Let
be arbitrary reals such that
and
. Therefore,
such that
and
. Adding these two equations together, we obtain
. Since
by closure of
under addition, we know that
. So we
showed
. Therefore,
is transitive by the definition of transitive.
- Describe the equivalence classes of
.
- Answer: There is one equivalence class for each real number in the interval
. For each real number
,
. That is, given a real number
, the equivalence class for
is the set of all real numbers that can be obtained by adding any integer (positive, negative, or zero) to
.
- Let
, and let the binary relation
on
be defined
as follows:
(250, 330)
(250, 351)
,
,
.
- Can you figure out what relation
represents?
- Answer:
represents the direct prerequisites for computer science classes at UMD.
- Write
in matrix form.
- Answer:
| |
106 |
114 |
214 |
250 |
311 |
330 |
351 |
| 106 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
| 114 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
| 214 |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
| 250 |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
| 311 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
| 330 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
| 351 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
- Draw the directed graph for
.
- Write the transitive and reflexive closure of
in matrix form, call this new
relation
. Check that
is now a partial order relation.
- Answer:
| |
106 |
114 |
214 |
250 |
311 |
330 |
351 |
| 106 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
| 114 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
| 214 |
0 |
0 |
1 |
0 |
1 |
1 |
1 |
| 250 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
| 311 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
| 330 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
| 351 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
- Draw the Hasse diagram for
.
- Find the least, minimal, greatest, and maximal element(s) for
if they exist.
- Answer:
- Least element: none.
- Minimal elements: 106, 250.
- Greatest element: none.
- Maximal elements: 330, 311, 351.
This document was generated using the
LaTeX2HTML translator Version 2002 (1.62)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -split 0 -nonavigation -antialias_text -antialias hw14ans
The translation was initiated by Phillip Kirlin on 2004-05-10
Phillip Kirlin
2004-05-10
Web Accessibility