tags:

views:

98

answers:

3
+1  Q: 

Tree + Recursion..

Hi..

I came across an article on Binary Trees Search . It uses intensive Recursive Algorithms.. I am just so confused with these stuff..

Please guide my path so as I understand these problems at ease, or any good website to read about recursion first and then solving these problems.. Please share your experience on it..

Its very urgent, and I want to learn these concepts as soon as possible.. Thankss...

Regards.

+2  A: 

Trees are naturally recursive, because each subtree is itself a tree. That's a key idea that will be present in anything you do with trees.

duffymo
That was a pretty good One.. Thankx duffymo.. This will really be helpful.. I will try and figure out now, keeping this thing in mind.. Thanx.
AGeek
A: 

Recursion is one of those concepts that most people have to study for a while and feel confused about for a while, and then they have an epiphany, and it all just makes sense. Afterward, they often have a hard time figuring out what seemed so confusing, or why, since it's all so obvious.

Unfortunately, it also seems hard to predict when that epiphany will happen, or what will trigger it. From what I've seen, more often than not it happens when somebody gets away from the computer and goes for a walk (or swim, bike ride, etc.)

Jerry Coffin
A: 

A good book from which to learn recursion, which is driven by recursive descriptions of data structures (including lists and trees), is How to Design Programs, which is available free online.

Norman Ramsey
Hi, Thanx for sending the link for that good book.. Well can you plz send me the link of one good book on C programming, where can i revise my fundamental concepts of C, bit programming, pointers etc. and learn some advance concepts in C as well.. Thanx for taking your time out on this.. Thanxx.
AGeek
@RBA: Kernighan and Ritchie. You can thank me with an upvote ;-)
Norman Ramsey