You are on page 1of 9

Week 4

Lecture 4.2

Warmup with lists :-


Lecture 4.3

Birthday Paradox :-

Lecture 4.4

Naive search in a list :-


This code lets the user to search a particular element in the list -

Code :-

Output :-
Lecture 4.5

The obvious sort :-

We will not use the built-in functions to sort, so here’s how we are going to do it -

Similarly we can sort it in descending order.

Lecture 4.6

Dot product :-
Lecture 4.7

Matrix Addition :-
Lecture 4.8

Matrix Multiplication :-
Lecture 4.9

Code of Matrix Multiplication :-

Using Numpy :-
All The Best Guys :)

You might also like