3 ms·
There's a massive difference. Here, let me show you: Algorithm: Algorithm Maximum Input: Two numbers M and N. Output: The largest number of M
by Deestan 16y ago
There's a massive difference. Here, let me show you:
Algorithm:
Algorithm Maximum
Input: Two numbers M and N.
Output: The largest number of M and N.
if M > N, then return M
else return N
Software:
// Returns the largest of m and n.
int Maximum(int m, int n) {
if (m > n) return n;
else return n;
}
There. Clear?
- borisk 16y agoI must request that you do not ship, deploy or post the code presented in your post ... Patent Trolls LLC
- paraschopra 16y agoWow, someone can easily write a compiler/interpreter for your Algorithm It is a very lame example, IMO.
- loup-vaillant 16y agoThe only difference I see is that your Algorithm is written in a programming language that doesn't have an implementation. Yet. If I write one, that difference will go. Therefore this is not an intrinsic difference. It does not count. Do you have something more substantial? Meta: funny how this comment is doing karma oscillation (so far: + - - + -). But I would've like people tell me why 3 of them thought I have "crossed the line".
- RyanMcGreal 16y ago>There's a massive difference. I'm pretty sure Deestan is being facetious here.
- Deestan 16y agoThank you! Maybe I should add a sarcasm tag or something in the future.
- loup-vaillant 16y agoSorry I didn't see it. Anyway, I think we have a "sarcasm bias". Meaning, when I mean a sarcasm, it's obvious and anyone who doesn't see it is an idiot; and when you mean a sarcasm, you'd better put the sarcasm tag, or we can't perceive your tone, you idiot. (Just to be sure: The tone here is sarcastic, but I think the bias I speak of is real.)
- RyanMcGreal 16y agoAlas, the sarcasm which is tagged as sarcasm is no longer sarcasm.
- statictype 16y agoI'm writing a compiler right now that can compile your algorithm into x86 instructions. Does your algorithm automatically become software at the time of completion of my compiler? Or does it become software only when its compiled down to machine code?
- Deestan 16y ago:( I was being silly and ironic. I was actually trying to show that there is no difference at all.
- david_p 16y agoYou should work at the european parliament :) BTW, you should get carefull since the above piece of software is probably copyrighted in the US, with other patents pending for the rest of the know universe. Oh wait, can you hear the patent police knocking at your door ? Too late mate.
- sovande 16y agoAh the bug in the software makes the difference. Clever, I didn't see that first.
- Deestan 16y agoOops. But yes, that is the only difference.
- Deestan 16y agoUpdate: I was being sarcastic.