Question

1. a. In tilde notation, Heapsort's performance is ______________________ . Select one: a. quadratic b. constant...

1.

a. In tilde notation, Heapsort's performance is ______________________ .

Select one:

a. quadratic

b. constant

c. linear

d. linearithmic

b. In tilde notation, Quicksort's performance is _____________________ .

Select one:

a. quadratic

b. linearithmic

c. linear

d. constant

c. shellsort's average performance is closest to ________________.

d. When comparing the elementary sorts, choose the correct ranking of performance

A < B means that A's time to sort is less than B's (i.e., A is faster than B)

Select one:

a. Insertion < selection < shellsort

b. none of the other choices

c. selection < shellsort < insertion

d. shellsort < insertion < selection

Homework Answers

Answer #1

a. In tilde notation , ignores logarithmic factor . It is a variant of big - O.

As we know time complexity of Heapsort is O(nlogn) .

But in tilde notation it will perform in linear .

So option c .

b. Quick sort time complexity is O(n^2) . There are no logarithmic factor . So it will perform in quadratic time.

so option a .

c. shell sort's average performance is closet to O(n) .

and less than O(n^2).

for small and medium size array it is much fast than bubble and insertion sort.

D.

for an average size

time take by different sort is like.

shell sort < insertion < selection

mean shell sort take less time than insertion and insertion take less time than selection sort.

so option d .

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1.A stack implemented with an array has what performance? Select one: a. O(n3) b. O(n log...
1.A stack implemented with an array has what performance? Select one: a. O(n3) b. O(n log n) c. O(n) d. O(n2) 2. A stack uses the first in first out insertion and deletion method. Select one: True False 3. Match the following stack operations with their meaning. object pop(); boolean isEmpty(); push (object); integer size(); object top(); meanings are: - returns the number of elements stored -just removes the last inserted elements - returns the last inserted elements without removing...
A negative value for a given slack variable implies: Select one: a. no excess capacity. b....
A negative value for a given slack variable implies: Select one: a. no excess capacity. b. use of more resources than are available. c. none of the above. d. excess capacity. For costs to be a linear function of output: Select one: a. returns to each factor input must be constant. b. input prices must change at a constant rate. c. product prices must be constant. d. returns to scale must be constant. For managerial decision problems analyzed using the...
The Variance Inflationary Factor (VIF) measures the Select one: a. standard deviation of the slope b....
The Variance Inflationary Factor (VIF) measures the Select one: a. standard deviation of the slope b. contribution of each X variable with the Y variable after all other X variables are included in the model c. correlation of the X variables with each other d. correlation of the X variables with the Y variable Which of the following will not change a nonlinear model into a linear model? Select one: a. Square-root transformation b. Logarithmic transformation c. Variance inflationary factor...
Profit contribution equals total: Select one: a. revenue minus variable cost. b. revenue minus fixed cost....
Profit contribution equals total: Select one: a. revenue minus variable cost. b. revenue minus fixed cost. c. profit. d. revenue minus total cost. Slack variables: Select one: a. allow constraint equations to be expressed as inequalities. b. measure excess capacity. c. never equal zero. d. in some cases have negative values. The cost of capacity subject to constraints is: Select one: a. variable. b. sunk. c. semi-variable. d. nonzero. To determine the quantity to be produced by each production process...
Profit contribution equals total: Select one: a. revenue minus variable cost. b. revenue minus fixed cost....
Profit contribution equals total: Select one: a. revenue minus variable cost. b. revenue minus fixed cost. c. profit. d. revenue minus total cost. Slack variables: Select one: a. allow constraint equations to be expressed as inequalities. b. measure excess capacity. c. never equal zero. d. in some cases have negative values. The cost of capacity subject to constraints is: Select one: a. variable. b. sunk. c. semi-variable. d. nonzero. To determine the quantity to be produced by each production process...
In a flexible budget, __________ are adjusted to reflect actual performance. Select one: a. fixed costs...
In a flexible budget, __________ are adjusted to reflect actual performance. Select one: a. fixed costs b. variable costs c. revenues d. All of the above. e. Only b) and c).
1) An investment advisor is comparing performance of two mutual funds each of which is designed...
1) An investment advisor is comparing performance of two mutual funds each of which is designed to outperform the S&P 500. The Freedelity Fund returned 19% The JPStanley Fund returned 16%. Based on the information above, which is the better fund in terms of the manager’s ability to select stocks? A. Freedelity Fund has better stock selection B. JP Stanley Fund has better stock selection C. S&P 500 Index Fund has better stock selection D. Freedelity & JP Stanley Funds...
Progressive relaxation is an example of: Select one: a. A preventative approach to stress management b....
Progressive relaxation is an example of: Select one: a. A preventative approach to stress management b. A restructuring approach to stress management c. A mind-to-muscle approach to stress management d. An energizing approach to stress management. e. A muscle-to-mind approach to stress management Applied sport psychology is concerned with the interventions that can be used to enhance performance, participation, and personal growth. Which of the following research questions reflect this focus? Select one: a. Does imagery alone or imagery combined...
________assumes dividends will remain constant. Select one: a. None of the options are correct b. Gordon...
________assumes dividends will remain constant. Select one: a. None of the options are correct b. Gordon growth model c. Zero growth dividend model d. Maximum growth model
Steady-state economics seeks to keep … Select one: a. low levels of economic outputs constant. b....
Steady-state economics seeks to keep … Select one: a. low levels of economic outputs constant. b. total capital constant. c. low levels of throughput constant. d. high levels of environmental inputs constant. e. none of the above.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT