LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2006, 05:40 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
red-black trees


Hi,
I do not understand a specific property. As mentioned in wikipedia
Quote:
These constraints enforce a critical property of red-black trees: that the longest possible path from the root to a leaf is no more than twice as long as the shortest possible path. The result is that the tree is roughly balanced.
But, what if we start inserting numbers -for example- >40 in this (wikipedia example) tree? http://en.wikipedia.org/wiki/Image:R...ee_example.png
 
Old 01-05-2006, 04:01 PM   #2
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
I have now cleared things out now; problem solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer starts print with black, but then slowly turns to red Mistreated Linux - Hardware 2 12-25-2004 12:56 AM
CVS trees in windows DAChristen29 Linux - Software 0 01-13-2004 09:12 AM
Deleting Whole Trees Odd_Bloke Linux - Newbie 1 08-29-2003 05:14 PM
Red Hat 9 install= screen black ! FinnGnome Linux - Software 1 05-06-2003 09:07 AM
Not seeing forest for the trees zuessh Linux - Software 16 02-17-2003 07:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration