1175
you are viewing a single comment's thread
view the rest of the comments
[-] Shalaska@programming.dev 13 points 1 year ago

Because that will fail to detect a program that halts in X+1 time. The problem isn’t to detect if a program that halts halts, the problem is to generally create an algorithm that will guarantee that the analyzed program will always halt given an infinite time running on an infinite computer.

[-] Brainsploosh@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

But you could also do a mean time analysis on specific tasks and have it cut off at a standard deviation or two (90-98% of task times covered), and have a checkbox or something for when the user expects longer times.

You could probably even make this adaptive, with a cutoff at 2x the standard time, and updating the median estimate after each run.

this post was submitted on 02 Oct 2023
1175 points (98.6% liked)

Programmer Humor

19488 readers
1199 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 1 year ago
MODERATORS