Discrete Mathematical Structures - Homework11 | CS 173, Assignments of Discrete Structures and Graph Theory

Material Type: Assignment; Class: Discrete Structures; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Fall 2005;

Typology: Assignments

Pre 2010

Uploaded on 03/16/2009

koofers-user-56r
koofers-user-56r 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS173: Discrete Mathematical Structures
Fall 2005
Homework #11
Due 12/04/05, 8a
1. The Master Theorem (Rosen, p 430) states: Let f be an increasing function that
satisfies the recurrence relation
!
f(n)=a"f(n/b)+cnd
whenever
!
n=bk
, where k is a positive integer,
!
a"1
, b is an integer greater than
1, and c and d are real numbers with c positive and d nonnegative. Then
!
f(n)=
O(nd) if a<bd
O(ndlog n) if a=bd
O(nlogba) if a>bd
"
#
$
%
$
.
We will prove the Master Theorem by solving the following parts (some of the
answers can be found in your book. See exercises 29-33 on p 435).
a. Show that if
!
a=bd
and n is a power of b, then
!
f(n)=f(1) "nd+cndlogbn.
b. Use part a. to show that if
!
a=bd
, then f(n) is O(nd log n).
c. Show that if
!
a"bd
and n is a power of b, then
!
f(n)=C1nd+C2nlogba
,
where
!
C1=bdc/(bd"a)
and
.
d. Use part c. to show that if a < bd, then f(n)=O(nd).
e. Use part c. to show that if a > bd, then
!
f(n)=O(nlogba)
.
2. Determine whether the relation R on the set of all real numbers is reflexive,
symmetric, antisymmetric, and/or transitive, where (x,y) R if and only if
a. x + y = 0.
b. x = ± y.
c. x – y is a rational number.
d. x = 2y.
e. xy 0.
f. xy = 0.
g. x = 1.
h. x = 1 or y = 1.
3. Let R1 and R2 be the “divides” and “is a multiple of” relations on the set of all
positive integers, respectively. That is, R1 = {(a,b) | a divides b} and R2 = {(a,b) |
a is a multiple of b}. Find:
a. R1 R2,
pf2

Partial preview of the text

Download Discrete Mathematical Structures - Homework11 | CS 173 and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CS173: Discrete Mathematical Structures Fall 2005

Due 12/04/05, 8a^ Homework

  1. The Master Theorem (Rosen, p 430) states: Let satisfies the recurrence relation f be an increasing function that

!

whenever^ f^ ( n )^ =^ a^ "^ f^ ( n^ / b )^ +^ cnd !

n = bk , where k is a positive integer, !

1, and c and d are real numbers with c positive and^^ a^ "^1 d ,^ nonnegative. Then b^ is an integer greater than

f ( n ) =^ " #^ $ % $^ O O O ((( nnndd log^ )log^ b a (^) ) n ) ififif^ aaa^ <=>^ bbbddd. We will prove the Master Theorem by solving the following parts (some of th answers can be found in your book. See exercises 29-33 on p 435). e a. Show that if !

a = bd and n is a power of b, then !

b. Use part a. to show that if^ f^ ( n )^ =^ f^ (^1 )^ "^ nd^ +^ cnd^ log b^ n. !

c. Show that if^^ a^ =^ bd , then^ f(n)^ is^ O(nd^ log^ n). !

a " bd and n is a power of b, then !

where^^ f^ ( n )^ =^ C^1 nd^ +^ C^2 n log b^ a , !

C 1 = bd^ c /( bd^ " a )and !

d. Use part c. to show that if a < b^^ C^2 = d , then^ f^ (^1 )^ + f(n)=O(n^ bd^ c^ /( a^ " d^ ).bd^ ). e. Use part c. to show that if a > bd , then !

f ( n ) = O ( n log b^ a^ ).

  1. Determi symmetric, antisymmetric, and/or transitive, where (x,y)ne whether the relation R on the set of all real numbers is reflexive, ∈ R if and only if a. b. x + y = 0.x = ± y. c. d. xx = 2y. – y is a rational number. e. f. xyxy = 0. ≥ 0. g. h. x = 1.x = 1 or y = 1.
  2. Let R1 and positive integers, respectively. That is, R1 = {(a,b) | a divides b} and R2 = {(a,b) | R2 be the “divides” and “is a multiple of” relations on the set of all a is a multiple of b}. Find: a. R1 ∪ R2,

b. c. R1R1 ∩– R2,R2, d. e. R2R1 – ⊕ R1, R2.

  1. How many transitive a. n = 1? relations are there on a set with n elements if b. c. n = 2?n = 3?