News for hackers. Stuff that matters.
Re:Cylinders in Spheres by eps on Wednesday July 09, 2014 @03:29PM (#8011751)
#2 is 3/Pi.

It's a good puzzle and it helps to know the answer :)

Re:Cylinders in Spheres by baddox on Wednesday July 09, 2014 @07:44PM (#8012847)
Maybe it's just me, but that one could use better wording. Because of the "exactly one foot apart" phrase, I interpreted it to mean that there are only two parallel lines, which obviously makes it a poorly defined problem. I probably would have understood it if the phrase was replaced by "at one foot intervals."
Re:Cylinders in Spheres by alok-g on Wednesday July 09, 2014 @11:58PM (#8013529)
I fell for this too. My initial answer, suspect of course, was thereby zero. :-)
Re:Cylinders in Spheres by Chinjut on Wednesday July 09, 2014 @03:39PM (#8011796)
Rather, 2/pi.

The nice answer (referred to above as a "cheat") is to note that the sought probability is the mean number of crossings made by a 1 foot needle with the lines on the floor, where we are implicitly supposing our throw-distribution to be uniform with respect to both translation and rotation. This uniformity, along with "linearity of expectation", is such that the mean number of line-crossings from throwing any shape is simply proportional to the length of the shape (imagine breaking the shape up into many tiny straight lines, all identical except for location and orientation, the number of which is proportional to the length). Note that a circle of 1 foot diameter always makes exactly 2 crossings. Thus, the constant of proportion is 2/pi per foot, and accordingly the sought probability is 2/pi.

Re:Cylinders in Spheres by mdkras on Wednesday July 09, 2014 @05:12PM (#8012261)
#2 is called this: http://en.wikipedia.org/wiki/Buffon%27s_needle. This is also mentioned in Jordan Ellenberg's book How Not to Be Wrong, and has a similar passage with your explanation above. I mention the book as much because it's a great read.