































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































































1
Fast Fourier Transform
The University of Sydney Page 4
4
The University of Sydney Page 5
5
6
5 4
4 3 3 2
(^3 2 2 1) (^2) 1 1 0
2 (^1) 1 1 (^0) 1 0
(^1 )
let's leverage all the repeats!
0
The University of Sydney Page 11
6
5 4
4 3 3 2
(^3 2 2 1) (^2) 1 1 0
(^2 1) 1 1 (^0) 1 0 (^1) 0
let's leverage all the repeats!
0
fib(n) if n is 1 or 2, return 1; if M[n] is not zero, return M[n]; M[n] = fib(n-1) + fib(n-2); return M[n];
Time 0 1 2 3 4 5 6 7 8 9 10 11
f g h
e
a b c d
...
J 1 J 2 Jr
i 1 i 1 ir ir+
...
solution still feasible and optimal, but contradicts maximality of r.
Jr+
job ir+1 finishes before Jr+
Greedy:
Time 0 1 2 3 4 5 6 7 8 9 10 11
f g h
e
a b c d
Time 0 1 2 3 4 5 6 7 8 9 10 11
b
a
weight = 999
weight = 1
doesn’t work
OPT ( j ) =
0 if j = 0 max (^) { v (^) j + OPT ( p ( j )), OPT ( j −1)} otherwise
maximum