From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Too many permutations computed Date: Fri, 04 Aug 2023 18:39:26 +0000 Message-ID: <-v8zyGESm1CXo46qH8CE2_j5Nvx_Iosd6EEleWp_quPrLtpdnQ3d7KzBSJrDmr-2fksLvGYl5n8BMLKUVyLT9W5IT4n7zr2Y-6oIbRKvVHU=@protonmail.com> References: <87sf91eopn.fsf@dataswamp.org> <873510kt1y.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13486"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 04 20:40:07 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qRziY-0003Hx-18 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Aug 2023 20:40:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRzi8-0000dY-MP; Fri, 04 Aug 2023 14:39:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRzi7-0000dP-OV for help-gnu-emacs@gnu.org; Fri, 04 Aug 2023 14:39:39 -0400 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRzi6-0002f3-4f for help-gnu-emacs@gnu.org; Fri, 04 Aug 2023 14:39:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1691174374; x=1691433574; bh=1e5b4+XZHZdHPapSJUTzX8wBNu14eck207c7E5dxQ40=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=bek37JWM6gbfOQrYRYETQa+MnDzdvtUsWcDR3SLYFlO5uDubi7DzH3S2nDIJHwIeE N/t0lLd5E3IcI87yvKSb7TzE32dFT2hfzU+bd9GjJ1m4KkzQIsLI16dxhaLm2zcwCF n3YHNgtqTr0eoCudi+CcyiRtxtGOwmuVZ6tvdXUeRBil4/1SREiQ65kVNYUL4tPdua cRIDLokMkaUq3DdgICOtgf/93TlDFCwHLh+RKqL+/BGcSGJwVitl4uxlD4yO8ktUGb uu+qZ29x1pC+kUiUs0igdQeFss4BSsk9TB5irNVAIhlJGbqaF6fXFKfhkTsE8YrKyX swHb0z+v+OvYA== In-Reply-To: <873510kt1y.fsf@dataswamp.org> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.132; envelope-from=heimeborgia@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144598 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Friday, August 4th, 2023 at 4:08 AM, Emanuel Berg = wrote: > uzibalqa wrote: >=20 > > > (while (< j h) [...] > > > (setq j (1+ j))) > > > [...] > > > for i :=3D 0; i < k-1; i +=3D 1 do [...] > >=20 > > Do you understand what the i +=3D 1 does ? It is the same as > > i++, am I right ? The difference lies in the timing of when > > the increment takes place (immediately in the case of i +=3D > > 1, and after the value is used in the case of i++). Do you > > think the distinction mentioned makes a difference for the > > algorithm ? >=20 >=20 > It is up to the designer of the pseudo code to decide if it > works like that, if it does then it would make > a difference, yes. >=20 > See if you can write the Elisp as close as possible to the > pseudo code, including the variable names: >=20 > (cl-loop for i from 0 to ... ) =20 Yes, I have got working properly with the cl-loop change.