The Origins of “Algorithm”. The Origins of the Term “Algorithm”

Slides:



Advertisements
Similar presentations
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Advertisements

Jeroo Chapter 3 Problem Solving and Algorithms. Problem Solving and Algorithms  The story of Aunt Kay  A computer is a tool used to solve problems 
Ch 12: Object-Oriented Analysis
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie COMP 14 Introduction to Programming Adrian Ilie July 8, 2005.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
INTRODUCTION COMPUTATIONAL MODELS. 2 What is Computer Science Sciences deal with building and studying models of real world objects /systems. What is.
1 CENG 707 Data Structures and Algorithms Nihan Kesim Çiçekli Department of Computer Engineering Middle East Technical University Fall 2010.
Ratios * Of means to multiply Using percents  To calculate sales tax of an item, simply multiply the cost of the item by the tax rate.  Example: You.
Algorithms and Problem Solving-1 Algorithms and Problem Solving.
©Brooks/Cole, 2003 Chapter 8 Algorithms. ©Brooks/Cole, 2003 The Origins of “Algorithm”
Algorithms and Problem Solving. Learn about problem solving skills Explore the algorithmic approach for problem solving Learn about algorithm development.
CMT1000: Introduction to Programming Ed Currie Lecture 2A: Pizza.
Algorithms. Software Development Method 1.Specify the problem requirements 2.Analyze the problem 3.Design the algorithm to solve the problem 4.Implement.
Software Engineering Principles and C++ Classes
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
Data Structures Using C++1 Chapter 1 Software Engineering Principles and C++ Classes.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Equations Positive/Neg Integers GeometryPercent
Sw development1 Software Development 1.Define the problem (Analysis) 2.Plan the solution 3.Code 4.Test and debug 5.Maintain and Document.
Using Percents to Solve Problems
Abstraction IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, September 17, 2013 Carolyn Seaman University of Maryland, Baltimore County.
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.
Basic Math Skills Lesson 10: Sales Tax p
Why??  Percents are all around us! Sales and discounts shopping Sales Tax Income Taxes Tips on restaurant bills Etc…  When doing problems with % remember.
Invitation to Computer Science, Java Version, Second Edition.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
SOFTWARE DESIGN.
Abstraction IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, September 17, 2013 Marie desJardins University of Maryland, Baltimore County.
8-5 Sales Tax & Discount Indicator (s)  N8 Develop and analyze algorithms for computing with percent and demonstrate fluency in use. Pages
3-7 Percent of Change Objective: Students find percents of increase and decrease and solve problems involving percents of change. S. Calahan 2008.
DO NOW Define: Markup: An increase from the wholesale price of an item to the retail price. Discount: A decrease from the original price of an item to.
9/20/6Lecture 3 - Instruction Set - Al1 Program Design.
Analysis Modeling. Function Modeling & Information Flow  Information is transformed as it flows through a computer-based system. The system accepts input.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
Sales Tax and Discount. Sales tax is an additional amount of money charged on items that people buy. The total cost of an item is the regular price plus.
Bell Ringer 11-7 ( Do in notebook) 5 minutes 1. Express 20% as a fraction in lowest terms and as a decimal Express 134% as a decimal. Express 6.5%
Design Concepts By Deepika Chaudhary.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
Percents A percent is a ratio that compares a number to 100.
A item is marked 25% off and then you are given an additional discount of 10%. What will you pay? Are receiving a total of 35% off? Explain why or why.
Data Structures Using C++ 2E
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
1 MODULAR DESIGN AND ABSTRACTION. 2 SPECIFYING THE DETAILS OF A PROBLEM INTO A RELATED SET OF SMALLER PROBLEMS.
Algorithm Discovery and Design Objectives: Interpret pseudocode Write pseudocode, using the three types of operations: * sequential (steps in order written)
Lecture 14 22/10/15. The Object-Oriented Analysis and Design  Process of progressively developing representation of a system component (or object) through.
Percent of Change. Objective: To find the sale price of various items. To use the percent of change formula to find discount.
Lesson 3-7 Percent of Change. Definitions Percent of change- When an increase or decrease is expressed as a percent, the percent is a percent of change.
Chapter 2 Principles of Programming and Software Engineering.
FINDING PERCENT'S MR. MORRISON. PERCENT'S What does it mean when a store has a Saturday Special Sale and everything in the store is 25% off? If everything.
Chapter 1 The Phases of Software Development. Software Development Phases ● Specification of the task ● Design of a solution ● Implementation of solution.
CS 101 – Oct. 7 Solving simple problems: create algorithm Structure of solution –Sequence of steps (1,2,3….) –Sometimes we need to make a choice –Sometimes.
The Real Cost When you save to make a big purchase, be sure to consider the sales tax you will have to pay. Have you ever paid sales tax?
Computer Systems Architecture Edited by Original lecture by Ian Sunley Areas: Computer users Basic topics What is a computer?
Algorithms and Flowcharts
Advanced Data Structures Lecture 1
Algorithms and Problem Solving
Exercise : Write a program that print the final price of purchase at a store where everything costs exactly one dollar. Ask for the number of items purchased.
Introduction to Algorithms
Problem Solving How do we attack a large problem?
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
About the Presentations
Algorithm and Ambiguity
Problem Solving Techniques
Programming We have seen various examples of programming languages
Algorithm and Ambiguity
Algorithms and Problem Solving
PROBLEM ANALYSIS.
Discounts\Sales.
Abstraction and Objects
Presentation transcript:

The Origins of “Algorithm”

The Origins of the Term “Algorithm”

Developing Algorithm Using Stepwise Refinement Read the problem statement carefully Rewrite it in your own words if it is not clear Highlight the nouns and look for data items Highlight the verbs to determine the work that needs to be done Write the initial algorithm that just describes the inputs, outputs and work to be done

Stepwise Refinement Now go back to each step in the initial algorithm and refine it to describe how it will be implemented The Key steps are: Rewrite the statement if not clear Nouns==>Data, Verbs==>Action Initial Algorithm(WHAT) Final Algorithm(HOW)

Algorithm Development Exercise Problem 1 A Sunoco gas station offers 5 cents per gallon discount each Sunday. If a person fills up 20 gallons every week, how much money will that person save in X weeks?

Algorithm Development Exercise Problem 2 Given the radius of a circle, develop an algorithm that computes the area and circumference

Algorithm Development Exercise Problem 3 Write a cash register algorithm that will compute 7 percent sales tax at the price of an item and then add the tax to the price to obtain the final price

Properties of Algorithms Simplicity Precision Various Levels of Abstraction

Algorithms Algorithms specify the “behavior” Programs in specific languages just express the algorithm in one particular form

Information Information means knowledge about something Data is a specific representation of information

Components of An Algorithm Data Structures Data Manipulation Instructions Conditional Expressions (if price greater than my_limit then don’t buy) Control Structures (while (condition) do statement Modules

Levels of Abstraction Details are HIDDEN if we use TOP DOWN approach to describe algorithms Example: Counting names that begin with ‘A’ in a list of names

Recap What is the advantage of hiding details at the initial level of algorithm development? What properties of an object must be known to us before we can use it? How can we make software reusable? How many types of statements can be part of an algorithm?