Docsity

COT 3100H Spring 2003 Homework Assignments for Counting - Prof. Arup Guha, Assignments of Computer Science

Toggle sidebar
bg1
COT 3100H Spring 2003 Homework assignments: Counting
Assignment #1: Given Thursday, 1/9 Due Tuesday, 1/14
Book Problems: ppg. 25-6 #8, #18
Other Problem: Given that work is m blocks north and n blocks east of home,
and that all streets are on a grid system, how many ways can
one walk from home to work only walking north and east?
Assignment #2: Given Tuesday, 1/14 Due Thursday 1/16
Book Problems: pg. 27 #30, #32, pg. 35 #12b, pg. 45 #21
Assignment #3: Given Thursday, 1/16 Due Tuesday 1/21
Taken from the last foundation exam:
a) An ant walks along the x-axis in discrete one unit steps. Initially, the ant starts at x = 0.
At each time step, the ant either walks one unit in the direction of the positive x-axis, OR
one unit in the direction of the negative x-axis. (Thus, at the first time step, the ant can go
to either x = 1 or x = 1.) After 10 time steps, the ant is located at x = 4. How many
different paths could the ant have taken?
b) For how many of the paths described in part a does the ant NEVER go through x = 1.
(Hint: The ant MUST go to the right for this to occur. From there, count the number of
paths that the ant could go through x = 1 and still end up at x = 4.)
Although I will not give any more problems, I want to make sure you guys have seen
enough counting questions. So, please peruse the notes from lecture 12 on the
following page: http://www.cs.ucf.edu/courses/cot3100.fall02/arup/lectures/

Partial preview of the text

Download COT 3100H Spring 2003 Homework Assignments for Counting - Prof. Arup Guha and more Assignments Computer Science in PDF only on Docsity!

COT 3100H Spring 2003 Homework assignments: Counting Assignment #1: Given Thursday, 1/9 Due Tuesday, 1/ Book Problems: ppg. 25-6 #8, # Other Problem: Given that work is m blocks north and n blocks east of home, and that all streets are on a grid system, how many ways can one walk from home to work only walking north and east? Assignment #2: Given Tuesday, 1/14 Due Thursday 1/ Book Problems: pg. 27 #30, #32, pg. 35 #12b, pg. 45 # Assignment #3: Given Thursday, 1/16 Due Tuesday 1/ Taken from the last foundation exam: a) An ant walks along the x-axis in discrete one unit steps. Initially, the ant starts at x = 0. At each time step, the ant either walks one unit in the direction of the positive x-axis, OR one unit in the direction of the negative x-axis. (Thus, at the first time step, the ant can go to either x = 1 or x = 1.) After 10 time steps, the ant is located at x = 4. How many different paths could the ant have taken? b) For how many of the paths described in part a does the ant NEVER go through x = 1. (Hint: The ant MUST go to the right for this to occur. From there, count the number of paths that the ant could go through x = 1 and still end up at x = 4.) Although I will not give any more problems, I want to make sure you guys have seen enough counting questions. So, please peruse the notes from lecture 12 on the following page: http://www.cs.ucf.edu/courses/cot3100.fall02/arup/lectures/