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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:07:52+00:00 2026-06-14T12:07:52+00:00

I have this recurrence relation T(n) = T(n-1) + n, for n ≥ 2

  • 0

I have this recurrence relation

T(n) = T(n-1) + n, for n ≥ 2
T(1) = 1

Practice exercise: Solve recurrence relation using the iteration method and give an asymptotic running time.

So I solved it like this:

T(n) = T(n-1) + n 
        = T(n-2)  + (n - 1) + n 
        = T(n-3) + (n - 2) + (n - 1) + n 
        = … 
        = T(1) + 2 + … (n - 2) + (n - 1) + n **
        = 1 + 2 + … + (n - 2) + (n - 1) + n
        = O(n^2)

I have some questions:

1)How I can find asymptotic running time?

**2)At this state of problem T(1) means that there was n that when it was subtracted with a number it gave the result 1, right?

3)What if T(0) = 1 and what if T(2) = 1?

Edit: 4) Why n ≥ 2 is useful?

I need really to understand it for my Mid-Term test

  • 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-14T12:07:53+00:00Added an answer on June 14, 2026 at 12:07 pm
    T(n) = T(n-1) + n, for n ≥ 2
    T(1) = 1
    

    If T(x) represents the running time:

    You have already found the asymptotic running time, O(n^2) (quadratic).

    If the relation is changed to T(0) = 1 or T(2) = 1, then the running time is still quadratic. The asymptotic behavior does not change if you add a constant or multiply by a constant, and changing the initial condition only adds a constant to the following terms.

    n ≥ 2 is present in the relation so that T(n) is defined at exactly once for every positive n. Otherwise, both lines would apply to T(1). You cannot compute T(1) from T(0) using T(n) = T(n-1) + n. Even if you could, T(1) would be defined in two different (and potentially inconsistent) ways.

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

Sidebar

Related Questions

I have tried determining the running time given by a recurrence relation, but my
I have this form: <%= form_tag posts_path, :method => :get, :class => search_nav do
I have this Json returned from controller : public ActionResult VerifyApp(string recurrence) { List<foo>
I have this homework question: Assume a Database table has 0 records at time
I have to find the recurrence equation from this algorithm: ALGO(n) if n <=
I have this recurrence formula: P(n) = ( P(n-1) + 2^(n/2) ) % (X)
I have been challenged to find the general term or the recurrence relation for
I have been writing a program for the following recurrence relation: An = 5An-1
We have to create an algorithm and find and solve its recurrence. Finding the
I am trying to solve this recurrence T(n) = 3 T(n/2) + n lg

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.