←back to thread

108 points BerislavLopac | 1 comments | | HN request time: 0.319s | source
Show context
graycat ◴[] No.43714234[source]
Well, for a computer that is a finite state machine there are only finitely many states. So, in finite time the machine will either (a) halt or (b) return to an earlier state and, thus, be in an infinite loop. So, in this case can tell if the "program will stop" and, thus, solve "the halting problem".

Uh, we also assume that before we start, we can look at the design of "the machine" and know how many states there can be and from the speed of the machine how many new states are visited each second. So, we will know how long we have to wait before we see either (a) or (b).

replies(6): >>43714273 #>>43714285 #>>43714402 #>>43714513 #>>43714742 #>>43717019 #
Sankozi ◴[] No.43714285[source]
Yes, lots of these problems assume fantasy infinite world.

Big O notation also suffers from this - it's almost useless for real world problems.

replies(5): >>43714298 #>>43714309 #>>43714328 #>>43714554 #>>43718244 #
virgilp ◴[] No.43714309[source]
> Big O notation also suffers from this - it's almost useless for real world problems.

This is quite a bold claim. Yeah "in the real world" you often need to take into consideration the constant factors... but to go this far to say that Big O is useless? It's very useful to figure out what would likely work (or not) for your problem, given that you know the data size - I used it for exactly that, many many times.

replies(1): >>43714338 #
Sankozi ◴[] No.43714338[source]
Let's say you have 2 algorithms. Constant time O(1) and exp time 2^n. It seems constant time is better. But in fact it runs always 42 years. While exp one starts to run longer than millisecond for sizes bigger than number of particles in universe.

Big O says how fast complexity grows, but it doesn't say what that complexity exactly is.

Does something like that happens in real world? Yes, but of course not in such drastic ways.

replies(6): >>43714375 #>>43714381 #>>43714439 #>>43714563 #>>43720937 #>>43725237 #
forrestthewoods ◴[] No.43714375[source]
The fact that Big O notation is sometimes misleading or not helpful is not evidence that it is not generally useful.

https://www.tumblr.com/accidentallyquadratic

replies(1): >>43715079 #
1. qludes ◴[] No.43715079[source]
As a concept it is pretty useful for me in a handwavy astrophysics math way because I otherwise wouldn't necessarily know how to make my naive solution fit real world constraints.