Preview

A Red

Good Essays
Open Document
Open Document
767 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
A Red
A red–black tree is similar in structure to a B-tree of order[note 1] 4, where each node can contain between 1 to 3 values and (accordingly) between 2 to 4 child pointers. In such B-tree, each node will contain only one value matching the value in a black node of the red–black tree, with an optional value before and/or after it in the same node, both matching an equivalent red node of the red–black tree.
One way to see this equivalence is to "move up" the red nodes in a graphical representation of the red–black tree, so that they align horizontally with their parent black node, by creating together a horizontal cluster. In the B-tree, or in the modified graphical representation of the red–black tree, all leaf nodes are at the same depth.
The red–black tree is then structurally equivalent to a B-tree of order 4, with a minimum fill factor of 33% of values per cluster with a maximum capacity of 3 values.
This B-tree type is still more general than a red–black tree though, as it allows ambiguity in a red–black tree conversion—multiple red–black trees can be produced from an equivalent B-tree of order 4. If a B-tree cluster contains only 1 value, it is the minimum, black, and has two child pointers. If a cluster contains 3 values, then the central value will be black and each value stored on its sides will be red. If the cluster contains two values, however, either one can become the black node in the red–black tree (and the other one will be red).
So the order-4 B-tree does not maintain which of the values contained in each cluster is the root black tree for the whole cluster and the parent of the other values in the same cluster. Despite this, the operations on red–black trees are more economical in time because you don't have to maintain the vector of values. It may be costly if values are stored directly in each node rather than being stored by reference. B-tree nodes, however, are more economical in space because you don't need to store the color attribute for

You May Also Find These Documents Helpful

  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Redskin

    • 4385 Words
    • 18 Pages

    Page 1 Rebel Ridge Snowmobiles – Journal Entries 1st Web-Based Edition, Copyright © 2010 PKL Software, Incorporated. All rights reserved. Last Revised: April 1, 2010…

    • 4385 Words
    • 18 Pages
    Powerful Essays
  • Powerful Essays

    Unit 3 P5

    • 1440 Words
    • 6 Pages

    B2B Segmentation usually avoids focusing on the product and instead directs the attention towards the benefits for each segment. B2B Segmentation also avoids focusing on company size as a means to meet customer needs. By putting companies in categories by how many employees they have, these segmentations can miss important insights and make smaller companies feel that their needs won't be met.…

    • 1440 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Red Convertable

    • 437 Words
    • 2 Pages

    In the story The Red Convertible, Louise Erdrich introduces us to two brothers, Lyman and Henry Junior. They are of Chippewa descent and live on a reservation in North Dakota. One summer they decide to buy a red convertible car, and travel cross country. They have plenty of adventures meeting up with a girl from a small village in Alaska who needs a ride home. They happily oblige and drive her all the way to Alaska.…

    • 437 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Red Wolf

    • 199 Words
    • 1 Page

    The Red Wolf was almost extinct in the wilderness due to loss of habitat and hunting. The Red Wolf is killed in the wild because of human mistaking them for a coyote due to their almost similar physical characteristic. Human development also contributed to the loss of red wolves.…

    • 199 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Red Plaid Shirt

    • 672 Words
    • 3 Pages

    Where are the memories of our pasts held? In scrapbooks full of photographs, or perhaps written on the pages of a locked diary? Picture though, something as simple and ordinary as a closet full of clothes. Think about its contents, where they have been worn, what they have been through, the stories attached to each item. The nameless protagonist of Diane Schoemperlen's short story Red Plaid Shirt does this as she recalls a snippet of her past life with each article of clothing she picks up. Red plaid shirt, blue sweatshirt, brown cashmere sweater, yellow evening gown, black leather jacket…each item has a tale of its very own, and when combined they reveal the full story of the main character's life.…

    • 672 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Blue

    • 343 Words
    • 2 Pages

    ®/requiring employees to sign agreements that prevent them from working for competitors in the future.…

    • 343 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Big Red

    • 1741 Words
    • 7 Pages

    When the spring comes we start going outside and enjoying the beautiful weather. Springtime bring us to our favorite outside activities, activities such as gardening, fishing, and hiking, after being cooped up in the cold winter. We have the exciting sport of baseball opening up that get us putting on our shorts, caps, and sunglasses to experience the sporty outdoor. But what about those spring spectators who wear their suits, sport jackets, dresses, and the iconic sun hats? Yes, springtime also brings the world of thoroughbred horse racing.…

    • 1741 Words
    • 7 Pages
    Powerful Essays
  • Better Essays

    yellow

    • 1442 Words
    • 4 Pages

    The Yellow Wallpaper” is, on its surface, about a woman driven insane by post-partum depression and a dangerous treatment. However, an examination of the protagonist’s characterization reveals that the story is fundamentally about identity. The protagonist’s projection of an imaginary woman — which at first is merely her shadow — against the bars of the wallpaper’s pattern fragments her identity, internalizing the conflict she experiences and eventually leading to the complete breakdown of the boundaries of her identity and that of her projected shadow.…

    • 1442 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Amelie Color Red

    • 431 Words
    • 2 Pages

    Amelie Is a film about a French women in Paris who discovers ways to help overs find love. In the begin of this film in Amelie's home, the color was very vibrant. When Amelie grew up this films color pallet changed to medium browns and earthy greens however, Amelie throughout the film can be seen in bold reds. Typically the color red are a representation of love, like Amelie was to Nino. Paris is also the most romantic place in the world. Together, in Paris and the bold color pallets, Amelie is obviously a film about love. In the film, as the plot begins to unfold, in the background of this film felt very retro. The old motorcycle or the movie camera, giving the film a timely feel.…

    • 431 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Blue

    • 776 Words
    • 4 Pages

    These past few years of highschool have had its ups and downs, but overall it's been amazing. I'd like to thank my friends and family for always believing in me. Congratulations to the grads of 2013, see you all in 10 years!…

    • 776 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Model on Teamwork

    • 3254 Words
    • 14 Pages

    Postal address: Faculty of Sciences, Division of Mathematics and Computer Science, Department of Information Management and Software Engineering, Free University, De Boelelaan 1081 A, 1081 HV Amsterdam, The Netherlands…

    • 3254 Words
    • 14 Pages
    Powerful Essays
  • Better Essays

    Datacube Computation

    • 4285 Words
    • 18 Pages

    • The order in which the cube cells are visited can be optimized to reduce memory access, storage cost…

    • 4285 Words
    • 18 Pages
    Better Essays
  • Powerful Essays

    Rajesh Parekh and Vasant Honavar Department of Computer Science 226 Atanaso Hall Iowa State University Ames IA 50011. U.S.A. March 18, 1997…

    • 7800 Words
    • 32 Pages
    Powerful Essays
  • Best Essays

    Problem Tree

    • 1558 Words
    • 7 Pages

    MDF (Editor) (2005): MDF Tool: Problem Tree Analysis. Ede: MDF Training and Consultancy. URL [Accessed: 10.08.2010]. PDF…

    • 1558 Words
    • 7 Pages
    Best Essays