Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C - Possible to create a tree level by level?

Name: Anonymous 2010-05-25 12:39

I'm studying trees right now, and I'd like to find some examples of how to create a binary(or k-ary) tree one level at a time, since I can't find it anywhere and my brain isn't working.

Anyone have any input on this? C's lack of functions doesn't help either. Thanks ahead, /prog/

Name: Anonymous 2010-05-25 15:11

>>8
You're only adding the nodes as you need them, with Xarn's algorithms. You aren't first building the entire tree and then searching breadth-first, that would be retarded.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List