From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA13419; Sat, 1 May 2004 11:24:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA13543 for ; Sat, 1 May 2004 11:24:52 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i419OnSH029476 for ; Sat, 1 May 2004 11:24:50 +0200 Received: from [192.168.1.200] (ppp116-155.lns1.syd2.internode.on.net [150.101.116.155]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i419OiZq028508; Sat, 1 May 2004 18:54:45 +0930 (CST) Subject: Re: [Caml-list] List.rev From: skaller Reply-To: skaller@users.sourceforge.net To: Jon Harrop Cc: caml-list In-Reply-To: <200405010932.59191.jdh30@cam.ac.uk> References: <20040430175429.GB11118@online.fr> <20040501070844.GB19707@force.stwing.upenn.edu> <1083399017.20722.25.camel@pelican.wigram> <200405010932.59191.jdh30@cam.ac.uk> Content-Type: text/plain Message-Id: <1083403483.20722.32.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 01 May 2004 19:24:44 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 40936CE1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 32,:01 2004:99 complexities:01 9660:01 glebe:01 ocaml:01 nsw:01 snail:02 restrict:02 checkout:02 stack:02 2037:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 2004-05-01 at 18:32, Jon Harrop wrote: > On Saturday 01 May 2004 09:10, skaller wrote: > > Yet it is easy enough to say > > > > O(n) time and O(1) stack > > O(n) heap Well, the output requires O(n) heap by nature of the result.. > But why restrict yourself to asymptotic complexities... ;-) Good question. one reason is that it's hard to do better in a specification: you can't very well say 'this takes 1 second' :-) However, perhaps you can say something for small n. Usually this is a QOI issue. QOI = Quality of Implementation. Meaning "not an issue for standardisation". QOI is important of course -- we use Ocaml because of its high performance. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners