Course week 1

This page has a summary of all the course activities you can attend or submit this week.

Weekly exercises sessions

No weekly exercise sessions this week (they start on lecture week 3).

Self-study (videos and slides in English)

The topics for this week are as follows: (i) Algorithms and pseudocode, (ii) Decrease-and-conquer, (iii) Insert sort

The following links will take you to the video-lectures and the accompanying slides:

Lecture-questions

An algorithm is
Which of the following are important properties of a well-specified algorithm? (There may be more than one correct choice.)
Suppose person X presents an algorithm using pseudocode and person Y reads it. What assumptions can X make about Y? (There may be more than one correct choice.)
Suppose person X has invented a new algorithm for solving some particular problem. X writes pseudocode for the new algorithm. Which of the following best describes what X’s main goal should be in presenting the new algorithm as pseudocode?
Typically pseudocode for an algorithm does not include testing for errors or testing the validity of the input data, whereas code for real-life applications should include such testing. Of the following, which is the best explanation for this lack of testing in pseudocode?
Suppose we are given pseudocode for some algorithm. When implementing the algorithm in some programming language like C++, which of the following should we take into account? (There may be more than one correct choice.)
Which of the following best describes the decrease-and-conquer strategy?
Insertion sort works by
When the size of data input to insertion sort increases, the amount of computations insertion sort must do
Which of the following indicates that insertion sort uses the decrease and conquer strategy?
What is a central question, related to this course, whose answer can be found in this week’s videos?
Of the following topics, which do you think deserves further discussion/explanation during the weekly consultation session?
Were there any parts of the video lectures that were particularly difficult? Particularly interesting? Something about which you wish to learn more?

Extra links on the topics:

Submit weekly exercises

Nothing to submit yet! (Weekly exercises start on lecture week 3).