Blog Aggregator - Amardeep Sidhu

  • Tags

  • Archives

  • Meta

  •  

    June 2006
    M T W T F S S
    « May   Jul »
     1234
    567891011
    12131415161718
    19202122232425
    2627282930  

Archive for June 28th, 2006

28 Jun

Recursion vs Iteration

When writing code to do repetitive tasks, the two primary approaches are iteration and recursion. Generally you can use either one interchangeably, but potentially with different performance and complexity.

A recursive function calls itself (possibly more than once), with different parameters, and defines an exit clause that is guaranteed to be reached.

CREATE OR REPLACE FUNCTION

© 2008 Blog Aggregator - Amardeep Sidhu | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4 Sudoku, based on Pinkline by GPS Gazette