Readit News logoReadit News
Sankozi commented on A visual introduction to big O notation   samwho.dev/big-o/... · Posted by u/samwho
bongodongobob · 2 days ago
Comp sci 101. Learned it my first year. There really isn't anything to it. It just describes how the number of operations grow as the number of inputs in your algorithm increases. It looks scary, but it's very simple and straightforward.
Sankozi · a day ago
You are commenting under blog post that tried to explain it and got it wrong. It is not simple.

Examples:

- algorithm with O(2^n) complexity might be faster for your problem than O(1) algorithm

- the same algorithm may be O(2^n) or O(n³) depending how you define size function

This is not straightforward.

Sankozi commented on GPT-5   openai.com/gpt-5/... · Posted by u/rd
baxtr · 20 days ago
The AI dooming was never a thing for me. And I still don’t get it.

I don’t see anything that would even point into that direction.

Curious to understand where these thoughts are coming from

Sankozi · 19 days ago
More intelligent specie (AI) designed by specie (humans) that has history of eradicating less intelligent species (neanderthals).

I don't see how anyone can't see the problem.

Sankozi commented on GPT-5   openai.com/gpt-5/... · Posted by u/rd
EthanHeilman · 19 days ago
> It is frequently suggested that once one of the AI companies reaches an AGI threshold, they will take off ahead of the rest.

This seems to be a result of using overly simplistic models of progress. A company makes a breakthrough, the next breakthrough requires exploring many more paths. It is much easier to catch up than find a breakthrough. Even if you get lucky and find the next breakthrough before everyone catches up, they will probably catch up before you find the breakthrough after that. You only have someone run away if each time you make a breakthrough, it is easier to make the next breakthrough than to catch up.

Consider the following game:

1. N parties take turns rolling a D20. If anyone rolls 20, they get 1 point.

2. If any party is 1 or more points behind, they get only need to roll a 19 or higher to get one point. That is being behind gives you a slight advantage in catching up.

While points accumulate, most of the players end up with the same score.

I ran a simulation of this game for 10,000 turns with 5 players:

Game 1: [852, 851, 851, 851, 851]

Game 2: [827, 825, 827, 826, 826]

Game 3: [827, 822, 827, 827, 826]

Game 4: [864, 863, 860, 863, 863]

Game 5: [831, 828, 836, 833, 834]

Sankozi · 19 days ago
You are forgetting that we are talking about AI. That AI will be used to speed up progress on making next, better AI that will be used to speed up progress on making next, better AI that ...

Deleted Comment

Sankozi commented on Math.Pow(-1, 2) == -1 in Windows 11 Insider build   github.com/dotnet/runtime... · Posted by u/jai_
coldpie · 2 months ago
What do you disagree with, exactly? The bug is in an underlying library, so it should be reported to that library. That all seems correct to me, I don't see what there is to disagree with there.

The problem with the comment is it does not make ownership of the next steps clear. The maintainer should've either taken the ball ("I will report this to...") or made it clear that the reporter should hold the ball ("We can't fix this here. You should report it to..."). Instead they used the passive voice ("The issue should be reported to..."), which means no one owns it, which means it won't be done, which is a bad way to handle a bug report.

Sankozi · 2 months ago
Unless the documentation says that Math.Pow just returns the result of calling some other code (it doesn't do that), the bug is both in the Math.Pow and underlying library. It should be reported and tracked in both.
Sankozi commented on Left-Pad (2024)   azerkoculu.com/posts/left... · Posted by u/oeitho
Sankozi · 3 months ago
Unix philosophy is "do one thing, do it well". Left-Pad forgot about the second part.

For me it was surprising that so many projects used this naive implementation. Nonnaive implementation is faster and much smaller.

Sankozi commented on The Halting Problem is a terrible example of NP-Harder   buttondown.com/hillelwayn... · Posted by u/BerislavLopac
MattPalmer1086 · 4 months ago
You find Big O notation useless for real world problems?

I find it useful to characterise algorithmic performance, e.g. O(1), O(n) O(n^2), etc.

What do you find useless about it - and do you know of something that works better?

Sankozi · 4 months ago
Better - estimate complexity so things like "this algorithm will take 1234 + 2n + 500m operations " for our use case

Much better - research (not always possible)

Best - benchmark it using realistic data from your use case

Sankozi commented on The Halting Problem is a terrible example of NP-Harder   buttondown.com/hillelwayn... · Posted by u/BerislavLopac
virgilp · 4 months ago
> 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.

Sankozi · 4 months ago
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.

Sankozi commented on The Halting Problem is a terrible example of NP-Harder   buttondown.com/hillelwayn... · Posted by u/BerislavLopac
suddenlybananas · 4 months ago
>Big O notation also suffers from this - it's almost useless for real world problems.

It's not the only way to optimize things but there's a reason no one sorts with bubble sort.

Sankozi · 4 months ago
Yes bubble sort usually will take more time, but big O notation does not say that quick sort will be better for your real world problem.

Complexity estimations or just benchmarks are much better at that.

You should never limit yourself to big O notation when comparing algorithms.

Sankozi commented on The Halting Problem is a terrible example of NP-Harder   buttondown.com/hillelwayn... · Posted by u/BerislavLopac
graycat · 4 months ago
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).

Sankozi · 4 months ago
Yes, lots of these problems assume fantasy infinite world.

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

u/Sankozi

KarmaCake day322November 19, 2009View Original