European Robotic LABoratory

Slides:



Advertisements
Similar presentations
Working With Algorithm and Flowcharts
Advertisements

Selection Flow Charts If statements. Flow of Control The flow of control is a concept we’ve already encountered. The concept of control relates to the.
Creating Flowcharts Principles Of Engineering
Algorithms and Problem Solving
Chapter 2 - Problem Solving
Reference :Understanding Computers
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
Chapter 2 - Problem Solving
Flow Chart.
Computer Software & Software Development H&K Chapter 1 Instructor – Gokcen Cilingir Cpt S 121 (June 20, 2011) Washington State University.
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
ALGORITHMS AND FLOW CHARTS 1 Adapted from the slides Prepared by Department of Preparatory year Prepared by: lec. Ghader Kurdi.
Algorithm. An algorithm is a procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed.
Programming Logic and System Analysis
Algorithm & Flowchart.
Fundamentals of C programming
Tell the robot exactly how to draw a square on the board.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
C++ If….Else Statements and Flowcharts October 10, 2007.
Lecture 5: Developing Procedural Thinking (How to think like a programmer) B Burlingame 30 Sept 2015.
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with.
Artificial Intelligence: Introduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Dale Roberts 1 Program Control - Algorithms Department of Computer and Information Science, School of Science, IUPUI CSCI N305.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
Flowcharting An Introduction. Definition A flowchart is a schematic representation of an algorithm or a process.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Structured Programming (4 Credits)
Selection Flow Charts If statements. Flow of Control The flow of control is a concept with which we’re already familiar. The concept of control relates.
Visual Basic Flowcharts October 10, Turn in your vocabulary words before you leave!
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
Lecture 3: Developing Procedural Thinking (How to think like a programmer) B Burlingame 16 Feb 2016.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Mr. Schaefer Grade 4 Language Arts April 27, 2009.
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
CMSC 104, L041 Algorithms, Part 1 of 3 Topics Definition of an Algorithm Example: The Euclidean Algorithm Syntax versus Semantics Reading Sections 3.1.
Algorithms and Flowcharts
Program design Program Design Process has 2 phases:
Understand Problem Solving Tools to Design Programming Solutions
Algorithms, Part 1 of 3 The First step in the programming process
COGNITIVE APPROACH TO ROBOT SPATIAL MAPPING
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Programming Languages
Unit 3: ALGORITHMS AND FLOWCHARTS
ALGORITHMS part-1.
European Robotic LABoratory
Understand Problem Solving Tools to Design Programming Solutions
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
ALGORITHM Basic CONCEPTS of Basic Concepts of Algorithm
What is a Flow Chart ? An organized combination of shapes, lines, and text that graphically illustrates a process or structure A pictorial representation.
Flow Charts What are they good for?.
Programming Fundamentals
CS 240 – Lecture 11 Pseudocode.
Creating Flowcharts AIM:
Information Systems in Organizations 2
Unit# 9: Computer Program Development
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Computers & Programming Languages
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Understanding Problems and how to Solve them by using Computers
Lecture 6 Architecture Algorithm Defin ition. Algorithm 1stDefinition: Sequence of steps that can be taken to solve a problem 2ndDefinition: The step.
Algorithms Algorithm. [webster.com] A procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Basic Concepts of Algorithm
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Programming Logic and Design Eighth Edition
Welcome to the most Amazing course there is 
Presentation transcript:

European Robotic LABoratory EURLAB European Robotic LABoratory Basic knowledge x.x: Algorithm EURLAB Basic knowledge x.x - Algorithm

Think about the actions we take in our lives! Almost always we can represent them as a succession of individual steps: EURLAB Basic knowledge x.x - Algorithm

Example 1: watch a movie on TV Sit on the sofa Turn on the TV Watch the movie Turn off the TV Get up from the sofa EURLAB Basic knowledge x.x - Algorithm

Example 2: programming a robot to walk a square Move straight for 3 sec Turn right 90° EURLAB Basic knowledge x.x - Algorithm

So, we can give a proper and simple definition of 'ALGORITHM' An ALGORITHM is a procedure that solves a specific problem through a finite number of elementary steps (Wikipedia) The term comes from the name of the Persian mathematician Al-Khwarizmi, which is considered one of the first authors to have made reference to this concept EURLAB Basic knowledge x.x - Algorithm

In the example n°1: the guy must knows how ‘TO POWER ON THE TV’ Three are the necessary properties of an algorithm, without which it can not be defined as such: NOT AMBIGUOUS: steps constituents must be interpreted in a direct and clear way by the performer ; In the example n°1: the guy must knows how ‘TO POWER ON THE TV’ In the example n°2: the robot must knows how ‘Turn right 90°’ EURLAB Basic knowledge x.x - Algorithm

Obvious in the three examples…: Three are the necessary properties of an algorithm, without which it can not be defined as such: FINITENESS: the algorithm must be composed of a finite number of steps and require a finite amount of input data; Obvious in the three examples…: 1- the movie must end before the guy dies…!!! 2- the robot must travel the square in reasonable time…!!! EURLAB Basic knowledge x.x - Algorithm

Three are the necessary properties of an algorithm, without which it can not be defined as such: DETERMINISTIC: the algorithm must always lead to the same result each time it is run with the same data input Every time robot runs algoritm he must succeed in walking the square !! EURLAB Basic knowledge x.x - Algorithm

How to represent an algorithm Of course you can represent an algorithm as a numbered sequence of statements, as in previous examples. Instead, the most common way of representing an algorithm is by the ‘flow chart’. A flow chart is a graphic representation, where: each steps is represented by conventional shapes (rectangles, rounded ...), each with a specific meaning and logic within which an indication text typically describes the activities to be performed shapes are linked by arrows, so establishing the execution order of actions. INPUT/OUTPUT OF DATA ACTION STOP START EURLAB Basic knowledge x.x - Algorithm

Example 1: watch a movie on TV START SIT ON THE SOFA OPEN TV WATCH THE MOVIE CLOSE TV GET UP FROM THE SOFA STOP EURLAB Basic knowledge x.x - Algorithm

Example 2: walk a square START STOP Turn right 90° Turn right 90° Go straight Turn right 90° Go straight Turn right 90° Go straight Turn right 90° Go straight Turn right 90° STOP EURLAB Basic knowledge x.x - Algorithm

Previous algorithm seem to you enough ‘INTELLIGENT’ ? read more…… EURLAB Basic knowledge x.x - Algorithm