What is the big-o performance estimate

Assignment Help Basic Computer Science
Reference no: EM13935099

What is the big-O performance estimate of the following function?


int f (n) {
int sum = 0;
for (i = n; i > 0; i = i / 5)
sum += i;
return sum;
} // end f

 

Reference no: EM13935099

Questions Cloud

Substantial dividend or repurchase shares of stock : Residential Inc. produced substantial profits in the previous year. Assume that Residential pays 35% corporate income tax. If investors are taxed at 25% on ordinary income, and have 0% capital gains tax, would Residential’s common stock investors pre..
The obvious algorithm makes 2n - 2 comparisons : Given an array s =(s[1], s[2], . . . , s[n]), and n = 2^d for some d ≥ 1. We want to find the minimum and maximum values in s. We do this by comparing elements of s. (a) The "obvious" algorithm makes 2n - 2 comparisons. Explain.
Should the company record sales when orders are placed : should the company record sales when orders are placed or, to be consistent with GAAP, wait until orders are delivered?
Fix the calculation part in form1 : Format the calculated values as currency which includes trailing zeros; clearing the control used to display the calculated values when the Add menu Item is clicked.
What is the big-o performance estimate : What is the big-O performance estimate of the following function? int f (n) {int sum = 0;
Explain the focus of managerial accounting : Assume the role of Summer and explain the focus of managerial accounting and some of the ways it differs from financial accounting.
Is the er the organelle that synthesizes new membrane : What are the three chief components of eukaryotic cell membranes? Where does each originate? What organelle synthesizes new membrane? What accounts for the stability of phospholipid bilayers in acqueos systems?
What does the act of satisfying customers in each instance : Discuss the differences between a for-profit business providing a good or service to its customers and a nonprofit providing a good or service to its customers. What does the act of satisfying customers in each instance do to its resource?
Structural domain modeling construct : Use Case Descriptions Describe that are selected for description as shown above. Use the Main Flow/Extensions format. For ease of reference, use the selected use case numbers (from 1 to 11) NOTE: You are required to describe 11 use cases, but abou..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a program that reads in an integer

Write a program that reads in an integer and breaks it into a sequence of individual digits in reverse order. For example, the input 16384 is displayed as 4 8 3 6 1 You may assume that the input has no more than five digits and is not negative.

  A tracking system for the students at the school

a tracking system for the students at the school

  Important facts the author uses to support the main idea

List three important facts the author uses to support the main idea. What information or ideas discussed in this article/issue are also discussed in your textbook or other readings that you have done

  Most important components of a fully specified enterprise

What are the two most important components of a fully specified enterprise model? Describe the two basic approaches to designing an enterprise model.

  Comp dq microsoft''s website

This discussion board allows you to work with Word templates available on Microsoft's website. First, download a Word template from Microsoft.com by clicking Office, then Templates, then Word. Replace the placeholders with your own content. Upload..

  The prime address id being foreign

First last name using Zip code 56716 as the select statement.

  Python triangle classification program

Write a C++ version of the Python triangle classification program.

  Report on explaining how to recover corrupt file

When you try to open the file in an image viewer, a message is displayed indicating that the file is corrupt. Write a 2-3 page report explaining how to recover the file, orkty.zip, for further investigation.

  Both the discussion and in the assignment tool

Post your response to the following questions in both the discussion and in the assignment tool. Name your assignment in the following manner: LastName_4A

  Create a class named commission

Create a class named Commission that includes two numeric variables: a sales figure and a commission rate. Also create two overloaded methods name computeCommission().

  Write a loop that asks the user to enter a number

Write a loop that asks the user to enter a number. The loop should iterate 10 times nd keep a running total of the numbers entered.

  Why chain of custody must be followed in investigation

You are a computer forensics investigator for a law firm. The firm acquired a new client, a young woman who was fired. What is chain of custody and why must it be followed in investigations?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd