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
Category Archives: Uncategorized
Merge and mergesort
Head’s up: after Wednesday’s quiz, we’ll use the master theorem to determine a big-O estimate for the complexity of the mergesort algorithm. Today you and your partner implemented the merge algorithm on the ordered sets of numbers that you chose. … Continue reading
Posted in Uncategorized
Leave a comment
Rivka Ligier Test #2 Review: 11.4 #15
Use the depth-first search to produce a spanning tree the given sample graph. Choose a as the root of this spanning tree and assume the vertices are ordered alphabetically. Excuse my horrible drawing 🙂
Posted in Uncategorized
1 Comment
Test #1 Review – Rivka Ligier Section 3.1 Ex: 24
Question: Describe an algorithm that determines whether a function from a finite set to another finite set is one-to-one Code/Algorithm: Procedure one-to-one([A=(a1,a2,a3, …], [B= b1, b2, b3 …] : integers) for i = 1 to m k = 0 (counter variable) … Continue reading
Posted in Uncategorized
Leave a comment
Binary Search Tree Algorithm
procedure insertion( : binary search tree, : item) root of {a vertex not present in has the value null } while and if then if left child of then left child of else add new vertex as a left … Continue reading
Posted in Uncategorized
Leave a comment
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
Reminders/update
Monday, February 15 is Presidents’ Day, so our next meeting is Wednesday, February 17. You’ll complete Quiz #2 (based on homework #2) then. Feel free to post discussion questions on the OpenLab at any time. Don’t forget to add the … Continue reading
Posted in Uncategorized
Leave a comment