


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of lecture slides from cs1112, a computer science course, covering various topics including errors in calculating earth's surface area, the apportionment problem, sensitivity analysis, and the page rank algorithm. The slides also include examples and code snippets.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Congressional apportionment Sensitivity analysis
December 4, 2008 Lecture 27 6
A. Math error in myPi
B. Measurement error in r
C. Rounding error in arithmetic
D. All of the above
December 4, 2008 Lecture 27 11
December 4, 2008 Lecture 27 16
( )
( ) ... ( 1 )
( 1 )
d n
pn
d
p ≈ ≈
December 4, 2008 Lecture 27 29
December 4, 2008 Lecture 27 34
See posted version for detail
December 4, 2008 Lecture 27 36
December 4, 2008 Lecture 27 44
December 4, 2008 Lecture 27 46
1
2
3
December 4, 2008 Lecture 27 47
December 4, 2008 Lecture 27 52
December 4, 2008 Lecture 27 55
December 4, 2008 Lecture 27 67
December 4, 2008 Lecture 27 70
[sorted, idx] = sort(-statVec); for k= 1:length(statVec) j = idx(k); % index of kth largest pR(j) = k; end
December 4, 2008 Lecture 27 71
Repeat: You are on a webpage. If there are no outlinks Pick a random page and go there. else Flip an unfair coin. if heads Click on a random outlink and go there. else Pick a random page and go there. end end
In practice, an unfair coin with prob .85 heads works well.
December 4, 2008 Lecture 27 72
Connectivity
Transition Probability
December 4, 2008 Lecture 27 76
December 4, 2008 Lecture 27 77