Re: asm

From: Randall Hyde (randyhyde_at_earthlink.net)
Date: 04/28/04


Date: Wed, 28 Apr 2004 11:10:10 +0000 (UTC)


"Jim Carlock" <anonymous@127.0.0.1> wrote in message
news:Stl5c.293460$Po1.76750@twister.tampabay.rr.com...
> I think a factorial is a good introduction to recursion as well.
>

Personally, I'm not sure. It's one of those algorithms that you would
*never* solve recursively if you really had to do it (too inefficient that
way).

Generally, I like to give students a "maze solution" problem to solve when
introducing recursion in assembly language. It's easy, far more interesting
(to most students), and is a practical application of recursion.
Cheers,
Randy Hyde



Relevant Pages

  • Re: Interesting article by Joel Spolsky: The Perils of JavaSchools
    ... What matters is that Lisp teaches students to use ... recursion, because they have to. ... Java does NOT teach students to use ... pointers and recursion, she'll be able to understand anything, and get ...
    (comp.programming)
  • Re: free implementation? factorial?
    ... > great example to help students understand how recursion actually works. ... I wouldn't mention recursion in a class teaching ... the standard file update, ...
    (comp.lang.cobol)
  • Re: Thinking Recursion
    ... since my students often have some ... a fairly common pattern: one can only grasp recursion the first time ... Now, binary search is recursive. ... such things have little trouble understanding such recursive strategies. ...
    (comp.lang.prolog)
  • Re: Why is recursion hard?
    ... recursion is because the folks who are into it (i.e. computer science ... They *want* their students to have that "a ... head around calling functions, it's really not that big a deal for a ...
    (comp.lang.scheme)
  • Re: Why is recursion hard?
    ... I don't think this can be it; I've never heard anyone say "all iteration is ... recursion" until this moment. ... I've told my students things like "with ... I like to start with an embedded recursion example rather than a tail ...
    (comp.lang.scheme)