RE: Recursive Code Challenge

2004-06-06 Thread Rolf Kalbermatter
"Dominic Lavoie" <[EMAIL PROTECTED]> wrote: >Could someone explain in a simple way what are the advantages of making a >function recursive >instead of just making the data recursive(arrays or >strings) and building one function to play with that data(while loops)? It's about human understanding.

Re: Recursive Code Challenge

2004-06-06 Thread Greg McKaskle
Recursion is a mathematical concept that allows you to express the algorithm in the least amount of notation. Like other mathematical forms, calculus and algebra for example, until you know it, it only seems to complicate things. Once you overcome the learning curve, the light goes on and you

RE: Recursive Code Challenge

2004-06-04 Thread Scott Hannahs
At 12:31 -0700 6/4/04, ALTENBACH,CHRISTIAN wrote: Quoting Scott Hannahs <[EMAIL PROTECTED] > It makes an interesting story but is not the best >way to approach the problem. > >'glad you brought up your recursive demo. I compared it with my entry in the >recent LabVIEW Zone Coding challenge for fact

RE: Recursive Code Challenge

2004-06-04 Thread Michael Aivaliotis
Here is an example listing a directory structure. Michael Aivaliotis > This is going to be a naïve question after this thread has > been going on for so long, but can anyone send me (or point > me to) a LV7 (or earl

RE: Recursive Code Challenge

2004-06-04 Thread ALTENBACH,CHRISTIAN
Quoting "ALTENBACH,CHRISTIAN" <[EMAIL PROTECTED]>: > Even weirder, if you take > your > VI and put a simple FOR loop around the code (no indexing) and set the > loop > counter to 2 so the core code executes twice, the VI takes 17 whole(!!) > seconds (425x slower/loop). Sorry, my mistake! Of co

RE: Recursive Code Challenge

2004-06-04 Thread ALTENBACH,CHRISTIAN
Quoting Scott Hannahs <[EMAIL PROTECTED]>: > At 12:24 -0400 6/4/04, Junginger, Johann wrote: > >This is going to be a naïve question after this thread has been going on > for > >so long, but can anyone send me (or point me to) a LV7 (or earlier) > example > >of recursion? It sounds very interestin

RE: Recursive Code Challenge

2004-06-04 Thread Scott Hannahs
At 12:24 -0400 6/4/04, Junginger, Johann wrote: >This is going to be a naïve question after this thread has been going on for >so long, but can anyone send me (or point me to) a LV7 (or earlier) example >of recursion? It sounds very interesting but I am having trouble wrapping my >head around this

RE: Recursive Code Challenge

2004-06-04 Thread Junginger, Johann
. -Original Message- From: Jean-Pierre Drolet [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 12:31 To: Dominic Lavoie; Info-LabVIEW Subject: Re: Recursive Code Challenge When I said efficiency, I was refering to the fact that recursive calls are reputed inefficient in LabVIEW. I guess It is less

Re: Recursive Code Challenge

2004-06-04 Thread Jean-Pierre Drolet
with recursive calls or while loops. Jean-Pierre Drolet www.avensys.ca - Message d'origine - De : "Dominic Lavoie" <[EMAIL PROTECTED]> À : "Jean-Pierre Drolet" <[EMAIL PROTECTED]>; "Info-LabVIEW" <[EMAIL PROTECTED]> Envoyé : 4 juin, 2

RE: Recursive Code Challenge

2004-06-04 Thread George Gatling (Contractor)
; Info-LabVIEW Objet : Re: Recursive Code Challenge Salut, You are right. Formally, recursion can always be emulated with a data stack and a while loop. Using a recursive call, the data stack is managed automatically as data space is created for each recursion level. The cost in LabVIEW is efficiency

Re: Recursive Code Challenge

2004-06-04 Thread David Wisti
chael C. Ashe; George Gatling (Contractor) Cc : Info-LabVIEW Objet : Re: Recursive Code Challenge George Gatling wrote: ... I am truly amazed that a thread about commercial vs. free software and unsolicited advertising has morphed into a coding challenge to eliminate LabVIEW's

RE: Recursive Code Challenge

2004-06-04 Thread Dominic Lavoie
sign phase) -Message d'origine- De : Jean-Pierre Drolet [mailto:[EMAIL PROTECTED] Envoyé : June 4, 2004 9:51 AM À : Dominic Lavoie; Info-LabVIEW Objet : Re: Recursive Code Challenge Salut, You are right. Formally, recursion can always be emulated with a data stack and a while loop. Using a

Re: Recursive Code Challenge

2004-06-04 Thread Jean-Pierre Drolet
o: "Info-LabVIEW" <[EMAIL PROTECTED]> Sent: Friday, June 04, 2004 9:15 AM Subject: RE: Recursive Code Challenge Salut. Could someone explain in a simple way what are the advantages of making a function recursive instead of just making the data recursive(arrays or strings) and bu

RE: Recursive Code Challenge

2004-06-04 Thread Dominic Lavoie
EMAIL PROTECTED] la part de Irene He Envoyé : June 3, 2004 7:35 PM À : Michael C. Ashe; George Gatling (Contractor) Cc : Info-LabVIEW Objet : Re: Recursive Code Challenge > George Gatling wrote: > >... I am truly amazed that a thread about commercial vs. > >free software and unsolic

Re: Recursive Code Challenge

2004-06-03 Thread Irene He
> George Gatling wrote: > >... I am truly amazed that a thread about commercial vs. > >free software and unsolicited advertising has morphed > >into a coding challenge to eliminate LabVIEW's recursion > >exception. Kinda reminds me of the whisper game we > >played in kindergarten! > > The whisper

RE: Recursive Code Challenge

2004-06-03 Thread Michael C. Ashe
On: Thursday, June 03, 2004 12:40 PM, Scott Hannah wrote: >I don't think it is going to be quite that easy. It never is, but I threw down the guantlet, and it is amazing what has been accomplished by people who didn't know that something is "impossible" or even Very Difficult. Before I go furthe

RE: Recursive Code Challenge

2004-06-03 Thread Michael C. Ashe
George Gatling wrote: >... I am truly amazed that a thread about commercial vs. >free software and unsolicited advertising has morphed >into a coding challenge to eliminate LabVIEW's recursion >exception. Kinda reminds me of the whisper game we >played in kindergarten! The whisper game was based

Re: Recursive Code Challenge

2004-06-03 Thread Scott Hannahs
At 12:15 -0400 6/3/04, Michael C. Ashe wrote: >Code Challenge: >But I think that it will soon be possible to do exactly what you say above, >grab a VI's own icon, drag and drop, and (if you have a switch or two set >and some LabVIEW scripting in place) have the VI replaced on the diagram >with a su

Re: Recursive Code Challenge (was RE: LabVIEW (list) recursion, or "the & elipsis are our friends ...")

2004-06-03 Thread George Gatling (Contractor)
Code Challenge: But I think that it will soon be possible to do exactly what you say above, grab a VI's own icon, drag and drop, and (if you have a switch or two set and some LabVIEW scripting in place) have the VI replaced on the diagram with a subVI created from a template (like the Factorial VI

Recursive Code Challenge: (Part II)

2004-06-03 Thread Michael C. Ashe
Code Challenge: (Part II) >grab a VI's own icon, drag and drop, and (if you have >a switch or two set and some LabVIEW scripting in >place) have the VI replaced on the diagram with a subVI >created from a template (like the Factorial VI) modified >by LabVIEW scripting, with the name of the VI repla

Recursive Code Challenge (was RE: LabVIEW (list) recursion, or "the & elipsis are our friends ...")

2004-06-03 Thread Michael C. Ashe
Hi George, Yo' typed: >... but it is not "allowed"... try to drop a VI >onto its own diagram and read the message! >I was just making tongue in cheek humor :)) ... >:)) Just teasing you mike! And I took it as such and am glad to see you did too. >:)) I figured you probably knew about the VIServ