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_2_Review_Javier_Joya

Test_2_Review_JJ

Posted in Uncategorized | Leave a comment

11.2 problem 20 for test review 2. Jose nunez

Posted in Uncategorized | 2 Comments

Test #1 Review 3.3 #1– Mark Evertson

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

Jose nunez problem 20 from chapter 3.1

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