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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:12:28+00:00 2026-06-11T12:12:28+00:00

Pardon me if the question is silly. I am new to algorithmic time complexity.

  • 0

Pardon me if the question is “silly”. I am new to algorithmic time complexity.

I understand that if I have n numbers and I want to sum them, it takes “n steps”, which means the algorithm is O(n) or linear time. i.e. Number of steps taken increases linearly with number of input, n.

If I write a new algorithm that does this summing 5 times, one after another, I understand that it is O(5n) = O(n) time, still linear (according to wikipedia).

Question

If I have say 10 different O(n) time algorithms (sum, linear time sort etc). And I run them one after another on the n inputs.

Does this mean that overall this runs in O(10n) = O(n), linear time?

  • 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-06-11T12:12:29+00:00Added an answer on June 11, 2026 at 12:12 pm

    Yep, O(kn) for any constant k, = O(n)

    If you start growing your problem and decide that your 10 linear ops are actually k linear ops based on, say k being the length of a user input array, it would then be incorrect to drop that information from the big-oh

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

Sidebar

Related Questions

I am new to iOS 5 and ARC, so pardon my silly question. If
I'm new to free-text search, so pardon the newbie question. Suppose I have the
Pardon me, this really is a noob question but please understand that I do
I am really new to C++ programming so please pardon my silly question. I
Pardon if this is a n00b question, I'm a n00b to grails... I have
Pardon me, if it is a silly question. Can you anyone tell me how
So I am new to Rails, so pardon the basic question. I see rails
This may be very obvious question, pardon me if so. I have below code
I am new to Android and Java so pardon me if the question sounds
I beg your pardon, if its a silly question. But I really need to

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.