integers. Even though the problem of
finding the maximum element in a
sequence is relatively trivial, it provides a
good illustration of the concept of an
algorithm. Also, there are many instances
whe
finite sets, then |A B| |A B|.
Determine when this relationship is an
equality. 11. Let A and B be sets in a finite
universal set U. List the following in order
of increasing size. a) |A|, |A B|, |A B
solution to the problem. Definiteness. The
steps of an algorithm must be defined
precisely. Correctness. An algorithm
should produce the correct output values
for each set of input values. Finiteness.
each, namely, 12 13 15 16 18 19 20 22.
Because 16 < 19 (comparing 19 with the
largest term of the first list) the search is
restricted to the second of these lists,
which contains the 13th through the
Show that 2 3 1 121 1 1 3 is the
inverse of 7 8 5 4 5 3 1 1 1 .
19. Let A be the 2 2 matrix A = a b c d .
Show that if ad bc = 0, then A1 =
d ad bc b ad bc c ad bc a ad bc
. 20. Let A = 1 2 1 3 . a
computer program in some programming
language that finds its values
uncomputable function: a function for
which no computer program in a
programming language exists that finds
its values continuum hyp
the defi- nition of the inverse image of a
set found in the preamble to Exercise 42,
both in Section 2.3. 16. Suppose that f is
a function from the set A to the set B.
Prove that a) if f is one-to-one
integers, that generate all the orderings of
a finite set, that find the shortest path
between nodes in a network, and for
solving many other problems. We will also
introduce the notion of an algorith
there are no integers left in the sequence.
The temporary maximum at this point is
the largest integer in the sequence. An
algorithm can also be described using a
computer language. However, when that
for |A B|, where A and B are sets. 4. a)
Define the power set of a set S. b) When is
the empty set in the power set of a set S?
c) How many elements does the power set
of a set S with n elements have?
third column of A? c) What is the second
row of A? d) What is the element of A in
the (3, 2)th position? e) What is At ? 2.
Find A + B, where a) A = 104 122 0
2 3 , B = 135 2 2 3 2 3 0 .
b) A = 1 05 6
(x) = x4/2 e) f (x) = 2x f ) f (x) = xx 3. Use
the definition of f (x) is O(g(x) to show
that x4 + 9x3 + 4x + 7 is O(x4). 4. Use the
definition of f (x) is O(g(x) to show that
2x + 17 is O(3x ). 5. Sh
Algorithms Introduction There are many
general classes of problems that arise in
discrete mathematics. For instance: given
a sequence of integers, find the largest
one; given a set, list all its subse
25. Use Exercises 18 and 24 to solve the
system 7x1 8x2 + 5x3 = 5 4x1 + 5x2
3x3 = 3 x1 x2 + x3 = 0 26. Let A = 1 1 0
1 and B = 0 1 1 0 . Find a) A B. b) A B.
c) A B. 27. Let A = 101 110 001 and
B = 0
Algorithms One useful fact is that the
leading term of a polynomial determines
its order. For example, if f (x) = 3x5 + x4 +
17x3 + 2, then f (x) is of order x5. This is
stated in Theorem 4, whose pro
x (ceiling function): the smallest integer
greater than or equal to x partial function:
an assignment to each element in a subset
of the domain a unique element in the
codomain sequence: a function wi
A B (the difference of A and B): the set
containing those elements that are in A
but not in B A (the complement of A): the
set of elements in the universal set that
are not in A A B (the symmetric
dif
is a real number, then x + n m = x + n m .
27. Prove that if m is a positive integer
and x is a real number, then mx=x + x + 1
m + x + 2 m + + x + m 1 m . 28. We
define the Ulam numbers by setting u1
updated to the value of a term if the term
exceeds the maximum of the terms
previously examined. This (informal)
argument shows that when all the terms
have been examined, max equals the value
of the
positive integers to the set of positive
integers that is both one-to-one and onto.
d) Give an example of a function from the
set of positive integers to the set of
positive integers that is one-to-on
from the same universal set, find A B, A
B, A B, and A + B (see preamble to
Exercise 61 of Section 2.2). 3. Given fuzzy
sets A and B, find A, A B, and A B (see
preamble to Exercise 63 of Section 2.2)
elements a1, a2,.,an, or determine that it
is not in the list. The solution to this
search problem is the location of the term
in the list that equals x (that is, i is the
solution if x = ai) and is 0
part of the title of his book Kitab al-jabr
wal muquabala. This book was translated
into Latin and was a widely used
textbook. His book on the use of Hindu
numerals describes procedures for
arithmetic
can be shown to be transcendental and
for which famous numbers is it still
unknown whether they are
transcendental? 6. Expand the discussion
of the continuum hypothesis in the text.
P1: 1 CH02-7T Rose
Let Hn be the nth harmonic number Hn =
1 + 1 2 + 1 3 + 1 n . Show that Hn is
O(log n). [Hint: First establish the
inequality n j=2 1 j < n 1 1 x dx by
showing that the sum of the areas of the
rectangl
term algorithm is a corruption of the
name al-Khowarizmi, a mathematician of
the ninth century, whose book on Hindu
numerals is the basis of modern decimal
notation. Originally, the word algorism
was
6.) 4. Calculate the number of onto
functions from a set S to a set T , where S
and T are finite sets of various sizes. Can
you determine a formula for the number
of such functions? (We will find such
the list, which is a1, a2,.,am. The search
has now been restricted to a list with no
more than n/2 elements. (Recall that x is
the smallest integer greater than or equal
to x.) Using the same procedur
4 matrix. Determine which of the
following products are defined and find
the size of those that are defined. a) AB b)
BA c) AC d) CA e) BC f ) CB 11. What do
we know about the sizes of the matrices A
R|=|R|. [Hint: Use the SchrderBernstein
theorem to show that |(0, 1) (0, 1)| = |
(0, 1)|. To construct an injection from (0,
1) (0, 1) to (0, 1), suppose that (x, y)
(0, 1) (0, 1). Map (x, y) to the