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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:00:54+00:00 2026-06-18T05:00:54+00:00

For a homework assignment, I’ve been asked to calculate the runtime of various algorithms.

  • 0

For a homework assignment, I’ve been asked to calculate the runtime of various algorithms. The part that is stumping me is the 2^N, because the size of N is so large.

Assuming a 2^N algorithm with a a data size N=1000 takes 5 seconds to execute, calculate the runtime for data sizes {2000, 3000, 10000}

Now, 2^2000/2^1000 = 2^1000 by the property of exponent division. The result is 5.071509e+301 seconds to execute on a data set of 2000 items.

How can I give a number for the next two sizes? 2^2000 and 2^9000 both return infinity in any calculator that I use. The professors hint is that 2^10 is approximate to 10^3, which means that 1024 is approximate to 1000.

  • 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-18T05:00:56+00:00Added an answer on June 18, 2026 at 5:00 am

    The function of time complexity is f(N) = c * 2N.

    Since f(1000) = 5, we can solve for c = 5 / 21000.

    So f(N) = 5 * 2N – 1000, and f(k * 1000) = 5 * 2(k – 1)*1000.

    The blockade seems to be with calculating 2n, so I will guide you on this.

    I will take one of your example to demonstrate the method:

    21000 = 210 * 100 = (210)100 ≈ (103)100 = 103 * 100 = 10300 = 1e300

    That is using your teacher’s hint, another way to calculate the number more accurately is:

    21000 = 101000 * log102 = 10301.03 = 100.03 * 10301 = 1.0715e301

    (As you can see, the more accurate method will be 10.7 times more than the result from the approximate method)

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

Sidebar

Related Questions

As part of a homework assignment, we are supposed to create an array that
As part of a homework assignment in Lisp, I am to use apply or
As part of a homework assignment I need to concatenate certain values in an
For a homework assignment, we're to be turning the basicCompare method into something that
For a homework assignment I was given a Card class that has enumerated types
As part of a homework assignment, I have to program a simple chess game
Disclaimer: this is a part of a homework assignment. I want to implement the
This is purely a homework assignment question, since I'm aware that you really shouldn't
I have a homework assignment that I am supposed to write a http server
In a recent homework assignment I've been told to use long variable to store

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.