Header Image
Creative Commons image courtesy of Flickr user StormPetrel1-
Recent Posts
Recent Comments
- In the Spotlight: MAT2540 – Discrete Structures and Algorithms II – The Open Road on Links
- OpenLab Workshop for Opening Gateways Fellows | 2018-2019 Opening Gateways Faculty Seminar on Final Exam Review
- Eric on Eric’s Final Review
- Kate Poirier on Hints/reminders from today’s class
- Kate Poirier on Final Exam Review
Archives
Categories
Meta
Monthly Archives: March 2016
Test #1 Review – [Benjamin Lin] section 3.1 #20
Code: Find max and min (a1,a2…..an) max = min = ai i = 2 from ( i to n) if ai < min min = ai if ai> max max = ai return min, max
Posted in Test #1 Review, Uncategorized
1 Comment
Test #1 Review – Brian Gil
Section 3.3 = #3 Give a big-θ estimate for the number of operations of this algorithm: m := 0 for i := 1 to n for j := i +1 to n m := max(aiaj, m) The values of i and … Continue reading
Posted in Test #1 Review
1 Comment
Section 3.2 #42
42. Suppose that f (x) is O(g(x)). Does it follow that 2^f (x) is O(2^g(x))? f (x) is O(g(x)) or f(x) ≤ g(x) Then 2^ f(x) ≤ 2^g(x) Therefore, 2^f(x) is O(2^g(x))
Posted in Homework, Test #1 Review
3 Comments