Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: K&R2, Binar...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 26157 of 27348
Post > Topic >>

Re: K&R2, Binary-Tree, section 6.5

by arnuld <sunrise@[EMAIL PROTECTED] > May 15, 2008 at 10:28 AM

> On Tue, 13 May 2008 10:15:01 -0700, Ben Pfaff wrote:

>                              now
>                           /       \
>         ^               is         the           ^
>         |             /   \       /   \          |
> height  |          for    men    of    time      |  height
>   4     |         /   \           \    /    \    |    3
>         |      all   good      party  their  to  V
>         |     /   \
>         V   aid   come

> No, because "is" has a balance factor of -2 (1 minus 3).

Oh... Now I got it, every node ( whether child or root) in AVL tree must
have a balance factor of -1,0 or 1. 

 right ?


-- 
http://lispmachine.wordpress.com/
my email ID is @[EMAIL PROTECTED]
 the above blog.
just check the "About Myself" page :)
 




 9 Posts in Topic:
K&R2, Binary-Tree, section 6.5
arnuld <sunrise@[EMAIL  2008-05-12 11:44:18 
Re: K&R2, Binary-Tree, section 6.5
arnuld <sunrise@[EMAIL  2008-05-12 12:49:00 
Re: K&R2, Binary-Tree, section 6.5
Ben Pfaff <blp@[EMAIL   2008-05-12 09:17:46 
Re: K&R2, Binary-Tree, section 6.5
arnuld <sunrise@[EMAIL  2008-05-13 21:13:11 
Re: K&R2, Binary-Tree, section 6.5
Ben Pfaff <blp@[EMAIL   2008-05-13 10:15:01 
Re: K&R2, Binary-Tree, section 6.5
arnuld <sunrise@[EMAIL  2008-05-15 10:28:52 
Re: K&R2, Binary-Tree, section 6.5
Ben Pfaff <blp@[EMAIL   2008-05-15 08:37:23 
Re: K&R2, Binary-Tree, section 6.5
arnuld <sunrise@[EMAIL  2008-05-13 21:15:23 
Re: K&R2, Binary-Tree, section 6.5
Richard Heathfield <rj  2008-05-13 05:08:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:04:34 CDT 2008.