this post was submitted on 30 Nov 2023
88 points (100.0% liked)

Programmer Humor

20763 readers
1831 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] null@slrpnk.net 1 points 1 year ago* (last edited 1 year ago) (1 children)

But you will see the event happen though.

Not with a binary search.

Edit: just collapse this thread and move on. Cosmic Cleric is an obvious troll.

[–] CosmicCleric@lemmy.world 0 points 1 year ago* (last edited 1 year ago) (61 children)

But you will see the event happen though.

Not with a binary search.

Yes you will.

A binary search is just what it says, it's just for searching only.

When you find that moment in time where the bike was there one moment, and then the next moment the bike's not there, then you view at regular or even slow-mo at those few seconds of the bike in the middle of disappearing, and see the perpetrator, and hopefully can identify them.

[–] lustyargonian@lemm.ee 0 points 1 year ago (5 children)

Binary search only works on sorted data, i.e. you know which side of the mid point is pointing towards the incident. If the incident leaves no trail, you can't know whether you can discard the left side or the right side, making it a complicated linear search at that moment.

load more comments (5 replies)
[–] ShrimpsIsBugs@programming.dev 0 points 1 year ago (1 children)

You either don't know what binary search is or you completely missed the context of this conversation

[–] CosmicCleric@lemmy.world 0 points 1 year ago* (last edited 1 year ago) (1 children)

You either don’t know what binary search is or you completely missed the context of this conversation

I'm a computer programmer. I know exactly what a binary search is. I've written binary searches before.

The search is to get you to the point where you can watch the video to see the crime happening, in hopes of indentifying the perpretrator.

[–] SkippingRelax@lemmy.world 0 points 1 year ago (7 children)

Then you missed the point of this conversation

load more comments (7 replies)
[–] null@slrpnk.net 0 points 1 year ago (1 children)

That doesn't apply to the comment you replied to.

[–] CosmicCleric@lemmy.world 0 points 1 year ago* (last edited 1 year ago) (1 children)

Yes, it does...

But you will see the event happen though.

Not with a binary search.

Yes you will.

[–] null@slrpnk.net 0 points 1 year ago* (last edited 1 year ago) (5 children)

If the event lasts only a moment and leaves no visual cue (e.g. an assault).

How?

load more comments (5 replies)
load more comments (58 replies)