MA214 Lecture Slides 0
MA214 Lecture Slides 0
1
Course goals
4
What is an algorithm?
4
What’s an algorithm?
For example:
More generally:
6
Examples of famous algorithms
7
How do we describe algorithms?
8
How do we describe algorithms?
8
How do we describe algorithms?
8
How do we describe algorithms?
Python code:
def gcd(x,y):
a=x
b=y
while b!=0:
t=a
a=b
b=t%b
return a
8
What is there to understand?
Correctness
• How can we show that an algorithm actually computes
a valid solution?
Running time
• How do we measure how fast a specific algorithm
for a given problem is?
9
Analysis versus design
10
Often important
11
Topics
12
Tentative topics
13
Course logistics
(See also the course moodle page.)
Lectures and classes
Lectures
Note: Classes start in Week 2, not this week. They are compulsory.
In Week 11, there will be no new material, only the last class.
14
Pre-sessional & Self-study Python tutorials
There will also be a number of additional self-study tutorials to prepare you for
the Python programming in this course.
The first two will be available this week, and will cover
(a) how to use Python on the LSE computers or how to install Python on your
personal machine,
(b) the very basics of Python programming to set you up for the programming
that you will do in the first few weeks.
Additional self-study tutorials will be released after the first couple of weeks.
15
Python usage
16
Problem sets
• They will be released after the lectures and are due the following week. .
• The first problem set will be released this week.
• They will be marked for feedback, but do not contribute to final mark.
• You will submit your solutions on a platform called Gradescope.
• Please write your name and class group number on solutions that you hand
in.
17
Lectures
Material provided:
• slides,
• pointers to relevant chapters/sections in the course’s main textbook.
• Read those sections!
18
Textbook
In addition:
Kleinberg, Tardos. Algorithm Design,
1st edition. Pearson.
19
Classes
Material provided:
• written solutions,
• python code.
20
Assessment
21
How to be successful in this course
Ask questions!
• Ask questions in lectures, classes, office hours.
• Use the discussion forum on Moodle.
22