Lecture10_Chapter10

Lecture10_Chapter10 - Chapter 10 Algorithmic Thinking...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 10 : Algorithmic Thinking Algorithm Definition Algorithmic structures Examples of Algorithms Algorithm Properties Flowcharts Algorithms vs. Programming Languages Some important algorithms
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Algorithm A precise, systematic method for producing a specified result An algorithm is a logical process by which a problem can be solved or a decision made. An algorithm is more abstract than a program written in a programming language. Examples: recipe, assembly instructions, driving directions.
Background image of page 2
Algorithmic structures Start and End Input Output Calculation / Simple action Decision Iteration / Looping
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Example of Algorithm 1 Algorithm for switching on a lamp. First, turn on the switch. Then check if the lamp is plugged in Check if the bulb is burned in Buy a new lamp
Background image of page 4
Example of Algorithm 1 Algorithm for switching on a lamp for light. STEP 1 : Turn on the switch. If there is light go to step 5 STEP 2 : Check if plug is disconnected. If yes, connect the wire and go to step 5 STEP 3 : Check if bulb is burned out. If yes, buy a new bulb ad go to step 5 STEP 4 : Buy a new lamp.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 20

Lecture10_Chapter10 - Chapter 10 Algorithmic Thinking...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online