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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:13:42+00:00 2026-06-05T07:13:42+00:00

I need some help to understand analysing recursive algorithms. I quickly made this algorithm

  • 0

I need some help to understand analysing recursive algorithms. I quickly made this algorithm up, and would like to know what the complexity is:

int FunctionExampple( A1, A2, ... An )
{
    product = 1;
    if( n == 2)
    {
        product = multi(A1, A2);
    }
    else 
    {
        product = multi(A1, FunctionExample( A2, A3, ..., An ) );
   }
   return product; 
}

Now assuming the function multi takes O(n^1.59) time, what would the complexity be? Would it remain O(n^1.59) or would the recursive calls make it O(n^1.59 * n ) to account for the number of recursive calls? Thanks guys.

PS: I just wrote this up quickly, and syntax and all that stuff doesn’t matter.

  • 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-05T07:13:44+00:00Added an answer on June 5, 2026 at 7:13 am

    The parameter ‘n’ in O(n1.59) measures the size(s) of the arguments to ‘multi’, not the number of arguments. So what is crucial is how the size of an output from ‘multi’ relates to the sizes of its inputs. E.g. if the result from ‘multi’ is twice the size of any of its arguments, then a call multi(A, multi(B, C)) where A, B, C are of size n is O(n1.59 + (2n)1.59), and if you then chain multiple calls to multi in this fashion you get exponential growth. On the other hand, if ‘multi’ returns values that are of the same size as its inputs, then you get O(k n1.59) where k is the number of arguments to FunctionExample and n is their (largest) size.

    So it depends on how ‘multi’ behaves. E.g. there would be a huge difference if it would be multiplication versus multiplication within a finite field, as for the latter the result wouldn’t grow from the inputs, whereas for unlimited integers the result grows in size.

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

Sidebar

Related Questions

I need some help to understand pushStack Here I've made an example where the
Need some help to solve this. I have a gridview and inside the gridview
Need some help with this problem in implementing with XSLT, I had already implemented
Need some help gathering thoughts on this issue. Our team is moving ahead with
I'm having a hard time wrapping my head around this and need some help
I need some help to understand how can I track the data to insert
I need some help over here to understand how the model relationship works on
I need some help implementing the Radix sort algorthim in JavaScript. I found this
I need some help in understanding a python concept. class TilePuzzleProblem(search.Problem): This class is
I need some help with this, since it baffles me in my C program

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.