1 of 19

JamCoders Lecture 1: Introduction

Boaz�Barak

July 2022, UWI, Jamaica

Thank you!

Chronixx

Survival and Flourishing Fund

2 of 19

Who am I

  • Professor of Computer Science at Harvard
  • Co director of undergraduate studies at Harvard CS
  • Teaching/Research: Theory of computation, complexity, cryptography, theory of machine learning.
  • Originally from Israel, didn’t plan to study CS in college.

3 of 19

The team

Gunjan Mansingh

Week 2

Week 3

Jelani Nelson

Week 4

Timnit Gebru

Lecturers:

Organizers:

Gunjan, Jelani and

Ra Bacchus

Joel Beazer

Daniel Fokum

Elecia Myers

4 of 19

TAs

Bryan Baker

Joel Beazer

Michael Girma

Jabari Hastings

Tyler Hou

Bereket Molla

Annamira O’Toole

Orr Paradise

Anakai Richards

Nadia Sharp

Elijah Tai

Natnael Teshome

5 of 19

Why Computer Science?

6 of 19

7 of 19

We are known for our athletes, music, and culture. Now we must become known for being innovators and creators in science and technology”

8 of 19

Why Algorithms?

9 of 19

PageRank Algorithm

Fast algorithm to find which pages have more links pointing to them.

The foundation for Google

10 of 19

Back propagation algorithm

Compute faster derivatives of Neural Network

Responsible for the “Deep Learning” revolution.

11 of 19

Consistent Hashing Data Structure

New data structure to store web pages on servers for faster delivery

200+ Terrabits per second

(Stream 200 Million movies simultaneously)

12 of 19

Compressed Sensing

New algorithm to recover images from a tiny number of measurements.

13 of 19

What this course is about

Algorithms and Data Structures – the ❤️ of computer science.

Some programming in

What this course is not about

How to build a website/ app / use latest in-fashion tool

14 of 19

Let’s start

15 of 19

Computational Task

Input

Output

[17,5,3,12,27]

Algorithm: A precise set of instruction how to obtain output from the input

Minimum element:

 

 

Exercise: Write down instructions for minimum element

3

16 of 19

Minimum Element

Instructions:

 

 

 

17 of 19

 

18 of 19

variables

Define a function

input

input

output

function

output

loop

if statement

Length of list L

Element of L at position 0 (= first)

Element of L at position i (= i+1th)

19 of 19

Variables

Store data

Operations

Act on data

Control

Decide when to act