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.

Slides:



Advertisements
Similar presentations
Algorithms An algorithm is a finite sequence of instructions, logic, an explicit step-by-step procedure for solving a problem. Specific algorithms sometimes.
Advertisements

How Are Algorithms Developed?
Chapter 2: Problem Solving
Introduction to Flowcharting
Introduction to Flowcharting
UNIT 2. Introduction to Computer Programming
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Introduction to Programming
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 9 Decisions, Decisions, Decisions.
Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Published by Addison-Wesley.
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
Chapter 2 - Problem Solving
Computer Programming Rattapoom Waranusast Department of Electrical and Computer Engineering Faculty of Engineering, Naresuan University.
Fundamentals of Algorithms MCS - 2 Lecture # 4
INTRODUCTION TO PROGRAMMING
II N T R O D U C T I O N PP R E T E S T DD E S I G N I N G A L G O R I T H M DD E S I G N I N G F L O W C H A R T GG E N E R A L R U L E S F.
ITEC113 Algorithms and Programming Techniques
Chapter 2- Visual Basic Schneider
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 3 Planning Your Solution
The Program Design Phases
(C)opyright 2003 Scott/Jones Publishers Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Scott/Jones Publishers.
Algorithm & Flowchart.
Fundamentals of C programming
Chapter 1 Pseudocode & Flowcharts
CPS 120: Introduction to Computer Science
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
Programming Concepts Chapter 3.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Software Life Cycle What Requirements Gathering, Problem definition
Flowcharts.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
Algorithms & Flowchart
Chapter 2: General Problem Solving Concepts
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
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.
CS 100 Introduction to Computing Seminar September 21, 2015.
(C)opyright 2000 Scott/Jones Publishers Introduction to Flowcharting.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Visual Basic Flowcharts October 10, Turn in your vocabulary words before you leave!
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
IPC144 Session 4 Flowcharts 1. Objectives: By the end of this session, the student will be able to: List the three elements of the Structure Theorem Identify.
FLOWCHARTING AND ALGORITHMS
ICS124 Session 9 Flowcharting 1. By the end of this section the student will be able to:  Name the three structures of the Structure Theorem  Identify.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
 Problem Analysis  Coding  Debugging  Testing.
Pseudocode (pronounced SOO-doh-kohd)  is a detailed yet readable description of what a computer program or algorithm must do, expressed in a formally-styled.
Program design Program Design Process has 2 phases:
ALGORITHMS AND FLOWCHARTS
Flow Charts Basic Flow Chart Symbols Few sample flowcharts Rules
Chapter 2- Visual Basic Schneider
Introduction to Flowcharting
Lecture 2 Introduction to Programming
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
ALGORITHM Basic CONCEPTS of Basic Concepts of Algorithm
Introduction to Computer Programming
Programming Fundamentals
Unit# 9: Computer Program Development
Chapter 2- Visual Basic Schneider
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
How Are Algorithms Developed?
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Programming Logic and Design Eighth Edition
Presentation transcript:

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 a finite amount of effort in a finite length of time. Is a list of instructions for carrying out some process step by step.

History of Algorithm The word algorithm comes from the name of the 9th century mathematician ABU ABDULLAH MUHAMMAD IBN MUSA ALKWARIZMI. ALOGORISM – referred only to the rules of performing arithmetic using hindu-arabic numerals from the European Latin Translations of AL-Kwarizmi’s name into ALGORITHM by the 18th century.

EXPRESSIONS OF ALGORITHM Natural Languages - rarely used for complex or technical algorithm. Pseudocode and Flowchart - are structured way to express algorithm Programming Languages - are primarily intended for expressing algorithms in a form that can be executed by a computer.

PROBLEM SOLVING CONCEPT

The problem steps: Identify the problem Understand the problem Identify alternative ways to solve the problem Select the best solutions from the alternatives List of instructions that enable you to solve the problem by the selected method Evaluate the solution

Program Development Cycle Problem Analysis Program Design Program Coding Testing and Debugging Maintenance Documentation

FLOWCHARTING SYMBOLS

FLOWCHART It is a diagram representing the logical sequence in which a combination of steps or operations is to be performed. It is consists of labeled geometrical symbols that are interconnected to provide pictorial representation of a data processing procedure. A flowchart is actually a visual representation of an algorithm.

INPUT/OUTPUT SYMBOL (PARALLELOGRAM) The input/output symbol represents an instruction to an input or an output device.

PROCESSING SYMBOL (RECTANGLE) This symbol is used to represent a group of program instructions that performs a processing function of the program such as to perform arithmetic operations, or to compare, sort etc.

DECISION SYMBOL (DIAMOND) It is used to document points in the program where, based upon variable conditions, a branch to alternative paths is possible. The particular path that is chosen depends on the answer to a question or the result of a test which is inserted in the symbol. This diamond-shape box denotes a point in the program where more than one path can be taken.

PREPARATION SYMBOL (HEXAGON) This symbol is used to represent an instruction or group of instructions that will alter, or modify a program’s course of execution. It is commonly used to specify operations such as control, index registers, initialization, setting, and in indicating switch loops.

TERMINAL SYMBOL (OVAL) The terminal symbol is used to designate the beginning and the end of a program, or a point of interruption. It can also be used elsewhere in the flowchart for specifying error conditions , such as parity error checks or detection of invalid characters.

PREDEFINED PROCESS SYMBOL (RECTANGLE WITH TWO VERTICAL BARS) This symbol is a specialized process symbol that represents a named operation or programmed step not explicitly detailed in the program flow. As a subroutine, it can be used when a procedure needs to be repeated several times. Rather than write the instructions for the procedure each time it is needed, the predefined process symbol is used.

ON PAGE CONNECTOR (SMALL CIRCLE) This is a non- processing symbol which is used to connect one part of a flowchart to another without drawing flow lines.

FLOW DIRECTION INDICATORS (ARROWHEADS) Arrowheads are used to show the direction of processing or data flow. These are added to flow lines if a flowchart appears confusing in its layout.

OFF-PAGE CONNECTOR (SMALL PENTAGON) This type of connector is used instead of the on-page connector to designate entry to or exit from a page when a flowchart requires more that one page.

FLOW LINES (VERTICAL/HORIZONTAL LINE) Flow lines are used to show reading order or sequence in which flowchart symbols are to be read.