Dynamic Programming Problems

Slides:



Advertisements
Similar presentations
Coloring Warm-Up. A graph is 2-colorable iff it has no odd length cycles 1: If G has an odd-length cycle then G is not 2- colorable Proof: Let v 0, …,
Advertisements

Lesson 6.4 Midpoint Formula & Partitions Concept: Partitions EQ: How do we partition a line segment in the coordinate plane? (G.GPE.6) Vocabulary: Midpoint,
Graphing the Set of All Solutions ~adapted from walch education.
> Find Birthday Matches by Month (see cards) > Find at least one common aspect that you have as birthday mates. We will share these with the other groups.
Check it out! : Simple Random Sampling. Players of a dice game roll five dice and earn points according to the combinations of numbers they roll.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
What is motion? Motion is the change in the position of an object. To describe the motion of an object we use terms like: Distance, displacement, speed,
Lesson 4-3 Example Example 1 Write 1.41, 0.55, and 1.01 in order from least to greatest. Check your answer by graphing the decimals on a number line.
Slide 1 Revenue Management Appendix 10A Revenue Management is the problem of the disappearing inventory. Managers must be flexible to change their predicted.
EXAMPLE 5 Graph real-world functions CABLE A cable company charges new customers $40 for installation and $60 per month for its service. The cost to the.
3.1 Solving equations by Graphing System of equations Consistent vs. Inconsistent Independent vs. Dependent.
3.3 Graphing and Solving Systems of Linear Inequalities
2.4 Equilibrium for Moving Objects.  Objects at rest are said to be in static equilibrium;  Objects moving at constant speed in a straight-line path.
Compare and Order Decimals
Example 2 Finding Absolute Value An eyeglass prescription is given as a positive or negative number. A prescription for a person who is farsighted is positive.
Do-Now On your notes worksheet!!! Graph: 3x + y = 6 m = b =
Solve > –2. Graph the solution. Solving Inequalities by Multiplying or Dividing COURSE 3 LESSON 2-7 p3p3 > –2 p3p3 (3) > –2(3)Multiply each side by 3.
Airplane Flight: X-Plane in the Classroom Four Forces Of Flight.
Computer Use During Class By L. Yates. Be Early Why? To get a computer The day’s lesson is so much easier when you are using a computer inside the classroom.
4-5 Inequalities (pages ) P6  Represent inequalities on a number line or a coordinate plane.
Probabilistic analysis
Network Diagram Prob 1 Activity Predecessor Duration (days) A None 2 B
Functions TEXTBOOK REFERENCE: 4-6.
Bell Ringer Nate bought a pair of glasses for $210. His insurance plan gave him a 20% discount. If tax is 5%, how much did he pay? Discount: $210 • 0.20.
Day 102 – Performing Operations with Radicals
Inequalities day 2.
Algebra II Explorations Review ( )
Solve Multi-Step Inequalities
Solving Compound Inequalities (5-4)
Warm Up Lesson Presentation Lesson Quiz
A way to detect a collision…

Birthday “Paradox” There are N people in a room.
Online Gifts Buy for wishes happy mother's day to yours choice and with happy gifts find here:
Chapter 14 Graphs and Paths.
Compound Inequalities
Section 2.8 and 3.3 Graphing Inequalities
סדר דין פלילי – חקיקה ומהות ההליך הפלילי
أنماط الإدارة المدرسية وتفويض السلطة الدكتور أشرف الصايغ
Dynamic Pricing Airplane example.
Compare and Order Decimals
Identifying Dependent and Independent Quantities

Activator Complete the table and write the function rule:
Lecture 4.1: Hash Functions: Introduction
The Birthday Paradox June 2012.
Dynamic Programming 1 Neil Tang 4/15/2008
Factored form.
Compound Inequalities and their Graphs
7.1 – Functions of Several Variables
Introduction to Functions
Functions and graphs Sec 7 1-C pg
4.3 – graphing relationships
Graphing Parametric Equations:
Finding the Distance Between Two Points
“Yesterday was a good day……” Journey 1979
Warm Up 2) Solve by factoring a) x2 + 10x + 9 b) 4x2 – 15x - 25
You must show all steps of your working out.
Question 1.
Equilibrium in the Market
Objective - To order whole numbers.
Day 9 Inequalities.
Lecture 4: Hash Functions
#1 #2 #3 Chapter 6 -3 Write an inequality for the sentence:
Line Graphs.
Notes 13-5: Conditional Probability
5-6 Graphing Linear Inequalities in the Coordinate Plane AGAIN!!
When Intuition Fails Us
Jeopardy Final Jeopardy Vocabulary Math PT Graphs VT Graphs Misc. $100
Monday, February 25, Solve and Graph Inequalities
Presentation transcript:

Dynamic Programming Problems Birthday Paradox

Birthday Paradox There are 365 days in a year (no leap years) You have N students in a classroom How many students would you need so that the probability of there being at least one pair of students that have the same birthday, is greater than 50% Well we know the answer is: At least 2 Not more that 365

It must be: Number of Students Probability of at least one match 1 2 1 2 1/365 3 (1/365) + [1 – (1/365)] * [ (2/365 ] N (prob match with N-1) + (prob no match) * (prob N will match other) 365

Shortest path example Graph coming soon…come back later

Seats on an Airplane 100 seats on a plane $59/seat and all sell  $5,900 and no empty seats $100/seat and 80 sell  $8,000 and 20 empty seats $200/seat and 50 sell  $10,000 and 50 empty seats $300/seat and 30 sell  $9,000 and 70 empty seats

Seats on an Airplane Suppose some customers would pay $299 but not $699 Some customers would pay $699 (or better $299) We would like to reserve a seat for everyone willing to pay $699 and sell the rest for $299. How many seats would be reserve for the $699 customers and the rest go to the $299 customers