Docsity

Problem Solving - Intro to Computer Programming - Lecture Slides, Slides of Computer Engineering and Programming

Partial preview of the text

Download Problem Solving - Intro to Computer Programming - Lecture Slides and more Slides Computer Engineering and Programming in PDF only on Docsity!

Problem Solving

Lecture 2

INTRODUCTION TO PROBLEM SOLVING

  • Engineers must analyze and solve a wide range of technical problems. Some will be reasonably simple single-solution problems. Others will be open-ended and will likely require a team of engineers from several disciplines. Some problems may have no clear solution.

SCIENCE AND ART

SOME SAY ENGINEERING PROBLEM SOLVING

REQUIRES A COMBINATION OF SCIENCE AND

SCIENCE ART:

  • Math
  • Physics
  • Chemistry
  • Mechanics
  • Etc.

ART

  • Judgement
  • Experience
  • Common-Sense
  • Know-How
  • Etc.

THE ENGINEERING METHOD

• RECOGNIZE AND UNDERSTAND THE PROBLEM

• GATHER DATA (AND VERIFY ITS ACCURACY)

• SELECT GUIDING THEORIES AND PRINCIPLES

• MAKE ASSUMPTIONS WHEN NECESSARY

• SOLVE THE PROBLEM

• VERIFY THE RESULTS

• PRESENT THE SOLUTION

ENGINEERING PROBLEM TYPES

  • Develop or change a procedure
    • Example: Warehouse inventory -- Instead of having 3 month's inventory go to "just in time"
  • Human factors
    • Make our lives longer, better, easier
    • Examples: cruise control, moving sidewalks, management tools
  • Add new features
    • Maintain current design and add new features

TYPES OF INFORMATION

FOR PROBLEM SOLVING

  • GIVENS: The initial condition of the problem
  • OPERATIONS: The various actions we are allowed to perform
  • GOALS: The desired final condition of the problem
  • PROBLEM STATE: The state of the problem at any specific point in time
  • SOLUTION: Completely specified the GIVENS, OPERATIONS, GOALS, and succession of

STEPS IN PROBLEM SOLVING

(CONT’D)

• DEVELOP A STEP-BY-STEP PLAN (ALGORITHM).

  • HOW ARE YOU GOING TO FIX IT?

• OUTLINE THE SOLUTION IN A LOGIC DIAGRAM

• EXECUTE THE PLAN.

  • KEEP TRACK OF WHAT WORKS AND WHAT DOESN’T.

STEPS IN PROBLEM SOLVING

(CONT’D)

• ANALYZE THE SOLUTION

  • REVISE THE PLAN AND RE-EXECUTE AS NEEDED.
  • KEEP THE GOOD PARTS OF THE PLAN AND ALTER THE NOT-SO-GOOD ONES.

• REPORT / DOCUMENT THE RESULTS

  • LET YOUR BOSS KNOW HOW YOUR IDEA WORKED ( in a written report ).

THE STORY OF THE BEVERAGE

CAN

(continued)

  • PROBLEM: Bottles break easily.
  • SOLUTION: Peter Durand (London) devised a sealed tin container.
  • PROBLEM: How to open the tin. Soldiers used knives, bayonets, and even rifle fire. A tin of roast veal carried on one of William Parry’s Arctic expeditions bore the instruction, “Cut round on the top near the outer edge with a chisel and hammer.” TheDocsity.com

THE STORY OF THE BEVERAGE CAN

(continued)

• SOLUTION(S):

    1. Use steel (stronger and thinner).
    1. Create specialized tools for opening cans
    • 1858 Ezra Warner (Connecticut) got a patent for a can opener that was describes as “Part bayonet, part sickle [with a] large curved blade.”
    • 1870 William Lyman (Connecticut) patented a can opener with a wheel that revolved around a center hole punched in the can.

THE STORY OF THE BEVERAGE CAN

(continued)

  • PROBLEM: Thin cans lacked stiffness and buckled.

• SOLUTION(S):

    1. Add a rim at top and bottom.
    1. Corrugate the sides.

THE STORY OF THE BEVERAGE CAN

(continued)

  • PROBLEM: Beverage cans opened with can openers had jagged edges and too big an opening.
  • SOLUTION: The “Church Key” can opener.
  • PROBLEM: It kept getting lost or you didn’t have it with you when you needed it.
  • SOLUTION: Cans with discardable pull tabs, called pop tops. Docsity.com

PROBLEM SOLVING EXAMPLE

Problem: Fill a bottle with stones

Instructions:

  • Document any assumptions that may be required
  • Write a step-by-step procedure for solving the problem
  • Do this in pairs first then have a solution for your table

PROBLEM SOLVING EXAMPLE

Assumptions:

  • Bottle is present