Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9041155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:10:15+00:00 2026-06-16T10:10:15+00:00

I have a book that explains the theory behind binary search tree in a

  • 0

I have a book that explains the theory behind binary search tree in a very bad way i know that there is something about the order of both left and right child but i still cannot get the idea about one being greater than the other previous level.

Take for example this tree of strings:

Binary tree of names

(sorry for my paint) this example is taken directly from my book 🙂

Could someone explain the order to me ? what is the logic behind this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T10:10:17+00:00Added an answer on June 16, 2026 at 10:10 am

    In a BST every node has at most a left child and a right child. Every node on the left of a given node is smaller than it, and every node on the right of a given node is greater than it. One of the consequences of this is that you can’t have duplicate values, so I’m not sure if that example is exactly how the book has it.

    In the example you have, the strings are ordered alphabetically. Taking the root node as an example, Bob comes before Karen, so Bob goes on Karen’s left. Tom comes after Karen, so Tom goes on Karen’s right. Looking at the tree as a whole, you can see that every node on Karen’s left (Bob, Alan, Ellen) comes before Karen alphabetically and every node on Karen’s right (Tom, Wendy) comes after Karen alphabetically. This pattern is the same no matter which node you look at.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a book that explains the over all binary search tree in a
I'm new to C. I have a book in front of me that explains
I have come to know from book that for declaring a structure variable it
I have a book that explains contravariance/covariance as follows : a delegate can have
I'm reading an assembly book. The book explains that there are .text and .data
Do you know any book, blog, tutorial which explains in a detailed way the
I'm new here to stackoverflow, so bear with me. I have a book that
I have a book class, then a novel- and a science book class that
Using Mongoid 2.4.5 on Rails 3.2.1 I have a Model Book that has_many :pages
I have read in a Java book that says: Because a String is immutable,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.