Welcome to the most Amazing course there is

  • Slides: 9
Download presentation
Welcome to the most Amazing course there is 1

Welcome to the most Amazing course there is 1

Algorithms Algorithm. n n n [webster. com] A procedure for solving a mathematical problem

Algorithms Algorithm. n n n [webster. com] A procedure for solving a mathematical problem (as of finding the greatest common divisor, or finding max/min ) in a finite number of steps that frequently involves repetition of an operation. [Knuth, TAOCP] An algorithm is a finite, definite, effective procedure, with some input and some output * An algorithm is a sequence of unambiguous instructions for solving a problem, i. e. , for obtaining a required output for any legitimate input in a finite amount of time. �� 2

problem algorithm input “computer” output 3

problem algorithm input “computer” output 3

Etymology n n Algorism = process of doing arithmetic using Arabic numerals. True origin:

Etymology n n Algorism = process of doing arithmetic using Arabic numerals. True origin: Abu 'Abd Allah Muhammad ibn Musa al-Khwarizm was a famous 9 th century Persian textbook author who wrote Kitab aljabr wa'l-muqabala “ *”ﻛﺘﺎﺏ ﺍﻟﺠﺒﺮ ﻭﺍﻟﻤﻮﺍﺭﻳﺚ which evolved into today's high school algebra and Algorithms. 4

What is this course about? We will study moderately complex data structures and algorithms

What is this course about? We will study moderately complex data structures and algorithms that are essential in core areas of computer science n n n Operating Systems Database Systems Search Engines Compilers etc. This is one of the most important (and fun) courses you will take 5

Why study algorithms? Theoretical importance n the core of computer science Practical importance n

Why study algorithms? Theoretical importance n the core of computer science Practical importance n n A practitioner’s toolkit of known algorithms Framework for designing and analyzing algorithms for new problems 6

The two main issues related to algorithms How to design algorithms • • Correctness

The two main issues related to algorithms How to design algorithms • • Correctness How to analyze algorithm efficiency • • Resource usage 7

Board Example • The Play. Station Example Algorithm Design • • Additional Reading :

Board Example • The Play. Station Example Algorithm Design • • Additional Reading : Read section 4. 1 from book [K] • Pages 116 - 121 • 8

Reading • [L] Section 1. 1 Pages 1 – 7 • You will study

Reading • [L] Section 1. 1 Pages 1 – 7 • You will study the Euclid’s algorithm in Discrete Mathematics too [C] Chapter 1 Pages 5 – 9 • Exclude topic: “Hard problems” • • • 9