Hacker News new | ask | show | jobs
by knodi123 23 days ago
> Solution; "reboot" the unit by interrupting USB power (with a Pico and MOSFET) every 23 hours

Reminds me of a possible apocryphal anecdote I heard about Alan Turing. He loved going on long bike rides, but one day his bike developed a distressing habit of slipping the chain. After the third time it happened, he realized it was due to a broken tooth on both the front and the back gear. He went back home and calculated how many revolutions of the pedals it would take for both broken teeth to line up when they were at the critical part of the rotation, and he built a little mechanical counter that would click on each link in the bike chain, and at the calculated time, a little arm would reach down and clasp the chain, holding it in place long enough for the teeth to re-engage.

He showed the device to his friend, who said "Why didn't you just buy new gears? You could have gotten both for a dime." And Alan replied "Oh, that's clever, I didn't think of that."

5 comments

A similar anecdote about Turing appears in Neal Stephenson's "Cryptonomicon", except without the clever solution or the "absent-minded professor" stereotype.
A joke told abut Von Neumann:

A student came up to Von Neumann on campus and decided to prank the great scientist. "Two trains are on the same track 50 miles apart and they hurtle towards each other at 50 mph. As they start, a really fast fly on the nose of one train flies towards th eother at 60mph. When it reaches the other train it immediately flies back to the first, then back to the second, and so on until the fly is crushed in the crash. How far will the fly fly?

Von Neumann thought for a moment, and then replied, "30 miles!" The student grinned. "I thought you'd know this one! The trains take half an hour to hit each other, therefore the fly will fly 30 miles."

Von Neumann started. "I didn't think of that, I summed the series."

———

Source: "The Prisoner's Dilemma" by William Poundstone

https://archive.org/details/prisonersdilemma0000poun

A tennis match between two players, A and B, has finished. You are given the complete sequence of points played, in order. Each point is recorded as the letter of the player who won it.

Write a program that reads this sequence and works out which player won the match.

there are multiple ways to compute this but not obvious way is to look at the end of the list and see who scored last point.

Sadly, even if you know who won, You still have to read the sequence or the question won't be fullfilled
Does this require knowing how tennis is scored? Because that solution is not obvious to me at all.
Yes, and this (knowing a priori how tennis in particular is scored being useful for solving a problem) is the exact example that gets used as to why the SAT used to be somewhat biased in favor of people with the "right" background/upbringing/culture.
Tennis is a point-limited game, so yes.
I had this riddle in my math book when I was preparing to the Maths Challenge. However I was unable to sum the series.

Also one train was a boy coming home (stative) and the dog was running

wow, that's great. And since I've convinced myself the Turing story is more fable than truth, I'll start using this one instead.
I read it more as sarcasm than absentmindedness. Those dry Brits!
At one time, Standard Windows IT guidance was daily server reboots. Many sysadmins would write scripts to do that.
Selection bias. People become Turings who enjoy riddles.
Obligatory XKCD https://xkcd.com/530/