4,248 karma · joined Aug 13, 2010 (16y ago) · 545 submissions
comment 11y ago · link · parent
comment 11y ago · link · parent
Again, for the third time: you cannot "assume" that reading the digits of a number takes O(n), but reading the digits of two numbers to compare them takes O(1). That is absolutely, obviously true. Your response, that you can "assume" the latter is true as part of the model of computation is just wrong, plain and simple. There's nothing else to say about it.
The original claim directly implies this, and if you can't address that point, then just save us both the time and don't respond.
comment 11y ago · link · parent
So again, the issue is not that you can't compare numbers of arbitrary magnitude in constant time -- I never said that. The issue is that it is a contradiction to say that it takes linear time to inspect all the digits of a number AND that it only takes constant time to compare O(n) digits of two numbers.
You're essentially saying that you can axiomatize your mathematical universe with nonsense axioms, which yes, you could do, but that's not useful to point out.
comment 11y ago · link · parent
Short circuiting comparisons is still linear for integers of unbounded size. But besides that, it's incredibly common to assume that 64-bit primitives are done in constant time, because to the asymptotic analysis, what matters is that the integers are _bounded_ in size. As long as it's bounded, the asymptotic analysis here doesn't care -- you can pick any size you want, as long as it's bounded.
One thing to keep in mind here (which it seems you are maybe confused about) is that these bounds are _asymptotics_ of the input size generally, and have very little to say about any particular choice of input size. 64-bit, 32-bit, whatever, it doesn't matter, if the size of the operands is bounded, the they're the same thing to the asymptotic analysis. As long as they're bounded, you can say that the operations on those operands is proportional to a constant times the (bounded) size of the operands.
The consequence of this is that when you deal with operands of _unbounded_ size, all of this asymptotic analysis goes right out the window. You can't possibly have a meaningful comparison operator, for example, that operates in constant time on unbounded integers.
comment 11y ago · link · parent
Go read the parent again. The author claims that sorting in this case takes time proportional to the size of largest element, and I'm saying, if it takes time proportional to the space consumption of in the largest element (presumably where the cost of the sort comes from), you can't define a computational model where comparison takes constant time -- it still has to read the digits, which we know takes linear time.
If your point is that you can define a model of computation with contradictions in it, then you should rethink whether what you are saying here is even relevant to the thread at all.
comment 11y ago · link · parent
This is directly related to my third point. Traditional analysis of sorting algorithms assumes the Von Neumann architecture, and in particular, it assumes constant-time comparisons.
comment 11y ago · link · parent
First of all, there are quite a few linear time sorting algorithms. Radix, pigeonhole, and counting sort are all linear time sorting algorithms. The popular result that any comparison-based sorting algorithm works in O(n log n) applies _specifically_ to comparison-based sorting algorithms, and not those like the above. So, even if you ignore the underlying mechanics of the OS scheduler and assume sleep works "perfectly", the result would not that unusual.
Second off, in the comments there appears to be considerable time worrying about the technicalities of the scheduler, the nondeterministic nature of sleep, and so on, and whether this really implies linear time bound. IMHO these are not worth worrying about because we already have linear time sorting algorithms. It's fine to assume the scheduler adds no significant asymptotic cost here, even if we know differently.
Third off, remember that all of these sorting bounds assume machines of the Von Neumann architecture. In particular, this model assumes constant time memory and constant time comparison operations. In cases where you're comparing really big numbers, these bounds get worse. This is easy to forget, but worth remembering just since we're on the subject anyway.
comment 11y ago · link · parent
[1] http://web.engr.illinois.edu/~jeffe/teaching/algorithms/note...
comment 11y ago · link · parent
For example, the nth Fibonacci number has n log_2 \phi bits, which means that to simply list the digits in the nth number, it takes O(n) time.
So from there it's pretty easy to see that actually this algorithm can't "really" operate in O(log n), or at least, something must be up that causes us to produce that analysis.
Another bit of intuition that might help you see where this bound comes from: what's actually true is that it takes O(log n) _matrix multiplications_ to get the result. So if you see that and you see that listing the digits of the nth number of the sequence is O(n), it starts to point at the fact that there's a hidden cost to the multiplications.
comment 11y ago · link · parent
I understand your heart was probably in the right place, but honestly, your tone here is kind of hard to take.
comment 11y ago · link · parent
Where your point is that there is a better but almost-as-intuitive approach, Norvig's point is basically that a naive application of probability theory is often dramatically easier to implement, and also "good enough" when compared to a (usually much more complicated) rule-based implementation.
That's really a great lesson to learn. It's (IMHO) much less valuable to learn that there are better approaches out there -- of course there are.
comment 12y ago · link · parent
Yes. He was divisive. Yes. He had failures. But really what you should do is take this for what it is: a successful person talking about success. The real trap is not that he is divisive or wrong about the future, it's that he almost certainly suffers survivor's bias.
comment 12y ago · link · parent
We say we're interested in targeted outreach to demographics whose attrition rates are especially high, and whose entrance rates are especially low.
You come up with the normative claim. Because the normative claim should be obvious.
Ok, now that you've made your guess, let's see what you've written down. If you guessed that the normative claim is that "we should consider it bad to have an industry so vile that (e.g.) competent female engineers exit the field at many times the rate of male engineers", then you win your gold star.
If you did not guess that this is the normative claim, then it is time to retire all this philosophy and set theory that you have going, because you clearly don't have the basics down.
comment 12y ago · link · parent
I don't know what else to say. It's extremely simple. Targeted outreach works. You pick groups you want to include, and you target them for outreach.
Why are you making this so hard? Honestly, I question whether you're really interested. You do this on literally every thread where sexism comes up. It sounds to me like you really just want an argument.
EDIT: And, your insinuation that it's all tribal politics, instead of a very careful investigation of what outreach methods work for getting disadvantaged people into programs they wouldn't normally have access to is in such bad faith it's hard to even muster up the will to reply.
comment 12y ago · link · parent
Look, we're not writing a philosophy paper or doing set theory here. We don't have room for any of this "theoretical best" philosophical stuff you're working on here. There are reasons why this shit is set up like it is.
comment 12y ago · link · parent
First off, the rate of attrition among these specific minority groups is dramatically higher than it is for whites of any class. How many women who start as engineers are still engineers 10 years out? Look it up. If the disadvantages really are the same, then why is it that whites from lower income brackets do not have the same problem?
The answer -- as other users have pointed out to you repeatedly over the last few months -- is because the disadvantage is systemic and widespread.
That is why these scholarships are a good thing.
comment 12y ago · link · parent
A joke written 20 years ago does not erase this.
It's really this simple folks: it is irresponsible to go around say dumb things like "never take this person as an advisor because they are literally crazy" when we have demonstrable proof that they are more than capable in that regard.
I don't see why this is controversial.
comment 12y ago · link · parent
Shivers is beloved by his students. For example, Matt Might -- who I name because his blog is one of the most frequently frontpage'd on HN, and also because you have taken his website format as your own -- personally remarked to me many times about the quality of Shivers as PhD advisor. This occurred over the course of the two or so years that I was advised by Matt, and I have personally heard the same from many of his students since.
comment 12y ago · link · parent
It wasn't that hard. It took us about 30 minutes (thanks largely to the fact that Bart is a genius.) Besides, that's not actually the source of this DLL. We are on .NET native, and for that matter, a bleeding-edge build that's only available here at MS.
comment 12y ago · link · parent
We actually chose the most expedient route. The reason is, the source you link to is not actually the source of the DLL we were working with. That particular file is very similar, but the rest of the repot is very much different from the version we were working on. (I work at MS, and our project is kind of exotic in this case.)