Bryce Boe

The Adventures of a UCSB Computer Science Ph.D. Student

Skip to: Content | Sidebar | Footer

Month: March, 2009

Random Lines from a File

23 March, 2009 (01:36) | General | By: Bryce Boe

The following is my python implementation of choosing N random lines with equal probability from a file. This implementation is both memory and time efficient unlike other solutions. This problem was originally brought to my attention after a friend was asked a similar problem at a Google interview. Additionally a few weeks ago I was [...]

How do I end it?

11 March, 2009 (20:59) | General | By: Bryce Boe

Next quarter I am TAing the Operating Systems course at UCSB, which was one of my favorite classes (I even mentioned it here- see junior year), despite it being considered the most difficult required Computer Science course. For our class of ~50 students we had 3 TAs for whom this class sucked the life out [...]

Flat Stanley’s (not so) Adventures at UCSB

3 March, 2009 (21:51) | General | By: Bryce Boe

My brother Connor recently mailed me a letter that read:
Dear Friends and Family,
In Social Studies we have been discussing communities and what makes them work. To help us learn more about other places, we would like to ask you for your help. Included in this letter is our friend Flat Stanley. Stanley has had a [...]