Basics Prof. Hsin-Mu (Michael) Tsai (蔡欣穆)

Slides:



Advertisements
Similar presentations
College of Information Technology & Design
Advertisements

CHAPTER 2 ALGORITHM ANALYSIS 【 Definition 】 An algorithm is a finite set of instructions that, if followed, accomplishes a particular task. In addition,
CS107 Introduction to Computer Science Lecture 3, 4 An Introduction to Algorithms: Loops.
1 ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
Design & Analysis of Algoritms
INTRODUCTION TO PROGRAMMING
Chapter 1 – Basic Concepts
Approximations and Errors
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Design and Analysis of Algorithms - Chapter 11 Algorithm An algorithm is a.
TK3043 Analysis and Design of Algorithms Introduction to Algorithms.
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.
Design and Analysis of Algorithms
CHAPTER 2 ALGORITHM ANALYSIS 【 Definition 】 An algorithm is a finite set of instructions that, if followed, accomplishes a particular task. In addition,
Introduction Dr. Ying Lu RAIK 283: Data Structures & Algorithms.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Introduction to Computer Systems
An ordered sequence of unambiguous and well-defined instructions that performs some task and halts in finite time Let's examine the four parts of this.
C. – C. Yao Data Structure. C. – C. Yao Chap 1 Basic Concepts.
Data Structures & AlgorithmsIT 0501 Algorithm Analysis I.
Lesson 1b: Computer Systems and Program Development CPS118.
CSE-C1 Algs & DS 1 CSE–C1 Algorithms and Data Structures 1 lecturer Dr.Matthew Montebello office CB 409 credit 1 lectures 10.
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
Introduction to Algorithms By Mr. Venkatadri. M. Two Phases of Programming A typical programming task can be divided into two phases: Problem solving.
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Introduction to Problem Solving. Steps in Programming A Very Simplified Picture –Problem Definition & Analysis – High Level Strategy for a solution –Arriving.
Chapter 2: General Problem Solving Concepts
CMSC 104: Peter Olsen, Fall 99Lecture 9:1 Algorithms III Representing Algorithms with pseudo-code.
1 Section 2.1 Algorithms. 2 Algorithm A finite set of precise instructions for performing a computation or for solving a problem.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
Recursive Algorithms &
Algorithms & FlowchartsLecture 10. Algorithm’s CONCEPT.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
29 September 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
ALGORITHMS.
Chapter 8 Algorithms.
CS404 Design and Analysis of Algorithms BBy DDr. M V S Peri Sastry BB.E, PhD(BITS-Pilani)
A multi-objective synthesis of optimal control system by the network operator method 1 A.I. Diveev Institution of Russian Academy of Sciences Dorodnicyn.
17 November 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Data Structure Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
8.1 8 Algorithms Foundations of Computer Science  Cengage Learning.
©Brooks/Cole, 2003 Chapter 8 Algorithms. ©Brooks/Cole, 2003 CONCEPTCONCEPT 8.1.
ALGORITHMS AND FLOWCHARTS. Why Algorithm is needed? 2 Computer Program ? Set of instructions to perform some specific task Is Program itself a Software.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
Lecture 3: Developing Procedural Thinking (How to think like a programmer) B Burlingame 16 Feb 2016.
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
Computer Systems Architecture Edited by Original lecture by Ian Sunley Areas: Computer users Basic topics What is a computer?
Debugging and Testing Hussein Suleman March 2007 UCT Department of Computer Science Computer Science 1015F.
Introduction to Computer Systems
Problem Solving & Computer Programming
Topic: Introduction to Computing Science and Programming + Algorithm
INTRODUCTION TO PROBLEM SOLVING
What is an Algorithm? Algorithm Specification.
ALGORITHMS AND FLOWCHARTS
Courtsey & Copyright: DESIGN AND ANALYSIS OF ALGORITHMS Courtsey & Copyright:
Lecture 2 of Computer Science II
CSE322 Recursive and Recursively enumerable sets
GCD and Optimization Problem
Introduction to Problem Solving
Algorithm An algorithm is a finite set of steps required to solve a problem. An algorithm must have following properties: Input: An algorithm must have.
ME 142 Engineering Computation I
Introduction to Structured Programming
Problem Solving Skill Area 305.1
Ալգորիթմներ Stack, Queue, Tree.
Algorithm: Word comes from Arabic Author Abū ‘Abdallāh Muḥammad ibn Mūsā al-Khwārizmī Algorism Algebra: Kitab al-Mukhtasar fi Hisab al-Jabr wal-Muqabala.
Basic Concepts of Algorithm
Presentation transcript:

Basics Prof. Hsin-Mu (Michael) Tsai (蔡欣穆) Department of Computer Science and Information Engineering National Taiwan University

What is an algorithm? A computable set of steps to achieve a desired result. All algorithm must satisfy the following criteria: Input Output Definiteness Finiteness Effectiveness Input: there are zero or more quantities that are externally supplied. Output: At least one quantity is produced. Definiteness: each instruction is clear and unambiguous. Finiteness: if we trace out instructions of an algorithm, then for all cases, the algorithm terminates after a finite number of steps. Effectiveness: every instruction must be basic enough to be carried out, in principle, by a person using only pencil and paper. (must be feasible) data structure and algorithm I hsin-mu tsai, fall 2010

example Statement 1: “Is n=2 the largest value of n for which there exist positive integers x, y, and z such that 𝑥 𝑛 + 𝑦 𝑛 = 𝑧 𝑛 has a solution?” Statement 2: “Store 5 divided by zero into x and go to statement ㄆ.” Which criterion do they violate? Input Output Definiteness Finiteness Effectiveness data structure and algorithm I hsin-mu tsai, fall 2010