<div><i>as many as (about) 2*N - log2(N) parent child relationships</i></div><div><i><br></i></div><div>I would like to know how did you come up with the above formula? Forgive my ignorance.</div><br clear="all"><div dir="ltr">
<div>--</div><div>Thanks and Best Regards, </div>Iftikhan Nazeem<div><div><i><font color="#666666">Skype</font></i><font color="#666666"> :</font> iftecan2000</div></div></div><br>
<br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 11:04 PM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>>> import this<br>
<br>
prints 'The Zen of Python', a poem by Tim Peters that consists of python proverbs such as "Flat is better than nested." (Others things being equal) why? Because it is a restatement of the principle of parsimony, of not multiplying entities without necessity.<br>

<br>
Suppose we have a unstructured collection of N items. Organizer comes along and says 'Let there be structure. Let us organize the items as leaf nodes in a hierarchical tree' (which is equivalent to nesting). To do so, we can add as many as N-1 new non-leaf nodes and as many as (about) 2*N - log2(N) parent child relationships. In other words, nearly quadruple the number of entities to learn, discuss, and remember. Well, there had better be a good necessity to do so ;-).<br>

<br>
And, of course, once new entities *are* conjured up, it is hard to get rid of them.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Terry Jan Reedy<br>
<br>
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br>