CAP 1 Flashcards

1
Q

What is a matrix?

A

A matrix is an array of elements set out in a pair of brackets.

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

How many rows and columns does a MxN matrix have?

A

M rows and N columns

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

What is a square matrix

A

A matrix that has the same number of rows as columns

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

What is an identity matrix?

A

A matrix with 1s in the leading diagonals with all other elements as 0

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

What must be true for matrices to be added or subtracted?

A

The matrices must have the same dimensions.

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

What is a scalar?

A

A dimensional quantity - a number

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

What law is A * (B * C) = (A * B) * C ?

A

The associative law

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

What law is A * B = B * A

A

The commutative law

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

Is matrix addition associative/commutative?

A

Yes, both

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

Is matrix subtraction associative/commutative?

A

No. neither

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

Is matrix multiplication commutative?

A

Not in general

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

The composite matrix ABCD should be multiplied from…

A

… right to left

A(B(C(D)))

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

What point always maps onto itself after a linear transformation?

A

The origin

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

(k 0)

0 k

A

An enlargements by scale factor k

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

(k 0)

0 1

A

Stretch scale factor k parallel to X axis

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

(1 0)

0 k

A

Stretch scale factor k parallel to Y axis

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

Rotation, anticlockwise by θ

A

(cos θ - sin θ)

sin θ cos θ

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

G followed by H is …

A

H x G

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

P followed by Q is …

A

Q x P

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

(1 k)

0 1

A

A shear, x - axis fixed, with (0,1) mapped to (k,1)

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

(1 0)

k 1

A

A shear, y - axis fixed, with (1,0) mapped to (1,k)

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

A shear maintains…

A

area

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

Invariant points are…

A

points which map to themselves

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

How do you find points that are invariant under a transformation:
(a b)
(c d)

A

(a b) x (x) = (x)

c d) x (y) = (y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is a plane?
A plane is a flat two-dimensional surface that extends infinitely far.
26
I3 with one -1 is a...
...reflection in a plane
27
I3 with two -1 is a...
...rotation 180 around an axis
28
What is an algorithm?
An algorithm is a FINITE sequence of operations for carrying out a procedure.
29
What are the three conditions for an algorithm?
1. Must be unambiguous 2. Must be deterministic (no chance or randomness) 3. Must be finite
30
How do you find the lower bound for bin packing?
Add all of the lengths together and divide by the bin-size
31
First fit: remember to...
1. Write "saturated"
32
First fit decreasing: remember to:
1. Write out the ordered elements in decreasing order | 2. Write "saturated"
33
True or False: Full Bin strategy is the most efficient bin packing algorithm.
False, because full bin strategy is not an algorithm
34
What is meant by a heuristic algorithm?
An algorithm that will usually find a good solution, although not necessarily an optimal solution.
35
Quick sort: remember to
1. circle pivot | 2. underline sorted values
36
What complexity does quick sort have?
quadratic complexity
37
What is the maximum number of comparisons for quick sort?
0.5 * n^2 * n
38
What is a minimum spanning tree?
A minimum spanning tree is the least weight connected graph that includes every vertex and contains no cycles
39
What is the complex conjugate of a + bi
a - bi
40
z = a + bi ... zz* = ...
zz* = a^2 + b^2
41
What is the complex conjugate root theorem?
If a polynomial with real coefficients has a root z = a + bi, then z = a - bi is also a root. (Roots always come in pairs)
42
What are the first 2 lines of working for the question... A quadratic equation has a root 3-2i. Find the quadratic equation
, if 3-2i us a root, then 3+2i is also a root bit the complex conjugate root theorem. (z - ( 3-2i )) ( z - ( 3+2i )) = 0
43
If a quadratic equation has roots P and Q, write the quadratic equation.
z^2 - (P+Q)z + PQ = 0
44
How do you square root 3+4i?
3+4i = (a+bi)^2 3 = a^2 - b^2 4 = 2ab ^equate real and imaginary parts Solve sim eqs.
45
Multiplying by i... (in terms of argand diagram)
... rotates the number by 90 anticlockwise about the origin
46
180 degrees in radians
pi
47
2pi radians in degrees
360
48
90 degrees in radians
pi/2
49
What is the cartesian form of a complex number?
z = x + iy
50
If z = x + iy, what is θ?
θ = arg(z) = arctan (y/x)
51
If z = x + iy, what is r?
r = |z| = sqrt(x^2 + y^2)
52
What is the range of arguments θ in modulus argument form?
-pi < θ <= pi aka the principal argument
53
Write z in modulus argument form
z = r (cosθ + i sin θ)
54
Multiplying two complex numbers together ...
... multiplies their moduli (length) and adds their arguments
55
Multiplying two complex numbers together ...
... divides their moduli (length) and subtracts their arguments
56
|z| = r represents ...
|z| = r represents a circle centred at the origin with radius r
57
|z-a| = r represents ...
|z-a| = r represents a circle centred at 'a' with radius r
58
arg(z-a) = θ represents the...
arg(z-a) = θ represents the locus of a half line of points from a measured θ from the positive horizontal axis. z=a is NOT a part of the locus
59
|z-a| = |z-b| represents...
|z-a| = |z-b| represents all points which lie on the perpendicular bisector of a and b
60
What two ways are there to solve |z-a| = |z-b|
1. Using the normal perpendicular bisector method | 2. equate equations of circle