SEM 2 Flashcards

(40 cards)

1
Q

Can the hcf be negative

A

Yes

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

What is the prime number formula (Works up to n = 41)?

A

P(n) = n^2 - n + 41

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

What are the steps of mathematical induction?

A

Prove P(N) is true

Prove P(k+1) is true given P(k) is true

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

Strong induction?

A

Like mathematical except

P(k + 1) is true when P(N), P(N + 1) … is true

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

What is fermats little theorem?

A

a^p = a mod p

a^p-1 = 1 mod p (if p is not factor of a)

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

Key generation: n = ?

A

pq

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

Key Gen: e = ?

A

e is between 1 and (p-1)(q-1) and

e and (p-1)(q-1) are coprime

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

Key gen: d = ?

A

d > 0 such that

de == 1 mod (p-1)(q-1)

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

What is the public key?

A

(n,e)

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

What is private key?

A

d

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

How to encrypt?

A

For each value M

c = M^e mod n

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

How to decrypt?

A

M = c^d mod n

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

How to find inverse of 2x2 matrix?

A

1/ad - bc (d, -b, -c, a)

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

How to find inverse of any matrix (not 2x2)

A
  • Write identity matrix next to it
  • Turn left side into identity matrix and right side is inverse
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is minor?

A

Determinant (without working out result)

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

What is cofactor?

A

Multiply minor by -1

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

When does a system of linear equations have a unique solution?

A

When determinant != 0

18
Q

When is a matrix invertible?

A

When the determinant != 0

19
Q

If a matrix is diagonal what are its eigenvalues?

A

The diagonal elements

20
Q

What makes a matrix similar?

21
Q

Do similar matrices have the same characteristic polynomials and eigenvalues?

22
Q

What makes A diagonalisable?

A

If there is a diagonal matrix which is similar

23
Q

Cartesian product?

A

Set of ordered pairs

24
Q

Permutation? P(n,k)

A

n! / (n-k)!

  • ordered collection
25
Combinations? C(n,k)
n! / k! (n-k)!
26
Probability space consists of?
Sample space and probability function
27
Conditional probability? A given B
P(A n B) / P(B)
28
Bayes theorem? (A given B)
P(B | A)P(A) / P(B)
29
Law of total probability?
P(A) = P(A|B1)P(B1) + ... + P(A|Bn)P(Bn)
30
Expectation value?
Sum of: x * p(x)
31
Var?
E(X^2) - E(X)^2
32
sd?
Root varience
33
Bernoulli distribution?
- Range of possible values 0 -1 - P(x = 1) = p - P(X = 0) = 1- p - E(X) = p - var(X) = p(1-p)
34
Binomial distribution
- Range up to n - P(X = k) = C(n,k)p^k(1-p)^n-k for each k - E(X) = np - var(X) = np (1-p)
35
Poisson distribution?
- Unlimited range - P(X = k) = (lambda)^k/ k! * e^ -(lambda) - E(X) and var(X) = lambda
36
Difference eqution?
vk+1 = Avk
37
Solve difference equation?
vk = A^k v0
38
Markov process?
- Calculate prop for event a and event b using given info - Place in Mx = b (each value matrix) - For given time distribution is given by M^k x
39
Transition matrix?
Probability of moving from state to state as a vector
40
Markov process (Long term behavior)?
vk = v - v is (lambda)-eigenvector of M