Lec - 0 - Introduction To Algorithms
Lec - 0 - Introduction To Algorithms
Lec - 0 - Introduction To Algorithms
Welcome!
Class Information
• Course materials and updates will be
posted in Google Classroom
Introduction 2
Class Information
• For any course-related query, feel
free to send an email at:
[email protected]
Introduction 3
Course Information
Introduction 4
Prerequisites
• CSE 1201 (Programming)
• CSE 2103 (Data Structure)
• CSE 2105 (Discrete Mathematics)
Introduction 5
Resources
Textbooks:
✓ ‘Fundamentals of Computer
Algorithms’ by Horowitz, Sahni,
Rajasekaran
✓ https://www.tutorialspoint.com/design_an
d_analysis_of_algorithms/index.htm
Introduction 6
Evaluation
Sl Marks
Description
No. distribution
1 Mid-term examination 30
2 Assignments/Viva 10
3 Attendance 10
4 Final term examination 50
Total 100
Introduction 7
Evaluation (Lab)
Sl Marks
Description
No. distribution
1 Assignments (3-4) 50-80%
2 Viva/Quiz 10%
3 Attendance 10%
4 Final Evaluation 0-30%
Total 100
Introduction 8
Why this Course?
“কী দরকার এসব
পড়াশ ানার?”
Introduction 9
Why this Course?
• Algorithms are fundamental to all areas of CS
• Algorithms help to build efficient programs
Introduction 10
Tips for Doing Well in the Course
✓ Attend all classes
✓ Be active in class
Introduction 11
So What is an Algorithm?
• A process followed to solve a problem.
Introduction 12
So What is an Algorithm?
Suppose you want to make a cup of tea.
• Inputs?
• Outputs?
Introduction 13
Inputs Output
https://simmertoslimmer.com/ginger-tea/ https://foodviva.com/tea-recipes/milk-tea-recip
Introduction 14
Inputs 1. Add a teabag to your Output
favorite cup.
2. Boil water and pour it
over the teabag.
3. Wait 3 to 5 minutes
for the tea to brew,
without stirring or
squeezing the teabag.
4. Remove the teabag
and pour in a dash of
https://simmertoslimmer.com/ginger-tea/ milk. https://foodviva.com/tea-recipes/milk-tea-recip
5. Stir with a spoon to
blend evenly.
• For example, given the input sequence (31, 41, 59, 26, 41, 58), a
sorting algorithm returns as output the sequence (26, 31, 41, 41, 58,
59). Such an input sequence is called an instance of the sorting
problem.
Introduction 16
So What is an Algorithm?
By definition, something can only be called an algorithm if it has all of
the following properties.
Introduction 18
Program
• We often think of a computer program as an instance, or concrete
representation, of an algorithm in some programming
language.
Introduction 20
Related Readings
➢ Introduction to Algorithms (3rd Ed.)
• Chapter 1
Introduction 21