Re: a goto command???
- From: "Ionica Smeets" <smeets@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 Jan 2006 06:34:40 -0500
....Post any bit of code with a goto in it and somebody here will be
able to show you the same functionality written without it...
Ok, I would like that! I am implementing the Lenstra-Lenstra-Lovasz
algorithm in Matlab and in the original article the pseudo-code
roughly looks like this:
***
compute gram-schmidt constants for a given basis b;
k = 2;
(1) do a subroutine;
if(condition) goto (2);
do a subroutine;
if(k=n) terminate;
k = k+1;
goto (1)
(2) do some calculations
k = k-1;
goto (1)
***
So, how should I work around the goto's here?
.
- Follow-Ups:
- Re: a goto command???
- From: John E M Brown
- Re: a goto command???
- From: French Caroline
- Re: a goto command???
- References:
- Re: a goto command???
- From: Peter Boettcher
- Re: a goto command???
- From: Brad Phelan
- Re: a goto command???
- From: Ken Garrard
- Re: a goto command???
- From: Michael Wild
- Re: a goto command???
- Prev by Date: Normalized Frequency distribution
- Next by Date: Re: Calling Callbacks from the outside
- Previous by thread: Re: a goto command???
- Next by thread: Re: a goto command???
- Index(es):
Relevant Pages
|