subject

What is the big-o performance estimate of the following function?
int f (n) {
int sum = 0;
for (i = 0; i < n; i = 7 * i)
sum += i;
return sum;
} // end f

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Whatโ€™s the process of observing someone actually working in a career that interests you?
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
The โ€œrule of 72โ€ is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
You know the right answer?
What is the big-o performance estimate of the following function?
int f (n) {
int sum =...
Questions
question
Spanish, 06.01.2021 01:00
question
Mathematics, 06.01.2021 01:00
question
Mathematics, 06.01.2021 01:00
Questions on the website: 13722367