Senior Q2 Shy Tortoise. Sample >>> ><> <><> <><>> >> 13431.

Slides:



Advertisements
Similar presentations
Find the solutions. Find the Vertex and Max (-1, 0) (5, 0) (2, 10)
Advertisements

Is the shape below a function? Explain. Find the domain and range.
DO NOW: Find where the function f(x) = 3x4 – 4x3 – 12x2 + 5
Two topics in R: Simulation and goodness-of-fit HWU - GS.
Stem and leaf diagrams and box plots Statistics. Draw a stem and leaf diagram using the set of data below
Line Balancing Problem A B C 4.1mins D 1.7mins E 2.7 mins F 3.3 mins G 2.6 mins 2.2 mins 3.4 mins.
Lecture 7 Curve Turn.
Session Countdown Timer Select a time to count down from the clock above 60 min 45 min 30 min 20 min 15 min 10 min 5 min or less TURN SOUND ON.
Chapter 6: The Standard Deviation as a Ruler and the Normal Model.
Stressful Life Events and Its Effects on Educational Attainment: An Agent Based Simulation of the Process CS 460 December 8, 2005.
Chapter Descriptive Statistics 1 of © 2012 Pearson Education, Inc. All rights reserved.
Normal Distribution (Topic 12)
Chapter 4: Probability (Cont.) In this handout: Total probability rule Bayes’ rule Random sampling from finite population Rule of combinations.
1 Order Statistics on Binary Trees Goal: find the k th element (in order) of a binary tree where 1
Garmin GPS III Plus Data Collection. Objectives Collect: - Waypoints -Average Position Waypoints -Reference Waypoints - Multiple Tracks in One Track Log.
Presentation Timer Select a time to count down from the clock above 60 min 45 min 30 min 20 min 15 min 10 min 5 min or less.
Presentation Timer Select a time to count down from the clock above 60 min 45 min 30 min 20 min 15 min 10 min 5 min or less.
Calculator Lab Overview Note: Slides Updated 10/8/12
 Methods of abortion  Statistics  Possible solutions.
Silent Classroom Timer
Conditional and Cross-Sheet Formulas William Klingelsmith.
Copyright © 2015, 2011, 2008 Pearson Education, Inc. Chapter 6, Unit B, Slide 1 Putting Statistics to Work 6.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 7.3.
Lesson 4-7 Example Example 1 Find 4.32 × Multiply the factors, ignoring the decimal points for now. 432 × 6 = 2592.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.17:
Decimals. Addition & Subtraction Example Find: Solution: = = =18.32 – =
Copyright © 2011 Pearson Education, Inc. Putting Statistics to Work.
Winning Strategies of Games Played with Chips. I got a interesting game Now we show the game P 1 =4 P 2 =6 P 3 =8 Rule 1: Two players.
5.8-Graphs of Polynomials 1. Plot x-intercepts (solutions: opposites of factors) 2. Decide if graph touches or goes through at each zero 3. Determine LEFT.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 8.1.
MEASURES OF DISPERSION 1 Lecture 4. 2 Objectives Explain the importance of measures of dispersion. Compute and interpret the range, the mean deviation,
Clipping. Before clipping… After clipping… Point Clipping Display P = (x, y) if xw min
Comparing, Shifting & Scaling Graphs.
TRUE FALSE QUIZCORE 3 & 4 Round 1 Round 2Round TOTAL OVERALL SCORE
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 7.2.
 What were some major points to the compromise?  What was left out?  In your opinion is this a good deal or not? Why or why not.
Interval Trees Marco Gallotta. Problem ● Given a collection of items i, each with value V i ● Want to answer many queries of the form: How many items.
Math TLC (Math 010 and Math 110) Work To Show On Gateway Problems
Putting Statistics to Work
Stem and leaf diagrams and box plots
What’s cheating and what is not?
HKOI 2008 FINAL EVENT Q3 STORAGE BOX
Osmosis Lab Any questions?. Osmosis Lab Any questions?
BACK SOLUTION:
Standard and Scientific Notation
Tagging in T(b) (I) Generated 1M events of e + Pb208 collisions at 10  40 GeV/n with 1 < Q2 < 20, 0.3 < y < 0.95, parameter settings tuned by Mark, genShd.
Total Number of New Faculty and Faculty that Left,
Higher Supported Study
Math Talk: Mental computation
Add Subtract Positive Negative integers
Program Content Day 1 Day 2 1. Introduction to Six Sigma Morning Break
15 seconds left 30 seconds left 3 minutes left 2 minutes left 1 minute
Distribution of the Sample Proportion
Lesson 1 Adding Integers.
Graphing Solutions of Trig Functions
Stationary Point Notes
Query Functions.
How this works… Algebra 2 HSAPers
÷ 5 = 29 How many 5s are there in 1? Great!
÷ 2 = 24 How many 2s are there in 4?
Math 1.
Aggregate Functions.
C.2.10 Sample Questions.
Flashback Calculate the solutions without a calculator.
C.2.8 Sample Questions.
C.2.8 Sample Questions.
Maximum and Minimum Points
Sec 4.3: HOW DERIVATIVES AFFECT THE SHAPE OF A GRAPH
Add and Subtract Positive & Negative Integers
Presentation transcript:

Senior Q2 Shy Tortoise

Sample >>> ><> <><> <><>> >> 13431

Statistic Max : 60 Min : 0 Mean : 30 Surprisingly no one get full mark, or even 75%.

Simulation 30% while not in order find first ‘<‘, say s[i] ++count[i – 1] ++count[i] swap(s[i – 1], s[i]) A lot of work is done repeatedly (find first ‘<‘).

Simulation 50% (Mode) while not in order t = s for each ‘ ’ set t[i – 1] = ‘ ’ ++count[i – 1] ++count[i] s = t

Finding direction only - 50% Key observation: number of ‘>’/’ ’. count total number of ‘ ’

75% Combine the two 50% solution. Simulation is too slow but is able to count. Counting is fast but unable to count. if n <= 5000 simulation else counting

Full solution Consider tortoise ending with ‘<‘. Observation: the tortoise need to turn around only if its left have some ‘>’. More, each ‘>’ contributes 2 turns.

Full solution (cont.) e.g. >>><< Consider the second tortoise. It needs 1 turn to make it correct. A ‘>’ in its left contributes 2 more turns. Thus count[2] = 3.

Full solution (cont.) set left[1] = 0 for i = 2 to n if s[i – 1] = ‘>’ left[i] = left[i – 1] + 1 else left[i] = left[i – 1] for i = 1 to n count[i] = 2*left[i] if s[i] = ‘>’ ++count[i]