{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Lecture 1 Flashcards

(7 cards)

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