Lecture10_Chapter10

Lecture10_Chapter10 - Chapter 10 Algorithmic Thinking...

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

Chapter 10 : Algorithmic Thinking Algorithm Definition Algorithmic structures Examples of Algorithms Algorithm Properties Flowcharts Algorithms vs. Programming Languages Some important algorithms

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

View Full Document
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.
Algorithmic structures Start and End Input Output Calculation / Simple action Decision Iteration / Looping

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

View Full Document
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
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.

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

View Full Document
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
Ask a homework question - tutors are online