To me it sounds like they stole the bike.
Comment on Programmer tries to explain binary search to the police
potterman28wxcv@beehaw.org 11 months ago
I do not get why it would work in that case. I assume the scenario is someone with a bike coming, doing theft, then leaving with the same bike.
Therefore there will be a period without bike, then a period with bike, then a period without bike again.
Let’s assume there is no bike on the particular moment viewed. How do you know whether it occured before or after the theft? If you make the wrong decision, you get stuck on an endless binary search… Unless you take note at each timestamp where you made the decision, draw a tree of timestamps, and go back the tree if your search is fruitless but that’s much more complicated than what this post says.
Aatube@kbin.social 11 months ago
potterman28wxcv@beehaw.org 11 months ago
Thanks indeed I misunderstood the problem
SexualPolytope@lemmy.sdf.org 11 months ago
You’re making this way more complicated than it actually is. The guy definitely can give estimates for when he parked the bike and when he found out that it was stolen. It’s not that complicated.
potterman28wxcv@beehaw.org 11 months ago
I misunderstood the problem. I thought the thieve came on bike to steal something. I did not get that the bike itself was what got stolen.