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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:13:19+00:00 2026-06-11T22:13:19+00:00

Somewhat similar to fibonacci sequence Running time of an algorithm is given by T

  • 0

Somewhat similar to fibonacci sequence

Running time of an algorithm is given by

T (n) =T (n-1)+T(n-2)+T(n-3) if n > 3

= n otherwise the order of this algorithm is?

if calculated by induction method then

T(n) = T(n-1) + T(n-2) + T(n-3) 

Let us assume T(n) to be some function aⁿ
then aⁿ = an-1 + an-2 + an-3
=> a³ = a² + a + 1

which give complex solutions also roots of above equation according to my calculations are

a = 1.839286755
a = 0.419643 - i ( 0.606291) 
a = 0.419643 + i ( 0.606291) 

Now, how can I proceed further or is there any other method for this?

  • 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-11T22:13:20+00:00Added an answer on June 11, 2026 at 10:13 pm

    If I remember correctly, when you have determined the roots of the characteristic equation, then the T(n) can be the linear combination of the powers of those Roots

    T(n)=A1*root1^n+A2*root2^n+A3*root3^n
    

    So I guess the maximum complexity here will be
    (maxroot)^n where maxroot is the maximum absolute value of your roots. So for your case it is ~ 1.83^n

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

Sidebar

Related Questions

I have a method somewhat similar to the one written bellow(this is just a
I asked a somewhat similar question this afternoon and then realized as great as
Somewhat similar to this question , except we haven't decided that we're going with
My question is somewhat similar to this one. We want to know if there's
This question is somewhat similar to How to combine two branches from two different
I referred to this somewhat similar question . However here the scenario is different:
I have a view that looks somewhat similar to this <% using (Html.BeginForm()) {%>
This question is somewhat similar to this one Best way to deploy large *.war
Rails 3.1, ActiveAdmin 0.3.4. My question is somewhat similar to this one but different
My question is somewhat similar to this How to stop debugging (or detach process)

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.