Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Basic Skills: Lesson 30 "Recursion"

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,316
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 3, 2009

We discuss the mind-bending topic of recursion.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (32)

Sign In or Sign Up now to post a comment!
  • @Vladorz

    If you mean the way the "for" and "while" loops works in the background it's a bit more complicated because it usually uses direct memory access. what i suggest you do if you really want to learn about them, write a simple program with a loop (either for or while) and use F10 and F11 to do step by step analysis (F10 means go to the next command, F11 means on depth analysis). F10 and F11 are for MS visual Studio, I don't know about other IDEs.

  • Excellent video. Very helpful. I only needed everything up to 4 to remember how it was done. :)

  • so... "for" and "while" are recursive functions?

  • Well, there are many uses of recursive algorithms--and some problems are really best-solved *with* recursion. For example, Fibonacci numbers. But that doesn't mean that you HAVE to use a recursive algorithm, as often you can work around it. However if using recursion makes the code simpler and execute more quickly and efficiently, then I see now reason not to learn and use the technique. To each their own, in that sense.

    I am not sure I understand the second part of your question though.

  • @tcbetka why use recursion & why does it go in reverse after?

  • Teaching is the best way to learn difficult concepts, like C++ and programming in general. Your videos are great, for the most part--and are much-appreciated. I agree with the comment that advised you not apologize for taking time to make them. Let me people go elsewhere to find help, if they aren't happy...lol. I find these to be very useful as a brief review of concepts that I've covered years ago.

    I also can't wait to see your new videos, given that (I'm sure) your C++ skills have grown!

  • @lordyarkanlvl80 a series of Unix-based operating systems and graphical user interfaces developed

  • Its like a for loop inside out or backward

    or whatever the hell you may call it

  • Thx for the vid. Now try to explain how to make a recursive algorithm that finds an exit in a maze.

  • is your youtube name a reference to dexters lab?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more