ผลต่างระหว่างรุ่นของ "01204211/homework5 counting 2"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
 
(ไม่แสดง 6 รุ่นระหว่างกลางโดยผู้ใช้คนเดียวกัน)
แถว 3: แถว 3:
 
'''Due:''' ''19 Oct 2015''
 
'''Due:''' ''19 Oct 2015''
  
'''H.1'''  
+
'''H.1''' I have 2 pairs of blue socks, 3 pairs of red socks, and 4 pairs of white socks.
 +
 
 +
(a) How many single socks do I need to pick from the drawer so that I have at least one pair of the same color.
 +
 
 +
(b) How many single socks do I need to pick from the drawer so that I have at least one pair of different colors.
 +
 
  
 
'''H.2''' How many anagrams can you make from the word INNOVATION?
 
'''H.2''' How many anagrams can you make from the word INNOVATION?
  
'''H.3''' (LPV-3.4.1) In how many ways can you distribute all <math>n</math> pennies to <math>k</math> children if each child is supposed to get at least 2?
 
  
'''H.4''' (LPV-3.6.3) Prove the following identity:
+
'''H.3''' How many sorted lists of integer of length <math>k</math> consisting only integers from <math>1</math> to <math>n</math> are there?  (Note that each integer can appear many times in the list. For example, when <math>k=2</math> and <math>n=3</math>, there are 6 of them (i.e.: 1,1; 2,2; 3,3; 1,2; 1,3; and 2,3)).
 +
 
 +
 
 +
'''H.4''' (LPV-3.4.1) In how many ways can you distribute all <math>n</math> pennies to <math>k</math> children if each child is supposed to get at least 2?
 +
 
 +
 
 +
'''H.5''' (LPV-3.6.3) Prove the following identity:
  
 
<center>
 
<center>
แถว 18: แถว 28:
 
</center>
 
</center>
  
'''H.5''' (LPV-3.8.8) Prove the following identity
+
 
 +
'''H.6''' (LPV-3.8.8) Prove the following identity
  
 
<center>
 
<center>
แถว 25: แถว 36:
 
</math>
 
</math>
 
</center>
 
</center>
 +
 +
 +
'''H.7''' In a village, there are <math>n</math> houses built along a single road.  They plan to plant gardens in front of the houses; therefore they have to choose a set of houses to host the gardens.  Since they do not want to plant too many gardens, they do not want to have two gardens on consecutive houses.  In how many ways can they choose a set of houses such that no two consecutive houses are in the set?  (It is possible that, in the end, they do not plant any garden at all.)
 +
 +
For example, if we have 3 houses these are the 5 ways to choose houses.  (* is chosen; o is not)  The first example does not choose any houses.
 +
 +
1 2 3
 +
-----
 +
o o o
 +
* o o
 +
* o *
 +
o * o
 +
o o *
 +
 +
 +
'''H.8'''  You want to tile a walk way of length <math>n</math>.  The width of the walk way is 1 unit.  You have tiles of size 1x1, 2x1 and 3x1.  In how many ways can you do that?
 +
 +
Let <math>W_n</math> be the number of ways you can tile the walk way of length <math>n</math> with these tiles.
 +
 +
(a) Specify the recurrence for <math>W_n</math>.
 +
 +
(b) Find the explicit form of <math>W_n</math>.  (The details for the Fibonacci sequence will be available on the slide soon.)

รุ่นแก้ไขปัจจุบันเมื่อ 01:35, 4 ตุลาคม 2558

This is part of 01204211-58

Due: 19 Oct 2015

H.1 I have 2 pairs of blue socks, 3 pairs of red socks, and 4 pairs of white socks.

(a) How many single socks do I need to pick from the drawer so that I have at least one pair of the same color.

(b) How many single socks do I need to pick from the drawer so that I have at least one pair of different colors.


H.2 How many anagrams can you make from the word INNOVATION?


H.3 How many sorted lists of integer of length consisting only integers from to are there? (Note that each integer can appear many times in the list. For example, when and , there are 6 of them (i.e.: 1,1; 2,2; 3,3; 1,2; 1,3; and 2,3)).


H.4 (LPV-3.4.1) In how many ways can you distribute all pennies to children if each child is supposed to get at least 2?


H.5 (LPV-3.6.3) Prove the following identity:


H.6 (LPV-3.8.8) Prove the following identity


H.7 In a village, there are houses built along a single road. They plan to plant gardens in front of the houses; therefore they have to choose a set of houses to host the gardens. Since they do not want to plant too many gardens, they do not want to have two gardens on consecutive houses. In how many ways can they choose a set of houses such that no two consecutive houses are in the set? (It is possible that, in the end, they do not plant any garden at all.)

For example, if we have 3 houses these are the 5 ways to choose houses. (* is chosen; o is not) The first example does not choose any houses.

1 2 3
-----
o o o
* o o
* o *
o * o
o o *


H.8 You want to tile a walk way of length . The width of the walk way is 1 unit. You have tiles of size 1x1, 2x1 and 3x1. In how many ways can you do that?

Let be the number of ways you can tile the walk way of length with these tiles.

(a) Specify the recurrence for .

(b) Find the explicit form of . (The details for the Fibonacci sequence will be available on the slide soon.)