News for hackers. Stuff that matters.
Re:When are two proofs essentially the same? (2007) by zeroonetwothree on Tuesday October 29, 2024 @06:19PM (#41990020)
I assume they mean the size of the address is log n, since there are >n addresses.
Re:When are two proofs essentially the same? (2007) by Dylan16807 on Tuesday October 29, 2024 @07:33PM (#41990536)
If we don't treat almost all integers in an algorithm as fixed size then the analysis gets really messy and annoying in a way that has nothing to do with real computers.

And if the algorithm actually did anything with the value that made it grow or shrink with the recursion, the TCO version would stop being O(n) under such a framework. This only works because it's passing 0 around every iteration. And this probably applies to the TCO version too depending on how you expect to run it.

Re:When are two proofs essentially the same? (2007) by Jtsummers on Tuesday October 29, 2024 @07:37PM (#41990566)
I was going to write something similar.

Regardless, the comment I replied to is fundamentally confused (presented a tail recursive algorithm and said it didn't have tail calls, presented a linear algorithm that uses a linear amount of memory and claims it's O(n log n) for some reason but no clarification if it's in time or space). I'd rather hear from the person I responded to than whatever guesses the rest of us can come up with because it needs several points of clarification to be understood.

Re:When are two proofs essentially the same? (2007) by naniwaduni on Wednesday October 30, 2024 @03:47PM (#41999395)
> If we don't treat almost all integers in an algorithm as fixed size then the analysis gets really messy and annoying in a way that has nothing to do with real computers.

I guess nobody does numerical computing or distributed systems with real computers anymore, huh.

Re:When are two proofs essentially the same? (2007) by Dylan16807 on Wednesday October 30, 2024 @05:59PM (#42000904)
Wrong way around. Almost all the numbers in those systems are fixed-size. There's a few types of variable width payload, but all the little ancillary types are 64 bits or whatever.