Getting Started with a Problem

Slides:



Advertisements
Similar presentations
Sudoku Puzzles.
Advertisements

SEQUENCES and INFINITE SERIES
Getting Started with a Problem “Eighty percent of success is showing up.” –Woody Allen “Success is 1% inspiration and 99% perspiration.” – Thomas Edison.
One very important thing to remember when studying for a test is not to over study. That's right, there is such a thing as studying too much (but this.
AIR NAVIGATION Part 3 The 1 in 60 rule.
Unit 6: Scale Factor and Measurement
Computational problems, algorithms, runtime, hardness
Principles of Teamwork
Lesson 4: Percentage of Amounts.
Algebra Problems… Solutions
Scientific Experiment Erick Mass Center Effect. Introduction 0 Hello! This is my process proposing an experiment. I am going to explain it step by step.
Getting Started with a Problem “Eighty percent of success is showing up.” –Woody Allen “Success is 1% inspiration and 99% perspiration.” – Thomas Edison.
Translating Problems into Equations and Solutions
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Developing Mathematical Thinkers
Measured & counted numbers When you use a measuring tool to determine a quantity such as your height or weight, the numbers you obtain are called measured.
Dynamic Programming. Well known algorithm design techniques:. –Divide-and-conquer algorithms Another strategy for designing algorithms is dynamic programming.
Creating Mathematical Conversations using Open Questions Marian Small Sydney August, 2015 #LLCAus
Linear Equations and Inequalities. Much education today is monumentally ineffective. All too often we are giving young people cut flowers when we should.
1 Section 5.5 Solving Recurrences Any recursively defined function ƒ with domain N that computes numbers is called a recurrence or recurrence relation.
Integrals  In Chapter 2, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.  In much the.
Units to read: 14, 15, 16, 17,18. Mass and Inertia Mass is described by the amount of matter an object contains. This is different from weight – weight.
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
Scale Factor and the relationship to area and volume GLE SPI:
Math 104 Calculus I Part 6 INFINITE SERIES. Series of Constants We’ve looked at limits and sequences. Now, we look at a specific kind of sequential limit,
Erdal Kose CC30.10 These slides are based of Prof. N. Yanofsky Lecture notes.
Getting Started with a Problem “Eighty percent of success is showing up.” –Woody Allen To successfully solve any problem, the most important step is to.
UNIT 5.  The related activities of sorting, searching and merging are central to many computer applications.  Sorting and merging provide us with a.
Reactive and Output-Only HKOI Training Team 2006 Liu Chi Man (cx) 11 Feb 2006.
Week 12 - Friday.  What did we talk about last time?  Finished hunters and prey  Class variables  Constants  Class constants  Started Big Oh notation.
Unit 1 Notes The Metric System Easier to use because it is a decimal system. Every conversion is by some power of 10. A metric unit has two parts. A.
Algorithms CS280 – 10/20/05. Announcement  Part 1 of project 2 due.  Read chapters 10, 7 for this unit  Tuesday we will also be in the classroom We.
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
Today: (Ch. 3) Tomorrow: (Ch. 4) Apparent weight Friction Free Fall Air Drag and Terminal Velocity Forces and Motion in Two and Three Dimensions.
EOG Strategies! Take your time and do your best… I know that each one of you can achieve success!
2.1 Rates, Ratios, and Proportions EQ: How can I use units to understand problems and guide the solution of proportions?
1 Section 5.1 Analyzing Algorithms Let P be a problem and A an algorithm to solve P. The running time of A can be analyzed by counting the number of certain.
Algebraic Expressions Writing expressions. Using letter symbols for unknowns In algebra, we use letter symbols to stand for numbers. These letters are.
Advanced Algorithms Analysis and Design
Hidden Slide for Instructor
Attend to Precision Introduction to Engineering Design
Week 9 - Monday CS 113.
What is Health? Peer Pressure Self Esteem Decision Making and
I Can Solve Problems Using Scale Drawings!
Chapter 4: Design and Problem Solving
How Many Ways Can 945 Be Written as the Difference of Squares?
Unit 1 - Introduction to Matter
Getting Started with a Problem
AP CSP: Bytes, File Sizes, and Text Compression
Is There Something to CS Theory?
CHAPTER 9 Testing a Claim
Fermi Questions Enrico Fermi.
Objective of This Course
CHAPTER 9 Testing a Claim
Fry Word Test First 300 words in 25 word groups
CHAPTER 9 Testing a Claim
Warm up: What is the scientific method? What is it used for?
EOG Strategies! Take your time and do your best… I know that each one of you can achieve success! 
Topic 1: Problem Solving
CPS 173 Computational problems, algorithms, runtime, hardness
CHAPTER 9 Testing a Claim
Second Grade Sight Words
Scale Factor and the relationship to area and volume
CHAPTER 9 Testing a Claim
Sudoku Puzzles.
I believe the reason students have difficulty learning algebra and that most people have trouble doing math word problems is that although children are.
CHAPTER 9 Testing a Claim
The Pigeonhole Principle
CHAPTER 9 Testing a Claim
Lecture 6 - Recursion.
Presentation transcript:

Getting Started with a Problem “Eighty percent of success is showing up.” Woody Allen “Success is 1% inspiration and 99% perspiration.” – Thomas Edison. To successfully solve any problem, the most important step is to get actively involved. The Principle of Intimate Engagement: You must commit to the problem “Roll up your sleeves” “Get your hands dirty.”

Easy vs. Hard Problems Exercises: (e.g. compute 10! without a calculator) Easy problems: See the answer Medium problems: See the answer once you engage Hard problems: You need strategies for coming up with a potential solution, sometimes for even getting started. Open-ended problems are often like this. Often, multiple possible solutions, you need a strategy to choose “the best” one. (e.g. Estimate 2710! Why is this one hard? You can use a calculator… ) http://en.wikipedia.org/wiki/Stirling%27s_approximation

Effective vs. Ineffective Problem Solvers Effective: Believe that problems can be solved through the use of heuristics and careful persistent analysis Ineffective: Believe ``You either know it or you don't.'' Effective: Active in the problem-solving process: draw figures, make sketches, ask questions of themselves and others. Ineffective: Don't seem to understand the level of personal effort needed to solve the problem. Effective: Take great care to understand all the facts and relationships accurately. Ineffective: Make judgments without checking for accuracy

Mental Toughness Need the attributes of confidence and concentration Confidence comes with practice Attack a new problem with an optimistic attitude Unfortunately, it takes time You can’t turn it on and off at will Need to develop a life-long habit

Engagers vs. Dismissers Engagers typically have a history of success with problem solving. Dismissers have a history of failure. You might be an engager for one type of problem, and a dismisser for another. You can “intervene with yourself” to change your attitude of dismissal

Example Problem Connect each box with its same-letter mate without letting the lines cross or leaving the large box. (Actual problem used in software company job interview) A B C

Strategy (my favorite): solve a simpler problem first. C C A 8 8

Heuristic: Wishful Thinking A B C B C A C B A C B A A B C

Engagement Example Need to start somewhere, Cryptoarithmetic problem (base 10) A D + D I --------- D I D Need to start somewhere, find a chink in the problem’s armor

The 9 coin problem 9 coins that look alike. One is fake, can be heavier or lighter (not known). Using a simple balance scale and 3 weighings, single out the fake one. Hint: solve a simpler problem first. Which one?

The solution for 3 coins: the weighings are: 1 against 2 1 against 3 Both of these can have three outcomes: fall to the left (l), fall to the right (r), or balance (b). The following table gives the answer for each of these outcomes: outcome fake coin # why: ----------------------- l l 1 too heavy l b 2 too light l r (not possible) b l 3 too light b b no fake coin b r 3 too heavy r l (not possible) r b 2 too heavy r r 1 too light

The solution for 9 coins: Step 1. Divide 9 coins into 3 piles of 3 coins each. Use the 3-coin strategy to weigh: pile 1 against pile 2 pile 1 against pile 3 From Step 1, you will determine: a) which pile contains the fake and b) if the fake is heavier or lighter. Step 2: Weigh 2 coins from the pile that contains fake. Total # of weighings: 2+1 = 3. More: The 12 coins puzzle the 9 coin interactive

Introduction

Algorithm: History The word ”Algorithm” comes from al-Ḵwārizmī  “the man of Ḵwārizm” (now Khiva), ancient Persia. (9th century AD).

Algorithm: Definition An algorithm is a sequence of finite number of computational steps that transforms the input into the output.

“Design an algorithm” problem We somehow partitioned our class into groups of 3 and 4 students. Now design a an algorithm for any CS2104 class.

“Design an algorithm” problem We somehow partitioned our class into groups of 3 and 4 students. Now design a an algorithm for any CS2104 class. What’s involved: (0) Understand the problem. (1) Analysis: when does the problem have a solution? (one or many? ) (2) When an (exact) solution exists, try finding it (them). Else, try to find an approximation. (3) If necessary, optimize for speed.

“Design an algorithm” problem We somehow partitioned our class into groups of 3 and 4 students. Now design a an algorithm for any CS2104 class. Approach: First, precisely define the problem. What is missing?

“Design an algorithm” problem We somehow partitioned our class into groups of 3 and 4 students. Now design a an algorithm for any CS2104 class. Approach: First step: precisely define the problem. What is missing? Class size N. Typically N> 20 students. 40+ more realistic. But no more than 1000.

“Design an algorithm” problem We somehow partitioned our class into groups of 3 and 4 students. Now design a an algorithm for any CS2104 class. Approach: Second step. Simplify. Solve a series of simpler problems to get clues. N=3,4,5,6,7,….15. Formulate hypothesis.

“Design an algorithm” problem We somehow partitioned our class into groups of 3 and 4 students. Now design a an algorithm for any CS2104 class. Approach: Third step: Existence. The analysis might lead to something. Cases: N= 3k. Obvious: k groups of 3. (works if k>0, N>=3) N=3k+1 = 3(k-1) +4: 1 group of 4, (k-1) of 3. Works if k-1 > 0, k>1, or N>= 7. N=3k+2 = 3(k-2) + 8: 2 groups of 4, (k-2) of 3. works if k-2 > 0, N>=11.

Now, the full algorithm: step by step.

Homework 2: Partition Class into Groups with a Leader

Let’s go further!

Design and Analysis of Algorithm: Example Given n integers in random order, sort them ascendingly. Input Output Algorithm

Design and Analysis of Algorithm: Example Given n integers in random order, sort them ascendingly. Input Output Algorithm 1: brute force

Design and Analysis of Algorithm: Example Given n integers in random order, sort them ascendingly. Input Output Algorithm 2: merge sort

Key Question Suppose computers were infinitely fast and computer memory was free. Would you have any reason to study algorithm?

Let’s get closer to the real world: In “Gulliver’s Travels”, by Swift, Gulliver travels to distant parts of the Earth where he meets liliputians who are mere 6 inch tall, and giants who are 72 feet tall. These people are made of the same kind of flesh, muscle and bone; and look pretty much like like Gulliver who is 6 feet tall.

Let’s get closer to the real world: In “Gulliver’s Travels”, by Swift, Gulliver travels to distant parts of the Earth where he meets liliputians who are mere 6 inch tall, and giants who are 72 feet tall. These people are made of the same kind of flesh, muscle and bone; and look pretty much like like Gulliver who is 6 feet tall. Problem 1: It takes one full liliputian glass of their good and strong wine for the liliputian to start feeling joyous. How many such glasses does Gulliver need for the same effect? Problem 2: How many liliputian suites needs to be cut and re-stitched to make a suit to fit Gulliver? Problem 3: According to Gulliver’s story, the giants could stand ( walk, run and jump..) just like Gulliver. Why is this not really possible?

Key steps: Problem 1. The larger the volume of the person, the more wine. Number of glasses ~ volume. Need to find ratio of volumes Gulliver/Lilliputian. Key simplification for problems 1-2. Assume human to be a cube of side a. Then V = a3. When a increased by 12, V=a3 goes up by 123. For #2, we need surface area, SA = 6a2. Gulliver’s area ~ 122 x SA(liliputian). For problem #3 needs a more sophisticated simplification. Now, the mass of the body that the bone/leg/muscle has to support is proportional to size a. While the strength of the bone/muscle is proportional to its cross-sections, that is a2. As a grows, the ratio of Mass to strength becomes smaller. So, the giants will crush their bones if they tried to stand up. By the same argument, an ant can lift 40 times its own weight, while a human can only lift about as much as his own weight only. a Body Leg

Fig 1. Scaling of length, area, and volume dimensions with body mass. Dick TJM, Clemente CJ (2017) Where Have All the Giants Gone? How Animals Deal with the Problem of Size. PLOS Biology 15(1): e2000473. doi:10.1371/journal.pbio.2000473 http://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.2000473

Chuck Norris vs. Bruce Lee http://www.youtube.com/watch?v=gpbXCj2RqBw