1 point

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.

permalink
report
reply
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
reply
3 points
*

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

permalink
report
reply
1 point
*

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

permalink
report
parent
reply
1 point

We can go deeper!

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
-1 points

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
1 point

Just watch at 3X!

permalink
report
parent
reply
1 point

Lemmy learns exponential math.

Mostly joking, thanks for doing the math.

permalink
report
parent
reply
1 point

Part of my job is to review security footage for reported incidents.

If there is a long-lasting visual cue that the event has or has not happened yet (e.g. a window is either broken or not), then a binary search is very useful.

If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

permalink
report
reply
0 points

If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

But you will see the event happen though.

It’s a matter of if you can identify who the perpetrator is or not, but at least that due diligence should be done by police, looking at the person doing the crime and see if they can be identified.

permalink
report
parent
reply
1 point
*

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.

permalink
report
parent
reply
0 points
*

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.

permalink
report
parent
reply
6 points

This argument did not go well

You can’t convince people to do their job with logic when they just don’t want to do their job. After minorities, the thing cops hate most is doing their job.

permalink
report
reply
1 point

Come on, don’t disparage our hard-working Boys in blue. Without police who’s going to come to your house to take notes about the crime that you have sufficient evidence to prove, and even have a likely suspect for, and then never follow up?

permalink
report
parent
reply
3 points

WRONG! After minorities, it’s poor people. Then doing their job. :P

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.7K

    Monthly active users

  • 878

    Posts

  • 14K

    Comments