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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:07:24+00:00 2026-05-28T20:07:24+00:00

I could not make my title very descriptive, apologies! Is it the case that

  • 0

I could not make my title very descriptive, apologies!

Is it the case that for every data structure, supporting some operations with certain amortized running times, another data structure supporting the same operations in the same running times in worst case? I am interested in both the iterative, ephermal data structures and functional ones too.

I am certain that this question must have been asked before. I cannot seem to find the correct search keywords (in Google, SO, TCS). I am looking for a cited answer in {yes, no, open}.

  • 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-28T20:07:25+00:00Added an answer on May 28, 2026 at 8:07 pm

    No, at least in models where element distinctness of n elements requires time Ω(n log n).

    Consider the following data structure, which I describe using Python.

    class SpecialList:
        def __init__(self):
            self.lst = []
        def append(self, x):
            self.lst.append(x)
        def rotationalsimilarity(self, k):
            rotatedlst = self.lst[k:] + self.lst[:k]
            count = sum(1 if x == y else 0 for (x, y) in zip(self.lst, rotatedlst))
            self.lst = []
            return count
    

    Clearly append and rotationalsimilarity (since it clears the list) are amortized O(1). If rotationalsimilarity were worst-case O(1), then we could provide an O(1) undo operation that restores the data structure to its previous state. It follows that we could implement element distinctness in time O(n).

    def distinct(lst):
        slst = SpecialList()
        for x in lst:
            slst.append(x)
        for k in range(1, len(lst)):  # 1 <= k < len(lst)
            if slst.rotationalsimilarity(k) > 0:
                return False
            slst.undo()
        else:
            return True
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that the title might not be descriptive enough, but I'm making a
I could not make a better title, if anyone can do it please, help
I have checked the source codes of ASIHTTPRequest and could not make sure which
Our Tfs server (Tfs2008) has smtp server installed. But we could not make Tfs
I know I could just make all the Mix_Musics public, and not worry about
I could not find the function that returns the name of the cell referenced.
I'm sorry I could not think of a better title. The problem is the
i just could not figure out how i will put my data on a
Here is some code I could not get to format properly in markdown, this
ok not as simple as title may make it sound. I tried this 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.