Re: PHP console script vs C/C++/C#

From: Date: Sat, 19 Apr 2008 13:07:04 +0000
Subject: Re: PHP console script vs C/C++/C#
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-273299@lists.php.net to get a copy of this message
Robert Cummings wrote: > You are correct about asymptotic bounds on algorithms; however, > languages can still have a constant multiplier affect on an algorithm.. Absolutely. When it comes to "how long does it take to process 1000 elements", both language and hardware are critical factors. But the algorithm efficiency remains constant. > Asymptotic bounds (Big Oh) are useful, but their applicability isn't > always universal. Some algorithms that are asymptotically inferior > actually perform better on small input sets than their asymptotic > superiors... I don't recall for certain, but bubblesort might be one > such example. Also true. Quick sort is such an example - in general it does really well, but for certain data sets, it doesn't. /Per Jessen, Zürich

« previous php.general (#273299) next »