(Driving Directions: Example problem added -- Brian Thomas, Rhea week 3)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category:MA375]]
 +
[[Category:math]]
 +
[[Category:discrete math]]
 +
[[Category:lecture notes]]
 +
 +
=[[MA375]]: Lecture Notes=
 +
Fall 2008, Prof. Walther
 +
----
 +
== Choosing n fruits from r baskets, Stars and Bars, Kids and Chocolate, Driving Directions==
 +
----
 +
 
==The Overall Picture==
 
==The Overall Picture==
 
'''Theorem:''' The following are equal:
 
'''Theorem:''' The following are equal:
Line 8: Line 19:
  
 
==Choosing n fruits from r baskets==
 
==Choosing n fruits from r baskets==
'''Example:''' ???
+
'''Example: ''' Suppose there are 3 baskets with fruits(apples, oranges, pears), in how many ways can you choose a total of n fruits? ???
 +
 
 +
Answer:
 +
 
 +
Define:
 +
A: Apple    O:Orange      P:Pear      <math>B_1 ... B_n </math> : Baskets
 +
 
 +
When n=0, only 1 way, no fruits on any basket.
 +
 
 +
When n=1, A in <math>B_1</math>, O in <math>B_2</math>, P in <math>B_3</math>
 +
 
 +
When n=3, AAA in <math>B_1</math>, AAO in <math>B_2</math>, AAP in <math>B_3</math>, AOO in <math>B_4</math>, AOP in <math>B_5</math>, APP in <math>B_6</math>, OOO in <math>B_7</math>, OOP in <math>B_8</math>, OPP in <math>B_9</math>, PPP in <math>B_10</math>
 +
 
 +
Use traingular numbers and we can figure that, each fruit basket we take have ____ to a monomial in 3 variables of degree n.
 +
 
 +
** PLEASE CONTINUE... ADD some more.. I'm a bit lost when copying this note... **
  
 
==Stars and Bars==
 
==Stars and Bars==
Line 29: Line 55:
  
 
You start in the southwest corner, and want to get to the Northeast corner.  How many optimal routes could you take?
 
You start in the southwest corner, and want to get to the Northeast corner.  How many optimal routes could you take?
 +
  
 
'''Solution''': An optimal route would consist of the least number of streets one must travel.  In other words, one should only go north or east on roads, never south or west.  No matter which optimal path we take, then, we will end up traveling north 4 times and east 5 times.
 
'''Solution''': An optimal route would consist of the least number of streets one must travel.  In other words, one should only go north or east on roads, never south or west.  No matter which optimal path we take, then, we will end up traveling north 4 times and east 5 times.
Line 35: Line 62:
  
 
<math>{9 \choose 4}</math>
 
<math>{9 \choose 4}</math>
 +
----
 +
[[Main_Page_MA375Fall2008walther|Back to MA375, Fall 2008, Prof. Walther]]

Latest revision as of 07:18, 20 May 2013


MA375: Lecture Notes

Fall 2008, Prof. Walther


Choosing n fruits from r baskets, Stars and Bars, Kids and Chocolate, Driving Directions


The Overall Picture

Theorem: The following are equal:

  • The number of ways to pick n fruits from r types of fruit
  • The number of monomials in r variables of degree n
  • The number of arragnements of n "*"'s and r-1 "|"'s
  • $ {n+r-1 \choose r-1} $
  • The number of solutions to the equation $ x_1 + x_2 + \dots + x_r = n,\text{ where }x_i \in \mathbb{N} $

Choosing n fruits from r baskets

Example: Suppose there are 3 baskets with fruits(apples, oranges, pears), in how many ways can you choose a total of n fruits? ???

Answer:

Define: A: Apple O:Orange P:Pear $ B_1 ... B_n $ : Baskets

When n=0, only 1 way, no fruits on any basket.

When n=1, A in $ B_1 $, O in $ B_2 $, P in $ B_3 $

When n=3, AAA in $ B_1 $, AAO in $ B_2 $, AAP in $ B_3 $, AOO in $ B_4 $, AOP in $ B_5 $, APP in $ B_6 $, OOO in $ B_7 $, OOP in $ B_8 $, OPP in $ B_9 $, PPP in $ B_10 $

Use traingular numbers and we can figure that, each fruit basket we take have ____ to a monomial in 3 variables of degree n.

    • PLEASE CONTINUE... ADD some more.. I'm a bit lost when copying this note... **

Stars and Bars

Example: ???

Kids and Chocolate

Example: ???

Driving Directions

Example: Suppose we are in a city where a rectangular grid of streets looks as follows:

       _ _ _ _ _. <- Destination
 /\   |_|_|_|_|_|
 ||   |_|_|_|_|_|
North |_|_|_|_|_|
      |_|_|_|_|_|
You-> `

You start in the southwest corner, and want to get to the Northeast corner. How many optimal routes could you take?


Solution: An optimal route would consist of the least number of streets one must travel. In other words, one should only go north or east on roads, never south or west. No matter which optimal path we take, then, we will end up traveling north 4 times and east 5 times.

Consider encoding this route. For example, NNEEENNEE would mean, "Go north 2 blocks, then east 3 blocks, then north 2 blocks, then east 2 blocks." Since there will always be only norths and easts, we really only have to know where the norths are, and we can then fill in the easts. Thus, all we need to do is pick four spaces out of the nine possible to fill in the norths (e.g., _ _ _ _ _ _ _ _ _ -> N N _ _ _ N N _ _). How many ways can this be done?

$ {9 \choose 4} $


Back to MA375, Fall 2008, Prof. Walther

Alumni Liaison

Have a piece of advice for Purdue students? Share it through Rhea!

Alumni Liaison