Advanced Algorithms
- Draw the graphic examples of Θ, O and Ω notations and give the definitions of each notation.
- What are o(little oh) and ω(little omega) notations. Compare the Θ,O,Ω,o,ω notations.
- Ordering by asymptotic growth rates
lg(lg*n)
2lg*n
(√2)lgn
n2
n!
(lg n)!
(3/2)n
n3
lg2n
lg(n!)
Pow(2,pow(2,n))
n1/lgn
lnln n
lg*n
n.2n
nlglgn
lnn
1
2lgn
(lgn)lgn
en
4lgn
(n+1)!
√lgn
lg*(lgn)
2√2lgn
n
2n
nlgn
2↑(2↑(n+1))
- Solve the recurrence relation T(n)=2T(└n/2┘)+n using ther substitution method.
- Solve the recurrence relation T(n)=3T(└n/4┘)+Θ(n2) using the recursion tree method.
- Give the masters theorem and find the asymptotically tight bounds for the following recurrencesa) T(n)=4T(n/2)+nb) T(n)=4T(n/2)+n2c) T(n)=4T(n/2)+n3.
- Give the bellman-ford algorithm and solve it for the following graph with s as the source node.
- Give the algorithm for sungle-source-shortest-path in a directed acyclic graph and solve it for the following digraph.
9)
Describe the Johnson's algorithm for sparce-graphs.
No comments:
Post a Comment