A3 answers

264 views
Skip to first unread message

Jennifer Webb

unread,
Apr 21, 2013, 2:11:40 AM4/21/13
to cs49...@googlegroups.com
Here are my answers for A3, Section 2 part 1:

1. C
2. II
3Algorithm Smart: O(n) , Algorithm NotSmart: O(n); Algorithm Foolish does not terminate 
41. summation value = n; value in theta notation= Θ(n)

    2. summation value = n(n+1)/2; value in theta notation=Θ(n2)

    3. summation value = n(n+1)(2n+1)/6; value in theta notation = Θ(n3)

    4. summation value = n2(n+1)2/4 ; value in theta notation = Θ(n4)

5. B

6T is always a spanning tree but not necessarily minimal 

7. True

8. True

9. True


I will post the work tomorrow night..

Jennifer Webb

unread,
Apr 22, 2013, 12:57:23 AM4/22/13
to cs49...@googlegroups.com
Here's all my work
A3S2-1.jpg
A3S2-2.jpg
A3S2-3.jpg
A3S2-4.jpg

Christopher Rivas

unread,
Apr 22, 2013, 9:51:06 AM4/22/13
to cs49...@googlegroups.com
I am not sure about your work for #7. I've never seen that you can say "lim n^2 = lim n^3",
but I do agree that #7 is true because you can always find a constant M such that f (x) < M * g(x), where f(x) is the original function, and g(x) = n^3 for ANY x0 > x (the theory thing says ALL, but meh)
Reply all
Reply to author
Forward
0 new messages