andioop,
lemmesay,
@lemmesay@discuss.tchncs.de avatar

image transcription:

Afterwards I found a chatroom thread among Cambridge computer scientists, one of whom had also been told that unless he could pin down the moment of theft no one would look at the footage. He said he had tried to explain sorting algorithms to police - he was a computer scientist, after all. You don’t watch the whole thing, he said. You use a binary search. You fast forward to halfway, see if the bike is there and, if it is, zoom to three quarters of the way through. But if it wasn’t there at the halfway mark, you rewind to a quarter of the way through. It’s very quick. In fact, he had pointed out, if the CCTV footage stretched back to the dawn of humanity it would probably have only taken an hour to find the moment of theft. This argument didn’t go down well.

CurlyMoustache,
@CurlyMoustache@lemmy.world avatar

This is how I look for the best bits in porn

cRazi_man,

Fast forward half way and see if the woman is still there?

xaxl,

I fast forward half way and pray she still isn’t slobbering on some knob at that point and they’ve gotten down to businesses already.

doctorcrimson,

It’s got huge amounts of applicability in many lifestyles and situations that most people never realize until the moment arrives. I once played a fun game that had you guess a number between 1 and 1 Billion with them telling you higher or lower to earn your freedom. Takes a couple of minutes at most.

yum13241,

Your first guess should always be 500,000.

doctorcrimson,

500,000,000*

yum13241,

Thanks.

groucho,
@groucho@lemmy.sdf.org avatar

The final project in my instrumentation class was to tune a PID controller for a hot/cold mixing valve. I (CS/ENG) was paired up with an engineering student and a lot of it was throwing parameters in, seeing if weird shit happened, and then turning down or up based on the result. I had a programming final and something else I was supposed to be studying for, so I just started doing a binary search with the knobs. We got the thing tuned relatively fast and my partner acted like I was a wizard.

clericc,

How do you do a binary search for an open-end scale (are PID params open-end?) and three knobs at the same time when they interdepend in their influence? I need to know since i have a PID tuning on my personal projects plate

groucho,
@groucho@lemmy.sdf.org avatar

It’s been ages, but we’d done rough calculations for the three controls so we roughly knew what we needed. Our teacher was big on manually tuning instead of just using formulas since he thought just running numbers “lacked artfulness.”

So we grabbed a point and started searching around manually. I think we were just tuning the derivative portion at that point, trying to get a fast response without the system without it going chaotic and noisy.

rekabis, (edited )

“This argument didn’t go down well.”

🤣🤣🤣 LMAO

What an awesome punchline, should have been on its own line for more impact.

rgb3x3,

I’m realizing now that this would have been super useful when I worked in Loss Prevention way back when. Wish I had known…

coloredgrayscale,

Even without algorithm knowledge it should be fairly obvious that you can just fast forward several minutes and check if the item has gone missing.

Not the most efficient solution, but beats watching the entire tape in real time.

pressanykeynow,

You can now go back working there with this new secret technique.

Mubelotix,
@Mubelotix@jlai.lu avatar

It would have taken 5 minutes at most

I_am_10_squirrels,

On my site’s security nvr, it takes five minutes just to convince it that you want to search a particular camera

Agent641,

But thats 5 minutes of killin’ time they’ll never get back

Valmond,

Yeah, even if it was from the beginning of dawn. No need to check out tape before the guy parked his bike.

heimchen,

My Graphics card/ssd wouldn’t be able to handle the skipping of such big files

TheBlue22,

Police try to understand anything challenge (100% impossible) (gone sexual) (gone violent)

TerrificTadpole,

We just give all the tools to solve crimes to people who have no idea how to use them, no biggie.

Madison420,

*have a perverse incentive to not know how to use them or to know things about their job generally.

zbyte64,
@zbyte64@lemmy.blahaj.zone avatar

Sat on jury duty. We literally said not guilty because the officer was supposed to follow a process for line ups and they didn’t even do the bare minimum. They were like we got out guy

doctorcrimson, (edited )

I once had a friend who was robbed of all kinds of stuff including a PS3, and that the guy was signed into his Netflix changing account profiles the very same day. I told him he can just get a tracking number by calling Playstation and that the active police officer can use it to track them. Thing is, the officer ghosted him for like 8 months despite having everything they needed to immediately find the exact location of the perpetrator actively using the stolen property.

Cihta,
@Cihta@lemmy.world avatar

They don’t care really. As has been my experience anyway.

I once had my car window smashed, a mix of gear taken…some was expensive, some was personal to me. I felt violated. Called the police, explained, gave S/Ns to what I could, told them exactly who did it. He didn’t give a shit. Actually made me feel like I was wasting his time. I think Seinfeld covered this…

“We’ll let you know if we find anything” “Do you ever find anything?” “No”

But oh, my reg is out of date and the plate scanner picked it up? Boom, they really kick it into gear. So that’s $130… i could just go take care of the tags immediately with a friendly warning but now don’t even want to. And in the end I end up pretty fucked.

If only they put that effort into other things I just might have gotten my linear power amps back. Props to anyone who knows that product.

Alph4d0g,

I’m sure it didn’t go well. If it was somehow framed in a sycophantic way where the police were led to believe it was their idea, I’m sure it would have gone better. Wait that might not be too difficult to do.

tocopherol, (edited )
@tocopherol@lemmy.dbzer0.com avatar

You just have to say there was a weird technique the Nazi’s liked to use.

pressanykeynow,

They probably already know all Nazi techniques.

andthenthreemore,
@andthenthreemore@startrek.website avatar

Na. If it’s British police it’s just an excuse. All they’re there for after all these years of Tory cuts is to give you a reference number so you can make an insurance claim.

lingh0e,

A police officer being unable to think in such a fashion is exactly why no one could solve the see-saw riddle on Brooklyn 99.

Mr_Dr_Oink,

How do you solve that? I saw a solution in the comments where it says to start with numbering all the people and butting 1234 and 5678 on the see saw, then it says if they weight the same then continue and that seems to work. But if they dont weigh the same it doesnt work and it doesnt say what to do in that case.

NotSoCoolWhip,

If 1234 and 5678 don’t weigh the same youd need 4 seesaws in some cases

adrian783,

you can do it like you weight 6v6 then 3v3 then for the last weighing you weight the 2 out of 3.

or you weigh 4v4 to find out which grouping of 4 the light weight person is in, then do 2v2 and 1v1.

ChairmanMeow,
@ChairmanMeow@programming.dev avatar

You don’t know if the person is lighter or heavier yet.

Sagifurius, (edited )

That’s not the question. Either the scales balance, and the third is heavier or lighter, or the scales don’t balance and you get both answers, but the question is purposely framed this way

ChairmanMeow,
@ChairmanMeow@programming.dev avatar

I mean that not knowing it is part of the question, and the proposed solution doesn’t work without knowing if the person is heavier or lighter.

If you know if the person is heavier or lighter, the question becomes trivial.

Sagifurius,

The question is to figure out who is different, not how they are different. That takes one more step, half the time.

Mr_Dr_Oink,

The question was to find who doesnt weigh the same and if its heavier or lighter. Watch the clip again.

Sagifurius,

That’s easy enough to answer, but he really should work on his grammar. In that case you just do 3 groups of three, weigh two of them. If they’re even, the third group is different. Weigh 2 membres of the third group, they’ll either be even or one heavier. Weight the last member against the heavier one from step 2 to see if they’re even or not for your answer.

Mr_Dr_Oink,

Thats 4 uses of the seesaw. It has to be 3.

Sagifurius,

That three dude

Mr_Dr_Oink, (edited )

Im sorry when i read weigh two of them i counted it as two separate weighings of two sets of groups. My bad.

What about the 4th group? There are 12 people

Sagifurius, (edited )

Well I meant to write 3 groups of four. Same general thought just adjust the logic somewhat

Mr_Dr_Oink, (edited )

I’ve had a look into it, and it doesn’t work if you try to do it mathmatically. You always need more than 3 gos on the seesaw.

There is a solution in the replies to my original comment that is the actual solution, and it works every time and is much simpler than any grouping method.

It involves assigning a letter to each person and then aligning that with a grid of positions “left” or “right” or “none” on the seesaw. Over the three rounds. So, person A is on the right all three rounds person b is on the right for 2 rounds then on the left for the 3rd round.

You end up with a list of 12 patterns that do not repeat or mirror any other pattern like “LLL” “LLR” “LRR” “LR-” etc. Then you do all three rounds and compare the position the seesaw was in with those patterns.

If the seesaw was down on the left 2 times the down on the right the third time then you look for which person had that pattern in this case it was person B. So they are the one with a different weight and they were heavier.

Equally, if the opposite pattern occurred. It was down on the right 2 times, then down on the left for round, then that is the opposite pattern of person B and does not occur anywhere else, so it was person B, and they were lighter.


<span style="color:#323232;">person:  A B C D E F G H I J K L
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 1: L L L L R R R R — — — -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 2: L L R R R — — — L R L -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 3: L R R — — L R — L L — R
</span>
ChairmanMeow,
@ChairmanMeow@programming.dev avatar

Yes, I’m aware. But with 12 people you can’t simply divvy the groups in threes constantly, because if you weigh and the groups are unequal, then you don’t know in which group the different person is (yet). E.g., weighing ABCD - EFGH can tell you the different person is in IJKL if the groups are even, but if they’re uneven you don’t know in which of the other two groups the different person is.

RoyaltyInTraining,
@RoyaltyInTraining@lemmy.world avatar

Where is the piped bot when you need it

Venat0r, (edited )

You can just replace the domain of the url with piped.video:

Piped.video/Mgqqzt6Iah4

skydivekingair, (edited )

For those looking for the handout:

person: A B C D E F G H I J K L

round 1: L L L L R R R R — — — -

round 2: L L R R R — — — L R L -

round 3: L R R — — L R — L L — R

drislands, (edited )

This would be easier to parse with a monospaced font. I’m not sure how that works in lemmy so this might take an edit or two…


<span style="color:#323232;">
</span><span style="color:#323232;">round 1: L L L L R R R R — — — -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 2: L L R R R — — — L R L -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 3: L R R — — L R — L L — R```
</span>
Mr_Dr_Oink, (edited )

Oh i get it. So if in round 1 it tilted down on the right. Round 2 it was even then round 3 it tilted down on the right then it was person G and they are heavier. However if it was reversed and tilted on the left then even then left then it was still person G but they are lighter. Because that pattern only occurs once. This is brilliant. Thankyou to you and the person you corrected the formatting of.

skydivekingair,

Cool, thanks. I’m not the best at formatting when using my phone.

LUHG_HANI,
@LUHG_HANI@lemmy.world avatar

This sparked something magical OP.

The_Picard_Maneuver,

And I had worried about it being a picture of text.

uis, (edited )
@uis@lemmy.world avatar

This student should never go to xitter. Or will be canceled instantly.

fl42v,

Sure, fuck xorg knockoff. What’s the connection here, tho?

uis,
@uis@lemmy.world avatar

Binary search. They don’t like it.

ntzm,

Wtf are you talking about?

uis,
@uis@lemmy.world avatar

Binary search

HiddenLayer5,
@HiddenLayer5@lemmy.ml avatar

Pfft, didn’t even try to enhance the footage. They’re obviously not cut out for forensics work.

Elon_Musk,
@Elon_Musk@hexbear.net avatar

What are we supposed to believe this is some sort of magical VCR?

psud,

Most security cameras record mpegs to hard drives

Pazuzu, (edited )

I thought this had to be hyperbole, so I did the math myself. I’m assuming human history is 200,000 years as google says, and we want to narrow this down to the second the bike disappeared. also that the bike instantly vanished so there’s no partially existing bike.

each operation divides the time left in half, so to get from 200k years (6.311×10^12 seconds) to 1 would take ~42.58 divisions, call it 43. even if we take a minute on average to seek and decide whether the bike is there or not it would still be less than an hour of manual sorting

hell, at 60fps it would only take another 6 divisions to narrow it down to a single frame, still under an hour

edit: to use the entire hour we’d need a couple more universes worth of video time to sort through, 36.5 billion years worth to be exact. or a measly 609 million years if we need to find that single frame at 60fps

rekabis, (edited )

Combine AI image/visual-pattern recognition and quantum computing, and this search could be completed before it was even started.

madcaesar,

We can go deeper!

Syldon,
@Syldon@feddit.uk avatar

A minute to decide if there is a bike in the picture really ?

sukhmel,

They must be really bad at solving CAPTCHA

Pazuzu,

Takes time to precisely seek to each timestamp, but really I just meant that an hour was reasonable even with a lazy cop doing the search

Deuces,

As a robot, finding bikes in pictures is really hard, okay

MagnoliaMayhem,

Just watch at 3X!

Moneo,

Lemmy learns exponential math.

Mostly joking, thanks for doing the math.

psud,

History is about 10k years, the 200k years is mostly pre-history. People didn’t write stuff down until they invented agriculture and needed to track trade between owners, workers, etc

PointAndClique, (edited )
@PointAndClique@hexbear.net avatar

True and interesting to note. OOP says ‘dawn of humanity’ though, not recorded history, so taking 200k as ‘human history’ is also valid.

psud,

Yeah, I’m used to the narrower meaning of “history”, meaning recorded. I like that definition as it lets you differentiate between it and prehistory.

PointAndClique,
@PointAndClique@hexbear.net avatar

Definitely a useful distinction.

sukhmel,

Well, in this case it must have been recorded on video, so could as well start recording before inventing the writing

stockRot,

Ever heard of a logarithm? If you haven’t, you just reinvented it.

Also, your math is wrong: log base 2 of 200,000 is ~18

CoderKat, (edited )

You did 200k years. You need to do 200k years as seconds (the 6.311e12 they mentioned). Their math is right.

Not sure why you’re acting like they claimed to invent the logarithm, either…

rckclmbr,

I regularly bisect commits in the range of 200k (on the low end) for finding causes of bugs. It takes me minutes. Pretty crazy

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 36