From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 3519ABC88 for ; Wed, 9 Feb 2005 08:48:09 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j197m8vI002828 for ; Wed, 9 Feb 2005 08:48:08 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA25049 for ; Wed, 9 Feb 2005 08:48:08 +0100 (MET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j197m7fR002825 for ; Wed, 9 Feb 2005 08:48:07 +0100 Received: by rproxy.gmail.com with SMTP id i8so1193935rne for ; Tue, 08 Feb 2005 23:48:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Q7rwTuFSMTJuM4RxH1RriTMblkGGkftDtOSt2IHko4gou1FLnHSKx5b+h2Wbw0Dqr3+pyMsz+6Mcra/wFd3B9RH1BIBcqSl6yuJo80CmY6xOVwioXWAF/L2XnXvAaxQnQ+Q9ba/G3isAc9Jhq3Zz3IsIhoOKvyx3YcQQD1cfibA= Received: by 10.38.75.39 with SMTP id x39mr317376rna; Tue, 08 Feb 2005 23:48:06 -0800 (PST) Received: by 10.38.65.58 with HTTP; Tue, 8 Feb 2005 23:48:06 -0800 (PST) Message-ID: <7f8e92aa05020823485b62fcde@mail.gmail.com> Date: Wed, 9 Feb 2005 09:48:06 +0200 From: Radu Grigore Reply-To: Radu Grigore To: skaller@users.sourceforge.net Subject: Re: [Caml-list] Re: paralell assignment problem Cc: Stefan Monnier , caml-list In-Reply-To: <7f8e92aa05020810335ab052e0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1107832025.13571.260.camel@pelican.wigram> <87y8dzi0ns.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> <1107882489.5022.175.camel@pelican.wigram> <7f8e92aa05020810335ab052e0@mail.gmail.com> X-Miltered: at nez-perce with ID 4209C038.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4209C037.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 sourceforge:01 wrote:01 arbitrary:01 algorithm:01 argument:01 problem:05 radu:05 radu:05 tue:06 tue:06 uses:06 split:07 i'm:08 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: On Tue, 8 Feb 2005 20:33:52 +0200, Radu Grigore wrote: > On Tue, 08 Feb 2005 09:12:32 -0800 (PST), skaller > wrote: > > > However it isn't clear (to me) that just picking an arbitrary > > assignment to split into two using a temporary > > actually minimises the number of temporaries. > > I'm mildly convinced that it works. I was obviously too tired yesterday: there are lots of mistakes in my argument. Actually here is an example on which your algorithm uses more assignments than necessary: a = b+c b = c c = a+b The solution is t = c c = a+b a = b+t b = t -- regards, radu http://rgrig.idilis.ro/