0% found this document useful (0 votes)
67 views3 pages

MH 1301 Discrete Mathematics

This document contains 7 questions regarding discrete mathematics concepts like counting, permutations, combinations, and recurrence relations. Question 1 asks about counting permutations and combinations with repetition. Question 2 involves counting arrangements of indistinguishable and distinguishable objects on shelves. Question 3 provides a recurrence relation for counting binary strings without consecutive 0s. Question 4 gives a recurrence for a mixing problem. Question 5 involves tiling a hallway with different tile types. Questions 6-7 generalize this to counting ternary strings without consecutive pairs.

Uploaded by

Qi Su
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views3 pages

MH 1301 Discrete Mathematics

This document contains 7 questions regarding discrete mathematics concepts like counting, permutations, combinations, and recurrence relations. Question 1 asks about counting permutations and combinations with repetition. Question 2 involves counting arrangements of indistinguishable and distinguishable objects on shelves. Question 3 provides a recurrence relation for counting binary strings without consecutive 0s. Question 4 gives a recurrence for a mixing problem. Question 5 involves tiling a hallway with different tile types. Questions 6-7 generalize this to counting ternary strings without consecutive pairs.

Uploaded by

Qi Su
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

MH 1301 Discrete Mathematics

Assignment 4

Question 1
1. In how many different ways can five elements be selected in order from
a set with three elements when repetition is allowed ?

2. How many ways are there to select five unordered elements from a set
with three elements when repetition is allowed ?

3. How many strings of six letters are there (there are 26 letters) ?

4. How many ways are there to assign three jobs to five employees if each
employee can be given more than one jobs ?

Question 2

How many ways can n books be placed on k distinguishable shelves

1. if the books are indistinguishable copies of the same title?

2. if no two books are the same, and the positions of the books on the
shelves matter?

3. if no two books are the same, the positions of the books on the shelves
do not matter, and each shelf has exactly n/k books (assuming that n
is a multiple of k)?

Question 3

A binary string is a string containing only 0s and 1s.

1
1. find a recurrence relation for the number of bit strings of length n that
contain two consecutive 0s

2. what are the initial conditions ?

3. find the answer when n = 4.

Question 4

Bottle T has 4 litres of tea and bottle C has 4 litres of coffee. In each step
you pour 1 litre of liquid from bottle T into bottle C, stir, pour back 1 litre
of liquid from bottle C into bottle T, and stir again. (This is a recipe for
Kopi Cham.) Let f (n) be the amount of coffee in bottle T after n steps.

1. Calculate the values f (0), f (1), and f (2).

2. Write down the recurrence formula for f (n).

3. Solve the recurrence from part (2).

4. What is the limiting value of f (n) as n approaches infinity?

Question 5

You need to tile a n × 1 hallway with unlimited supply of 1 × 1 red tiles, 2 × 1


red tiles, and 2 × 1 blue tiles. Write down the recurrence formula and initial
conditions for the number of ways to tile:

1. A n × 1 hallway for which you are allowed to use all types of tiles.

2. A n × 1 hallway for which you are allowed to use all types of tiles, but
no two red tiles are consecutive.

2
Question 6

A ternary string is a string containing only 0s, 1s, and 2s.

1. find a recurrence relation for the number of ternary strings of length n


that do not contain two consecutive 0s.

2. what are the initial conditions ?

3. find the answer when n = 4.

Question 7 (hard)

Re-solve all the subquestions in Question 6, if the restriction is changed to


“the string do not contain two consecutive 0s or two consecutive 1s”.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy