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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:59:02+00:00 2026-05-31T11:59:02+00:00

I have two questions regarding time complexities. 1) I still haven’t seem to have

  • 0

I have two questions regarding time complexities.

1) I still haven’t seem to have gotten a hold of the big-oh or the landau’s notation. I know it is used to represent time complexities, but why cant I just say the worst-case time complexity of, say, bubble sort is n^2 and not as O(n^2)?

2) Why does log come into the picture for some time complexities? for example, why and how exactly is the worst-case time complexity of shell sort O(nlogn)?

any good site, other than wikipedia, about these things will be appreciated.

  • 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-31T11:59:03+00:00Added an answer on May 31, 2026 at 11:59 am
    1. Big-O notation is used to denote the fact that you’re talking about asymptotic behaviour. If you just write n^2, it might be assumed that you’re talking about the actual runtime of your particular program (i.e. that you could get the runtime in seconds directly from that expression). But in practice, your runtime will be of the form a.n^2 + b.n + c.log(n) + d. Big-O notation allows you to ignore all the lower-order terms, because as n heads to infinity, it’s only the n^2 term that matters.

    2. I’m not sure the worst-case complexity of shell sort is O(n log n). But log often comes in when something is being successively divided in two (think about the height of a balanced binary tree, for instance).

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

Sidebar

Related Questions

I actually have two questions regarding exception/error handling in the iPhone app that I
I have two questions regarding ceil() function.. The ceil() function is implemented in C.
I have two questions regarding jsTree: I am generating a jsTree using JSON with
I have used push notifications in my app. And I have two questions regarding
I have two questions regarding how to create / use the JDO persistence manager
I have two questions regarding to the positioning of a mpl window (using WXAgg
I have two questions regarding the Flex combo box. The string representing the function
Greetings, I have two questions regarding a DataTable.Select(): 1) How to escape potential apostrophes
I have a question regarding the design of two tables. Table 1: The main
I have two questions here. How can I show the header of the pop

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.