Approximate overview
Events
Other good things
Where is Mentor #2?
Running. We wish them luck.
How do we figure out our grade in the class?
Look at the grading criteria, figure out your trajectory.
Will we get credit for the readings if we’re horribly wrong, but we tried?
Yes.
Will we get credit for the labs if we’re horribly wrong, but we tried?
Only if you indicate knowledge of your failure.
“We tried this, this is all we could get, we know it’s wrong, but there’s more to life than CS.”
A little bit wrong should be fine.
What are good numbers for problem 3?
size 10000, rounds 50000
Can you explain the output from time?
cpu time: 915 real time: 914 gc time: 20
cpu timeis how much time is spent with the central processing unit (the part of the computer that computes) working
real timeis wall clock time, more or less
gctime is special time associated with Grinnell College. More seriously,gcis “garbage collection”, the computer cleaning up all those assorted cons cells we left around that we no longer refer to.
All numbers are in milliseconds.
Why isn’t the time scaling the way I expect?
When you run a randomized experiment, your results will vary. Good practice is to run the experiment a few times for each size.
Can you explain what should happen with the tallying?
We should tally the characters in the vector from back to front.
Did you get the starter code wrong?
Yes
(define tally-letters-in-string
(lambda (str)
(let ([tallies (make-vector 26 0)])
(tally-letters-in-string/kernel str
tallies
(- (string-length str) 1))
tallies)))