University of Guelph (U OF G ) • The Analysis and Design of Computer Algorithms
Latest uploads for The Analysis and Design of Computer Algorithms at University of Guelph (U OF G ). Looking for The Analysis and Design of Computer Algorithms notes at University of Guelph (U OF G )? We have lots of notes, study guides and study notes available for The Analysis and Design of Computer Algorithms at University of Guelph (U OF G ).
-
1
- 0
- 0
Courses The Analysis and Design of Computer Algorithms at University of Guelph (U OF G )
Notes available for the following courses of The Analysis and Design of Computer Algorithms at University of Guelph (U OF G )
-
CIS 3490 CIS 3490 1
Latest content University of Guelph (U OF G ) • The Analysis and Design of Computer Algorithms
University of Guelph 
CIS 3490 W25 – Final Exam (April 12, 2:30 PM) Solutions 
Instructor: Joe Sawada and Daniel Gabri´c 
1 
1. Consider the following pseudocode given a two dimensional array G, and a list of integers 
stored in array A. 
1: for i from 1 to n do 
2: d ← 0 
3: for j from i + 1 to n do d ← d + G[i][j] 
4: Print(“The degree of i is d”) 
5: MergeSort(A[i..n]) 
Let f(n) denote the number of steps carried out by this code in the worst case, as a function 
of the input n. Wh...
- Exam (elaborations)
- • 16 pages's •
-
University of Guelph•CIS 3490