6.1200 Exam 2 Flashcards
(13 cards)
3 equivalent ways to write gcd(a,b)
gcd(a,b-a)
gcd(b, a rem b)
gcd(a, b rem a)
Bezout’s identity
gcd(a,b) can be written as the smallest ILC of a and b
a has an inverse mod n if
a and n are relatively prime
is p is prime and a isn’t a multiple of p
a has an inverse mod p
Fermat’s Little Theorem
is p is prime and a isn’t a multiple of p then a^(p-1) = 1 mod p
Perfect matching
|V|/2 edges
Maximal matching
matching isn’t a subset of any other matching
Maximum matching
matching size is smaller than any other matching
GS terminates by what day
(N-1)^2 + 1
edges of tree with n vertices
n-1
vertices of tree with n edges
n+1
every tree with n>=2 vertices has #leaves
at least 2 leaves
synonyms for tree
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