OpenStax CNX

Sections
You are here: Home » Content » Recursion vs Iteration

About: Recursion vs Iteration

Module by: Kenneth Leroy Busbee. E-mail the author

View the content: Recursion vs Iteration

Metadata

Name: Recursion vs Iteration
ID: m20814
Language: English (en)
Summary: An introduction to recursion with the alternate method of using a for loop as the solution to a repetitive algorithm. C++ programming code for factorial is included.
Subject: Science and Technology
Keywords: iteration as alt to recursion, repetitive algorithms
License: Creative Commons Attribution License CC-BY 3.0

Authors: Kenneth Leroy Busbee (ken.busbee@hccs.edu)
Copyright Holders: Kenneth Leroy Busbee (ken.busbee@hccs.edu)
Maintainers: Kenneth Leroy Busbee (ken.busbee@hccs.edu)

Latest version: 1.4 (history)
First publication date: Mar 22, 2009 8:52 pm -0500
Last revision to module: Apr 7, 2010 8:25 am -0500

Downloads

PDF: m20814_1.4.pdf PDF file, for viewing content offline and printing. Learn more.
XML: m20814_1.4.cnxml XML that defines the structure and contents of the module, minus any included media files. Can be reimported in the editing interface. Learn more.

Version History

Version: 1.4 Apr 7, 2010 8:25 am -0500 by Kenneth Leroy Busbee
Changes:
Corrected a minor typo.

Version: 1.3 Jan 15, 2010 11:07 am -0600 by Kenneth Leroy Busbee
Changes:
Added Google Analytics. 

Version: 1.2 Mar 28, 2009 2:34 pm -0500 by Kenneth Leroy Busbee
Changes:
Minor changes to allow for proper PDF collection printing.

Version: 1.1 Mar 22, 2009 9:04 pm -0500 by Kenneth Leroy Busbee
Changes:
Initial Module

How to Reuse and Attribute This Content

If you derive a copy of this content using a OpenStax-CNX account and publish your version, proper attribution of the original work will be automatically done for you.

If you reuse this work elsewhere, in order to comply with the attribution requirements of the license (CC-BY 3.0), you must include

  • the authors' names: Kenneth Busbee
  • the title of the work: Recursion vs Iteration
  • the OpenStax-CNX URL where the work can be found: http://cnx.org/content/m20814/1.4/

See the citation section below for examples you can copy.

How to Cite and Attribute This Content

The following citation styles comply with the attribution requirements for the license (CC-BY 3.0) of this work:

American Chemical Society (ACS) Style Guide:

Busbee, K. Recursion vs Iteration, OpenStax-CNX Web site. http://cnx.org/content/m20814/1.4/, Apr 7, 2010.

American Medical Assocation (AMA) Manual of Style:

Busbee K. Recursion vs Iteration [OpenStax-CNX Web site]. April 7, 2010. Available at: http://cnx.org/content/m20814/1.4/.

American Psychological Assocation (APA) Publication Manual:

Busbee, K. (2010, April 7). Recursion vs Iteration. Retrieved from the OpenStax-CNX Web site: http://cnx.org/content/m20814/1.4/

Chicago Manual of Style (Bibliography):

Busbee, Kenneth. "Recursion vs Iteration." OpenStax-CNX. April 7, 2010. http://cnx.org/content/m20814/1.4/.

Chicago Manual of Style (Note):

Kenneth Busbee, "Recursion vs Iteration," OpenStax-CNX, April 7, 2010, http://cnx.org/content/m20814/1.4/.

Chicago Manual of Style (Reference, in Author-Date style):

Busbee, K. 2010. Recursion vs Iteration. OpenStax-CNX, April 7, 2010. http://cnx.org/content/m20814/1.4/.

Modern Languages Association (MLA) Style Manual:

Busbee, Kenneth. Recursion vs Iteration. OpenStax-CNX. 7 Apr. 2010 <http://cnx.org/content/m20814/1.4/>.