What is important about the components of a vector?
That they are all drawn from the same set of values, e.g Reals or Rationals
Give four ways vectors can be represented
How can a vector be represented in code if the vector is viewed as a function?
A dictionary
What does vector addition achieve?
Translation
What does scalar-vector multiplication achieve?
Scaling
What is another name for the vector dot product?
Scalar product
What is a convex combination of vectors u and v?
αu + βv
such that α , β >= 0
and α + β = 1
What is the scalar product of vectors:
A = (a1,a2)
B = (b1,b2)
A.B = a1b1 + a2b2
What is an application of the dot product?
Used in finding the angle between two vectors
In a convex combination of u and v, what is the significance of α = β = 0.5?
The resultant vector is the midpoint of the position vectors u and v
When might it be appropriate to represent a vector using a dictionary?
If the vector is used to represent a function
What is a set?
A set is an unordered collection of values in which each value occurs at most once
What does proper subset mean? What is its symbol?
What does the notation A\B represent if A and B are sets?
Set difference between A and B
What is a finite set?
One whose elements can be counted off by natural numbers up to a particular number
What is the Cartesian product of A and B?
The set of all ordered pairs (a, b) where a is a member of A and b is a member of B.
What can the Cartesian product be used for?
Defining function types
What is a countable set?
A set with the same cardinality as some subset of the natural numbers
What are regular expressions?
Metalanguage for defining all valid strings of a regular language
What is the purpose of regular expressions?
Allow for regular languages to be described in a convenient shorthand notation
What is the RegEx metacharacter for: zero or more
*
What is the RegEx metacharacter for: one or more
+
RegEx : zero or one lots of
?
What are | ? * + called in RegEx?
Metacharacters