4.2.8 Vectors Flashcards

(11 cards)

1
Q

Define Vectors.

A

A data structure representing a quantity with both magnitude and direction. It can be represented as a list, function or geometric point.

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

Vector representation with the set symbol.

A

Vectors can be represented using the symbol for the set they are drawn from, raised to a power equal to their number of components.

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

How are vectors represented as lists?

A

v = (2,4)
list v = (2,4)

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

How are vectors represented as 1D arrays?

A

v = (7,4,12)
array v [3]
v = (7,4,12)

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

How are vectors represented as functions?

A

f = function to create the vector.
S = the complete set of values that the function can be applied to. ( the domain)
R = the potential outputs of the function. (the co-domain)

f : S -> R
e.g set S = {0,1,2,3}, co-domain R (real numbers)

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

How are vectors represented as dictionaries?

A

A vector can be thought of as a function that maps from a value, representing a dimension, to the property in that dimension.

v = (2.4, 6.8, 4.5, 9.2)
0 |-> 2.4
1 |-> 6.8
2 |-> 4.5
3 |-> 9.2
dictionary v <- {0 : 2.4, 1 : 6.8, 2 : 4.5, 3 : 9.2}

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

How is vector addition performed?

A

Add the components together to achieve translation.

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

How is scalar vector multiplication performed?

A

Multiple the vector by the scalar, achieves scaling.

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

What is the expression for the Convex combination of 2 vectors?

A

(a *u) + (b * v)
or
au + bv

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

What are the conditions for convex combination of 2 vectors?

A

in au + bv:
where
- u and v are vectors
- a + b = 1
- a, b >= 0

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

What is the dot product?

A

Multiply top vectors and add it with the bottom vectors multiplied.
Application of dot product:
cos q = (a . b) / (|a| * |b|)

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