Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 16:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Rekursiv --> Iterativ

Discussion on Rekursiv --> Iterativ within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Arrow Rekursiv --> Iterativ

Hey,

gibt es sowas wie ne Faustregel zum umcoden einer rekursiven methode zu einer iterativen? Oder ist es von Algorithmus zu Algorithmus anders?

Danke für die antworten

lg money
Moneypulation is offline  
Old 12/02/2014, 17:11   #2


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
Was soll es da für eine Faustregel geben? Die daraus resultierende iterative Funktion darf sich halt nicht mehr selbst aufrufen, damit es keine rekursive mehr ist - mehr Bedingungen hast du nicht.
Mostey is offline  
Thanks
1 User
Old 12/02/2014, 17:26   #3
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Das einzige was sich daran ändert ist das du die Rekursion in der Funktion mit einer Schleife darstellst.
alpines is offline  
Thanks
1 User
Old 12/02/2014, 19:15   #4

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Ok danke. Dann gibts sowas anscheinend nicht
Moneypulation is offline  
Old 12/02/2014, 20:04   #5
 
​Tension's Avatar
 
elite*gold: 110
Join Date: Jun 2013
Posts: 599
Received Thanks: 510
Falls du ein Problem mit einem Code hast, könntest du ja einen Teil posten und man könnte rüber gucken und dir bei deinem Problem helfen.
​Tension is offline  
Reply




All times are GMT +1. The time now is 16:50.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.