Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-binary tree

Tags:

c

pointers

tree

I have to create a tree that can have up to n subnodes for each node (i.e its not a binary tree).
How do I do it?

like image 506
samurai_01 Avatar asked Jun 24 '26 16:06

samurai_01


1 Answers

You are looking for n-ary trees - http://oopweb.com/Algorithms/Documents/PLDS210/Volume/n_ary_trees.html The creation should be pretty simple from the information in this and other links (in google).

like image 78
Koran Avatar answered Jun 27 '26 08:06

Koran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!