Re: which is efficent for loop ??

From: ranjeet (ranjeet.gupta_at_gmail.com)
Date: 09/01/04


Date: 1 Sep 2004 00:13:52 -0700

Hi all ,

 I would like to accept my fault in writing the code,
The for loop second one is like this

    for (int i = 7; i >= 0; ++i) {

     /* here goes the manipulation. */

    }

 Now Actually i dropped this querry as i was looking for the
optimaisation level. Now As i gave the psedode. The code in which i am
using , the initalisaig avlue is 240 so, so definately this second
loop will take less time if we consider on the low level. as i hope it
will reduce the MIPS value thus reducing the complexity .... if i am
wrong then please let me know.

Alwyn <dt015a1979@mac.com.invalid> wrote in message news:<300820042001357945%dt015a1979@mac.com.invalid>...
> In article <c%GYc.1659$TX7.19712203@news-text.cableinet.net>, Ben
> Measures <saint_abroadremove@removehotmail.com> wrote:
>
> > Alwyn wrote:
> >
> > > By that definition, an infinite loop (or recursive call) is iteration,
> >
> > Do useful programs really contain infinite loops? Should it really be
> > left to the OS or the power switch to terminate them?
>
> Many daemons are written that way. It sounds eminently sensible to me.
>
>
> Alwyn



Relevant Pages

  • Re: Querry giving incorrect result
    ... That is the exact code i use in the querry script ... The loop itself was a pointless infinite loop ... Cos i have been gettin some odd entry ... baddata table should not exist.. ...
    (microsoft.public.sqlserver.programming)
  • Re: append multiple tables
    ... You could write the SQL dynamically and loop through it. ... Are you appending to one of several tables, ... Tom Ellison ... >using, again, one querry? ...
    (microsoft.public.access.queries)