Re: puzzle
- From: Christopher Barber <cbarber@xxxxxxxx>
- Date: Mon, 13 Jun 2005 10:36:30 -0400
spinoza1111@xxxxxxxxx wrote:
For, I used the phrase "close to" as regards O(n).
O(n*n) == O(n*n/2), of course. But it's also the case for practical applications that n*n/2 < n*n.
Sure, given the choice between an algorithm that costs n*n steps and one that costs n*n/2 steps of the same size, the latter is a better choice in terms of cost, but I don't known anyone other than you that would call such an algorithm "close to" O(n). When there are linear and O(n log n) algorithms that are also simpler to implement, what is the practical use case for your algorithm?
Read the literature on O(x), for Chrissake. See for example Skiena, The Algorithm Design Manual (http://www.amazon.com/exec/obidos/tg/detail/-/0387948600/qid=1118630635/sr=8-3/ref=pd_csp_3/103-4992382-6347852?v=glance&s=books&n=507846).
You don't UNDERSTAND O(x) UNTIL you know when to use O(n^2) in the pragmatic sense where n is small and known to be small for practical applications.
You are right that it can be ok to use a suboptimal algorithm for when you know for a fact that the data size will be small, but generally you would only
do so because the faster algorithm is more complex or more work to implement.
This is not the case with your algorithm.
BTW, in my experience it is much more common for programmers to use an overly bad algorithnm when it matters than a overly good algorithm when it doesn't.
What's interesting is that you have in the corporate style lectured me on the real world in a private email.
Huh? You sent me a private e-mail. I merely replied back to you. If anyone is guilty of "corporate style lecturing" (whatever that is), it is you.
The resentment here is of ability to explain, complementary to the inability to read shown by O'Dwyer who read a claim for O(n) when I said "close to".
When you are taking about the O() notation, there is no such thing as "close to". Something is either O(n) or it is not. O'Dwyer probably assumed that you knew that.
It's obvious from the original post that I understand,
Actually, it really was not all that obvious.
OK, I don't "understand", I don't have the *verstehen* you demand.
You appear to have "misread" me. I just meant that it was not obvious from what you posted *previously* that you understood the O() notation.
Let's not be peers. Let's not work together. I'd rather write and publish 26000 lines of my OWN goddamn code and have it work than work with people who don't in my humble opinion know their trade. I am willing that they have jobs far away from me and I wish them success in all their future endeavors.
But, IF I form a company, and IF I hire some guy who manifests this form of *verstehen*, I WILL fire his ass.
Geez. You have a really thin skin.
You seem to take everything personally. It is your algorithm that was being criticized, not you. In the professional software world, it is really important to be able to recognize when a particular algorithm is bad, drop
it and go on to another one. If you insist on wrapping everything up into your own sense of ego, then it is much harder to reach your technical
goals.
- Christopher .
- Follow-Ups:
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- References:
- puzzle
- From: Darius
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- From: Arthur J. O'Dwyer
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- From: pete
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- From: Christopher Barber
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- From: Christopher Barber
- Re: puzzle
- From: spinoza1111
- puzzle
- Prev by Date: Re: Numerical accuracy of C++ and Fortran programs on 32 bit machines
- Next by Date: newbie
- Previous by thread: Re: puzzle
- Next by thread: Re: puzzle
- Index(es):
Relevant Pages
|