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 6474729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:37:19+00:00 2026-05-25T06:37:19+00:00

I am reading a book on trees. here is the text snippet. There are

  • 0

I am reading a book on trees. here is the text snippet.

There are quite a few general algorithms to implement balanced trees.
Most are quite a bit more complicated than a standard binary search
tree, and all take longer on average. They do, however, provide
protection against the embarrassingly simple cases.

A newer, method is to forego the balance condition and allow the tree
to be arbitrarily deep, but after every operation, a restructuring
rule is applied that tends to make future operations efficient. These
types of data structures are generally classified as self-adjusting.
In the case of a binary search tree, we can no longer guarantee an
O(log n) bound on any single operation, but can show that any sequence
of m operations takes total time O(m log n) in the worst case.

Questions on above text snippet

  1. How author came to conclusion in first paragraph what does author means embarrassingly simple cases how general algorithms of balanced trees provide
    protection against this?

  2. What does author mean “in last paragraph any sequence of m operations take total time O(mlogn) how we came to this conclusion, request to explain with
    example.

Thanks!

  • 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-05-25T06:37:19+00:00Added an answer on May 25, 2026 at 6:37 am
    1. For a typical, simple implementation of a binary search tree, merely inserting the sequence 1, 2, 3, ..., n will produce a tree with n levels. (Inserting each element traverses the tree all the way down the right side, then adds a new element on that side, resulting in a maximally unbalanced tree.) I believe this is what they mean by “embarrassingly simple”.

    2. They are talking about splay trees (as opposed to AVL or red/black trees). AVL and red/black trees guarantee O(log n) worst-case for every insert/delete/lookup operation, but at the cost of complex code and a somewhat large constant factor. Splay trees do not guarantee O(log n) for every single operation, but they do guarantee O(log n) per operation on average for any long sequence of operations. So in the long run, they perform as well as the more complex trees, but with a simpler implementation and smaller constant factor.

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

Sidebar

Related Questions

I am reading a chapter on trees in book on Data structures and Algorithms
I'm reading the book LINQ Pocket Reference and there is a particular example (slightly
I am reading the book Language Implementation Patterns ( http://pragprog.com/book/tpdsl/language-implementation-patterns ) amongst a few
I am reading a book that encourages the reader for a few reasons, to
Reading a book on algorithms. Can someone explain the meaning of the mathematical symbol
Im reading Jon Skeet book. ( Expression Trees Chapter) It has an example of
I'm reading book the C# programming Language, 4th Edition, by Anders Hejlsberg etc. There
I'm reading the book Algorithms and they mentioned a data type Item . However,
I'm reading the Cormen algorithms book (binary search tree chapter) and it says that
Recently, I was reading book about Erlang which has hot deployment feature. The deployment

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.