I am watching House. The double episode where a weed-growing cop dies and Foreman gets sick. And besides a cliche CPR mistake that seems below the series, House makes a sort of...error. Not to much an error as doing something unsmart. Of course, I'm writing this during a commercial break, so maybe he will fix it, but the solution popped into my head immediately:
They gave Foreman an array of medications for various toxins. They don't know which one is fixing hit problem, but having them all at once are killing his pancreas. They can tell if the meds are fighting the infection. Removing one at a time would be too slow.
The quickest way to figure it out would be to remove half the meds. If the infection comes back, (or doesnt), we know which half of the meds the good one is in. Switch Foreman to the half that still works, and cut it in half again. It called binary search, and while people laugh at me when I mention it in social conversations, they'll be sudden fans of the algorithm if their lives ever depend on identifying one of a set of possibilities using a time consuming boolean test. So There.
Grrr.
[Edit]
House just tossed a vial full of some virus into a contamination chamber. I forgive him.
Subscribe to:
Post Comments (Atom)

I laughed out Loud... For real.
ReplyDeleteAlso:
"Not to much an error as doing something unsmart."
Should be:
"Not TOO much an error as doing something unsmart."