6 Questions on Discrete Structures - Fall 2005 | 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-pxl-1
koofers-user-pxl-1 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS173: Discrete Mathematical Structures
Fall 2005
Homework bonus
Due 11/27/05, 8a
1. Prove the identity
!
i
k
"
#
$
%
&
'
i=k
n
(=
n+1
k+1
"
#
$
%
&
'
by induction.
2. Define recursively: T is a full binary tree. You will have to look up the definition
of “full binary tree,” which will involve understanding binary trees, which will
involve understanding trees.
3. Let A and B be finite sets. How many functions f are there from domain A to
codomain B so that the image of f consists of exactly two elements?
4. Suppose we have a sequence of Bernoulli trials with probability p of success on
each trial. If the random variable X is the number of successes in n trials, find the
expected value of X3. You may leave your answer in summation form.
5.
a. How many possible selections of two dozen jelly beans are there if they
come in 5 flavors: cherry, lemon, chocolate, blueberry, and mint?
b. How many if you dislike mint and will not take more than three mint jelly
beans?
6. Determine whether each of the following functions is O(n2), Ω(n2), Θ(n2), or none
of these.
a.
!
f(n)=n
2
"
#
$
%
&
'
.
b.
!
f(n)=nlog n
.
c.
!
f(n)=n2log n
.
d.
!
f(n)=n3if n is odd
0 if n is even
"
#
$
.

Partial preview of the text

Download 6 Questions on Discrete Structures - Fall 2005 | CS 173 and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CS173: Discrete Mathematical Structures Fall 2005

Homework bonus Due 11/27/05, 8a

  1. Prove the identity !

( i =^ n k^ " # $ k^ i % & '= " # $ n k^ ++^11 % & 'by induction.

  1. Define recursively: T is a full binary tree. You will have to look up the definition of “full binary tree,” which involve understanding trees. will involve understanding binary trees, which will
  2. Let A and B be finite sets. How many functions f are there from domain A to codomain B so that the image of f consists of exactly two elements?
  3. Suppose we have a sequence each trial. If the random variable X is the number of successes in n trials, find the expected value of X (^3). You may leave your answer in summation form. of Bernoulli trials with probability p of success on
  4. a. How many possible selections of two dozen jell come in 5 flavors: cherry, lemon, chocolate, blueberry, and mint?y beans are there if they b. How many if you dislike mint and will not take more than three mint jelly beans?
  5. Determine whether each of the following functions is O( of these. n^2 ), Ω( n^2 ), Θ( n^2 ), or none a. !

b.^^ f^ ( n )^ =^ "^ #^ $ n^2 %^ &^ '. !

c.^^ f^ ( n )^ =^ n^ log^ n. ! d.^^ f^ ( n )^ =^ n^2 log^ n. !

f ( n ) = " # $ n 03 ifif^ nn^ is oddis even.