Exam 1 Flashcards
Properties of Logs: LogB(xy) is equal to:
LogB(x) + LogB(y)
Properties of Logs: LogB(x/y) is equal to:
LogB(x) - LogB(y)
Properties of Logs: Convert LogB(x) To LogA:
LogA(x)/LogA(b)
Properties of Logs: LogB(x^n) is equal to:
nLogB(x)
Properties of Logs: x^(LogB(Y)) is equal to:
Y^(LogB(x))
Master Theorem: What is the formula for master theorem in terms of a, b, and d:
T(n) = aT([n/b]) + O(n^d)
Master Theorem: According to master theorem, what is the time: if d > logB(a)
O(n^d)
Master Theorem: According to master theorem, what is the time: if d = logB(a)
O(n^d log n)
Master Theorem: According to master theorem, what is the time: if d < logB(a)
O(n^(logB(A))
Roots of Unity: Multiply: (r1, theta1) (r2, theta2)
([r1 * r2],[Theta1 + Theta2])
Roots of Unity: Given the following equation for Z, what would -Z be. Z = (r, theta)
-Z = (t, theta + pi)
Roots of Unity: Roots of unity can be solved using the formula Z = (r, theta) What is the nth root of unity: E.g. Z^n = ???? (Assume a unit circle)
Z^n = (1, n*theta)
Complex Roots of Unity Reference Card
What are 5 steps in the FFT algorithm
(in order, high level)
FFT(A, w)
1) if w = 1: Return A(1)
2) Express A(w) in the forms Ae + xAo
3) r1 = Call FFT(Ae, w^2) - evaluate Ae at even power roots of unity.
4) r2= Call FFT(Ao, w^2) - evaluate Ao at even power roots of unity.
k = n/2
5) Loop j = 1 to k - 1:
r[j] = r1[j] + w^j * r2[j]
r[j+k] = r1[j] - w^j * r2[j]
Return = r[0…n]
What is the process called that takes values from FFT and converts them back into Coefficients?
How is it done?
Interpolation
Rerun the FFT using the values and the inverse of the roots of unity.
Coefficients = 1/n FFT(, w^-1)
What is the Big O time for the FFT Algorithm?
n log n