Exam prep Flashcards

1
Q

Reflexive relation

A

A is reflexive if there is an existence of (a,a). (A->A)

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

Symmetric relation

A

A and B are symmetric if aRb and bRa. (A->B) and (B->A)

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

Transistive relation

A

A, B and C is transitive if there exists a relation aRb, bRc and aRc.

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

Linear equations - Consistent systems

A

Consistent if there is a solution which satisfies all of the equations. Minimum of one solution.

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

Linear equations - Inconsistent system

A

Not consistent if there is not a solution that satisfies all the equations in the system.

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

Linear (in)dependence

A

A vector is said to be linearly dependent if it can be defined as the combination of two other vectors in the set. If not, it is linearly independent. If a vector is adding another dimension to the span, it is linearly independent.

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

Inverse matrix

A

The inverse of A is A^-1 only when: AA^(-1)=A^(-1)A=I.

Multiplying a linear transformation by its inverse corresponds to “playing” the transformation backwards.

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

Determinant

A

The scale factor for the area (2D) or volume (3D) represented by the column vectors in a square matrix.

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

Span

A

Set of all linear combinations of vectors. We ask what are all the possible vectors we can reach using only vector addition and scalar multiplication.

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

Basis

A

Set of vectors with the characteristics that all other vectors in the space can be expressed as a linear combination of the vectors in the basis.

Set of linearly independent vectors that span the full space.

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

Null space

A

The null space of a matrix A consists of all the vectors x such that Ax = 0 and x is not zero.

Solution to Ax = 0.

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

Matrix dimension

A

Number of vectors in the basis. The basis needs to be linearly independent.

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

Rank

A

The rank of a matrix is the number of nonzero rows in any matrix that is in row echelon form.

The number of linearly independent rows or columns of the matrix.

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

Column space (range, image)

A

The columns space of matrix A is the span of its column vectors. Subspace of Rm.

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

Row space

A

The row space of matrix A is the span of its row vectors. Subspace of Rn.

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

Eigenvectors

A

The eigenvector for a linear transformation is an element of the vector space that will not change direction after it is transformed.

17
Q

Eigenvalue

A

An expression for how much the eigenvector is stretched by the linear transformation.

18
Q

Algorithmic complexity

A

The processing power usage of a computer to solve certain tasks decided by its underlying algorithm. Used to evaluate the algorithm, scalability and input size.

19
Q

Big O-notation

A

Given an expression for the number of operations needed to compute an algorithm, we want to know the asymptotic behaviour as size of the problem gets large.

20
Q

Higher order functions

A

A function that returns another function, or a function that accepts a function as an argument.

21
Q

Black box

A

Testing is done without the knowledge of the internal structure of the program. External or end-user perspective.

22
Q

White box

A

Testing is done with knowledge of the internal structure of the program. Main goal is to test the internal operation of the system. Focus on code structure.

23
Q

Raise exception

A

Typically used when you have detected an error condition, or some condition does not satisfy.

24
Q

Assertion

A

Similar to raise, but the exception is only raised if a condition is met. If the condition returns false, we get an AssertionError. Used for things that will run, but should not run for your program.

25
Q

Global variable

A

Variable declared outside of the function. Can be accessed inside or outside of a function.

26
Q

Local variable

A

Variable declared inside the function body.

27
Q

Enclosed variable

A

Variable that isn’t global or local. Seen in higher order functions.

28
Q

Built-in

A

All the names that are loaded into python. For example print().

29
Q

Relations

A

A relationship between sets of values.