4.2.8 - FoDS (Vectors) Flashcards
(11 cards)
What is meant by a vector in computing
A way of representing spatial information and movement in numerical ways, and that allows random access/modification of its elements by their rank
What are the features of a vector
- Magnitude
- Direction
- Initial point
What are the ways that a vector can be represented
- A list of numbers
- A function
When represented as a list of numbers how can a vector be described
- An n-vector over R or Rⁿ, where n is the dimension of the vector, and R is the number set (Real numbers)
What set must all the quantities in the vectors be drawn from
- The same number set e.g. the Real numbers
How can a vector be represented as a dictionary
- Where the keys are the rank/dimensions and the values are the magnitudes
How is a vector function written
F: S –> R
Where:
F - the function to create a vector
S- the complete set of values
R - the co domain (the potential outcomes)
–> - Maps to
What is the convex combination of two vectors u and v
- where two vectors u and v with the same initial point combine (by making a triangle with the last side being a straight line between their tips) to create any 3rd vector that lies on the line connecting the 2 vectors
What is the equations for convex combination
αu + βv where α, β
≥ 0 and α + β = 1
What is the dot product of u and v
u1v1 + u2v2 where:
- u = (u1,u2)
- v = (v1,v2)
What is the application of the dot product
To find the angle between two vectors