Y
Hacker News
new
|
ask
|
show
|
jobs
by
bequanna
2262 days ago
If the initial test size is 64 and contains a positive, split into two groups of 32 and test each. Continue splitting and testing when a positive is encountered.
1 comments
ced
2261 days ago
Yeah, but this version is not necessarily optimal. If you have 4 positive samples, then you will test 2+2+1+1+1+1 = 8, instead of 4 in the naive case.
It feels like a problem for information theory.
link
bequanna
2261 days ago
I didn’t say it was optimal, but it is a huge improvement on doing 64 tests for 64 samples.
link
ced
2258 days ago
Oh, sure!
link
It feels like a problem for information theory.