Schedule
-
Project 2, Part 1 is due Sunday, 22 February.
-
Reading: finish reading through Chapter 8: Mining and Consensus.
Quiz
Cost of Computation
int gaussSum (int m) {
int sum = 0;
for (int i = 1; i <= m; i++) {
sum = sum + i;
}
return sum;
}
How would a cs2110/cs2150 student analyze the above code?
When is asymptotic analysis appropriate, and when is it essentially useless?
What is the cost of executing this code in practice?
Comments