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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:04:50+00:00 2026-05-28T06:04:50+00:00

Is there an algorithm that with a given 2-3 tree T and a pointer

  • 0

Is there an algorithm that with a given 2-3 tree T and a pointer to some node v in said tree, the algo can change the key of the node v so T would remain a legal 2-3 tree, in O(logn/loglogn) amortized efficiency?

  • 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-28T06:04:50+00:00Added an answer on May 28, 2026 at 6:04 am

    No.

    Assume it was possible, with the algorithm f, we will show we can sort an array with O(n*logn/loglogn) time complexity.

    sort array A of length n:
    (1) Create an  2-3 tree of size n, with no importance to keys. let it be T.
    (2) store all pointers to nodes in T in a second array B.
    (3) for each i from 0 to n:
       (3.1) f(B[i],A[i]) //modify the tree: pointer: B[i] new value: A[i]
    (4) extract elements from T back to A inorder.
    

    correctness:

    After each activation of f the tree is legal. After finishing activating f on all elements of T and all elements of A, the tree is legal and contains all elements. Thus, extracting elements from A, we get back the sorted array.

    complexity:

    (1)Creating a tree [no importance which keys we put] is O(n) we can put 0 in all elements, it doesn’t matter

    (2)iterating T and creating B is O(n)

    (3)activating f is O(logn/loglogn), thus invoking it n times is O(n*logn/loglogn)

    (4) extracting elements is just a traversal: O(n)

    Thus: total complexity is O(n*logn/loglogn)

    But sorting is an Omega(nlogn) problem with comparisons based algorithms. contradiction.

    Conclusion: desired f doesn’t exist.

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

Sidebar

Related Questions

Suppose I have: Toby Tiny Tory Tily Is there an algorithm that can easily
I am looking for an algorithm that given a photo / image, it can
Given this algorithm, I would like to know if there exists an iterative version.
Is there an algorithm that will, if given two nodes on a graph, find
Given a graph ( shown below), is there an algorithm that allows me to
Is there an algorithm that generates all strings from a given context-free grammar?
I know that there is an algorithm that permits, given a combination of number
Is there a practical algorithm that gives multiplication chains To clarify, the goal is
Is there an algorithm that is more time efficient than O(n^2) for detecting cycles
Is there a single algorithm that removes elements from a container as happens in

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.