6.1200 Exam 2 Flashcards

1
Q

3 equivalent ways to write gcd(a,b)

A

gcd(a,b-a)
gcd(b, a rem b)
gcd(a, b rem a)

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

Bezout’s identity

A

gcd(a,b) can be written as the smallest ILC of a and b

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

a has an inverse mod n if

A

a and n are relatively prime

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

is p is prime and a isn’t a multiple of p

A

a has an inverse mod p

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

Fermat’s Little Theorem

A

is p is prime and a isn’t a multiple of p then a^(p-1) = 1 mod p

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

Perfect matching

A

|V|/2 edges

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

Maximal matching

A

matching isn’t a subset of any other matching

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

Maximum matching

A

matching size is smaller than any other matching

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

GS terminates by what day

A

(N-1)^2 + 1

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

edges of tree with n vertices

A

n-1

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

vertices of tree with n edges

A

n+1

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

every tree with n>=2 vertices has #leaves

A

at least 2 leaves

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

synonyms for tree

A

connected, acyclic graph
connected and n-1 edges
acyclic and n-1 edges
every pair of vertices in G is connected by a unique path
G is minimally connected
G is maximally acyclic

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