cgirl < XXXX@XXXXX.COM > writes:
Your question is off-topic for this newsgroup, but yes, this is the
definition of a balanced tree, and no, there is no other way to do it.
What you call "the lengths of the roots of the children" is usually
called the height of the node.
You should get these: http://www.yqcomputer.com/
Dag-Erling Smrgrav - XXXX@XXXXX.COM
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.