Lecture 1 Flashcards

1
Q

Make Python wait

A

from time import sleep

sleep(0.1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

t(n) = O(g(n)) definition

A

There is C s.t. t(n) <= C.g(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Matrix product numpy

A

import numpy as np

np.dot(A,B)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Prove linear independance

A

Show that det([v1 v2 v3]) is not null (with np.linalg.det())

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Nullspace of a matrix

A

Dimension of nullspace = dimension - rank

Rank is the number of vectors so that the matrix is linearly independent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Inverse of a matrix

A

np.linalg.inv()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Operations of symmetric matrices

A

AB+BA is symmetric
A-B, A+B, A-1, A^n, cA too
(symmetric if A^T = A)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly