Suppose you are choosing between the following three algorithms:
• Algorithm A solves problems by dividing them into five subproblems of half the size, recursively solving each subproblem, and then combining the solutions in linear time.
• Algorithm B solves problems of size n by recursively solving two subproblems of size n − 1 and then combining the solutions in constant time.
• Algorithm C solves problems of size n by dividing them into nine sub-problems of size n=3, recursively solving each sub-problem, and then combining the solutions in O(n2) time.
What are the running times of each of these algorithms (in big-O notation), and which would you choose?

Answers

Answer 1

Answer:

Algorithm C is chosen

Explanation:

For Algorithm A

T(n) = 5 * T ( n/2 ) + 0(n)

where : a = 5 , b = 2 , ∝ = 1

attached below is the remaining part of the solution

Suppose You Are Choosing Between The Following Three Algorithms: Algorithm A Solves Problems By Dividing

Related Questions

Other Questions
I need to know the vertex of this parabola can someone help me ASAP What is the answer to this? Please help. Plz help Im having trouble doing this A $64,000 machine with a 6-year class life was purchased 2 years ago. The machine will now be sold for $50,000 and replaced with a new machine costing $82,000, with a 10-year class life. The new machine will not increase sales, but will decrease operating costs by $9,000 per year. Simplified straight line depreciation is employed for both machines, and the marginal corporate tax rate is 34 percent. What is the incremental annual cash flow associated with the project please help me please will give brainliest The measures of angles X and Y are the same, x degrees. The measure of angle Z is twice the measure of angle Y. What is the measure of angle YPls help me Can someone help only answer if you know and scam links are getting reported Who can solve and attach a pic so I can write down how I got the answer Mr. Bond wrote the inequality 46 < 34. Write a sentence about a real-life situation that compares the values from his inequality. which of the following human activities are not related to an increase in global temperature Please help me! No links!!! Please! Do you believe the actions taken by the Iranians are "an act of was against the United States?" Light travels at the same speed at all times. True False Predict the products for the reaction shown in the picture. Fe(s) + CuCrO4(aq) > an ice cream cone that is 4 inches tall has an opening that is 8 inches across. Find the volume of the cone (Hours, minutes, and seconds) Write a method that returns a string in the form of hour:minute:second for a given total seconds using the following header:public static String format(long seconds)Here is a sample run:Enter total seconds: 342324 The hours, minutes, and seconds for total seconds 342324 is 23:05:24Note that a zero is padded to hour, minute, and second if any of these values is a single digit. PLEASE HELP ME ASAP!!!!!!!!!!!!! Andrew is driving to visit his grandmother. He drove 171 miles in 3 hours. What was his average rate of travel for the trip?If Andrew drives 6 more hours at the same rate, what is the total number of miles traveled for the whole trip? True or FalseYellow journalism led many Americans to support the Cuban rebels Assume that last year, Cliff Consulting, a firm in Berkeley, CA, had the following contribution income statement: CLIFF CONSULTING Contribution Income Statement For the Year Ended September 30Sales revenue $ 1,200,000Variable costs Cost of services $ 480,000 Selling and administrative 60,000 540,000Contribution margin 660,000Fixed Costs -selling and administrative 440,000Before-tax profit 220,000Income taxes (21%) 46,200After-tax profit $ 173,800(a) Determine the annual break-even point in sales revenue.(b) Determine the annual margin of safety in sales revenue.(c) What is the break-even point in sales revenue if management makes a decision that increases fixed costs by $80,000?(d) With the current cost structure, including fixed costs of $440,000, what dollar sales revenue is required to provide an after-tax net income of $250,000?(e) Prepare an abbreviated contribution income statement to verify that the solution to requirement (d) will provide the desired after-tax income.