Informatics in Education logo


Login Register

  1. Home
  2. Issues
  3. Volume 6, Issue 2 (2007)
  4. Recursion Versus Iteration with the List ...

Informatics in Education

INFORMATION Submit your article Help
  • Article info
  • Related articles
  • More
    Article info Related articles

Recursion Versus Iteration with the List as a Data Structure
Volume 6, Issue 2 (2007), pp. 283–306
Izabella FOLTYNOWICZ  

Authors

 
Placeholder
https://doi.org/10.15388/infedu.2007.19
Pub. online: 15 October 2007      Type: Article     

Published
15 October 2007

Abstract

A reversible sequence of steps from the specification of the algorithm and the mathematical definition of the recurrent solution through the recursive procedure, the tail recursive procedure and finally to the iteration procedure, is shown. The notation for analysing recursive function execution as well as modified flow charts of an algorithm to identify the differences between the iteration and the tail recursion are proposed. All the procedures are written in Logo, so the lists are used as the data structure. Transformation from the recursive procedure to the iterative procedure and vice versa can be shown in such a way in every language in which the recursion is allowed. All examples are one-recursion-call examples and all except one are the functions of discrete mathematics.

Related articles PDF XML
Related articles PDF XML

Copyright
No copyright data available.

Keywords
recursion iteration tail-end recursion Logo loop list (data structure) discrete mathematics

Metrics
since February 2020
1147

Article info
views

0

Full article
views

695

PDF
downloads

280

XML
downloads

Export citation

Copy and paste formatted citation
Placeholder

Download citation in file


Share


RSS

INFORMATICS IN EDUCATION

  • Online ISSN: 2335-8971
  • Print ISSN: 1648-5831
  • Copyright © 2024 Vilnius University
  •  

For contributors

  • Submit
  • OA Policy

Contact us

  • Institute of Data Science and Digital Technologies,
  • Vilnius University, Akademijos St. 4, 08412, Vilnius, Lithuania
  • E-mail: gabriele.stupuriene@mif.vu.lt
Powered by PubliMill  •  Privacy policy