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

  • Home
  • SEARCH
  • 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 7673063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:25:35+00:00 2026-05-31T16:25:35+00:00

What is the Big O efficiency of the AVL tree rotation specifically? For example

  • 0

What is the Big O efficiency of the AVL tree rotation specifically?

For example when inserting:
– O(logN) to search for the position
– O(1) to insert
– ? for balancing (if it needs to be re-balanced)

I thought it would be O(logN) but I found a site which claims it’s O(1) – unless I have misread it – http://users.informatik.uni-halle.de/~jopsi/dinf504/chap4.shtml

(Would this also be the same for a 2-3 tree?)

Thanks for the help in advance

  • 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-31T16:25:36+00:00Added an answer on May 31, 2026 at 4:25 pm

    The complexity is O(log n) as you say. I believe that in the article they mean constant time for each rebalancing operation i.e. each rotation, while you have to do O(log n) rotations. Whatever the truth the complexity is as you say logarithmic.

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

Sidebar

Related Questions

I know that in terms of efficiency it is better to have one big
Like most of us, I am a big fan of improving efficiency of code.
Is there a big difference in efficiency when using Point2D instead of double x
I need to store a big list of integers in Bigtable(db). For efficiency I
I think this is probably a beginner question about big-O notation. Say, for example,
I need to use a big data structure, more specifically, a big dictionary to
I have a big collection of millions entries. I want to remove efficiently all
(big) (big) Somewhere along the way into the function animationWithFrames , my vector loses
The big picuture: I am trying to inject my own own wrapper around explorer's
A big file will be sent from A host to B host through 3

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.