Problem Solving - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Problem Solving

Description:

Eat breakfast. Drive to work. Gibbons | GNG1101-2:8. Badly Ordered. Get out of bed. Get dressed. Take a shower. Eat breakfast. Drive to work. Arrive to work wet! ... – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 22
Provided by: davidg84
Category:
Tags: problem | solving

less

Transcript and Presenter's Notes

Title: Problem Solving


1
Problem Solving
  • Define the Problem.
  • Gather Information.
  • Generate a Possible Solution.
  • Implement the Solution.
  • Test the Solution.

2
Define the Problem
  • The proper definition of the problem is essential
    to a good solution.
  • Not always easy to see the real problem.
  • Breakthroughs come in seeing the real problem.

3
Beware of the Wrong Problem
  • Re-entering spacecraft
  • Slow elevators

4
Gather Information
  • What are the constraints?
  • What are the physical laws?
  • What are the mathematical equations?

5
Generate a Possible Solution
  • There may be many possible solutions - pick one.
  • Define the algorithm.
  • Algorithm
  • a list of steps to follow to solve the problem in
    which order is important
  • the actions to be executed, the order in which
    these actions are to be executed

6
Rise and Shine Algorithm
  • Get out of bed
  • Take a shower
  • Get dressed
  • Eat breakfast
  • Drive to work

7
Change Order
  • Get out of bed
  • Get dressed
  • Take a shower
  • Eat breakfast
  • Drive to work

8
Badly Ordered
  • Get out of bed
  • Get dressed
  • Take a shower
  • Eat breakfast
  • Drive to work
  • Arrive to work wet!

9
Generation Techniques
  • Brainstorming
  • Inversion
  • Checklists
  • Adapt, modify, magnify, reduce, substitute,
    rearrange, combine.

10
Implement the Solution
  • Write down the rules.
  • Build the machine (hardware).
  • OR
  • Write the program (software).

11
Test the Solution
  • Check that the solution works in many different
    situations.
  • Try different inputs.
  • Test with the wrong inputs.

12
Problem Definition 1
  • How to calculate the area of a circle?

13
Input-Output Description
Area
Radius
14
Gather Information 1
  • Mathematics a ? r2
  • area ? x radius x radius
  • area pi radius radius

15
Algorithm 1
Begin
Read radius
Calculate area piradiusradius
Print area
End
16
Problem Definition 2
  • A train leaves Montreal at 10 am travelling
    towards Toronto at 100km/h.
  • At the same time a train leaves Toronto going to
    Montreal at 150km/h.
  • If the distance from Montreal to Toronto is
    550km, where do the trains pass each other?

17
Input-Output Description
Velocities
Passing point
Total distance
18
Gather Information 2
  • distance velocity time
  • For the train that leaves Montreal
  • dm vm t ? dm vm t
  • For the train that leaves Toronto
  • dt vt t
  • The total distance Montreal to Toronto is
  • d dm dt

19
  • The trains pass each other after travelling for
    the same time t (same start time)
  • d dm dt (vm vt) t
  • t d/(vm vt)
  • dm vm t
  • dm (vm d)/(vm vt)

20
Algorithm 2
Begin
Read velocities and total distance
Calculate distance from Montreal dm (vm
d)/(vm vt)
Print distance
End
21
Testing
  • dm (100 550)/(100 150) 220km
  • dt d - dm 550 - 220 330km
  • t dm/vm 220/100 2.2h
  • dt vt t 150 2.2 330km ?
Write a Comment
User Comments (0)
About PowerShow.com