• edited by
768 views
0 0 votes
A new algorithm MaxPack for optimally packing furniture in a transportation container claims to have worst case complexity O(n2 log n), where n is the number of items to be packed.

From this, we can conclude that:

 1.For every sufficiently large n, for every input of size n, MaxPack requires time proportional to n2 log n.

 2.For some n, for every input of size n, MaxPack requires time proportional to n2 log n.

 3.For every sufficiently large n, every input of size n can be solved by MaxPack within time proportional to n2 log n.

 4.For every sufficiently large n, there is an input of size n for which MaxPack requires time proportional to n2 log n.

 

which option is correct?

1 Answer

0 0 votes
I THINK C IS CORRECT

A IS WRONG DUE TO SAYING PROPORTIONAL.

B IS WRONG  BECZ SAYING FOR SOME

D IS AGAIN DUE TO SAYING PROPORTIONAL
Position:
Show:

Related questions

1 1 vote
1 1 answer
178
178 views
GO Classes asked Aug 29
178 views
Consider Dijkstra's algorithm on a graph having $V$ vertices and $E$ edges.Suppose an indexed priority queue is not used.Instead, the tentative distances are stored only ...
0 0 votes
1 1 answer
480
480 views
Neeraj_patel asked Nov 14, 2024
480 views
What is the Time Complexity of the Dijkstra when it is using Adjacency list + Array (sorted or unsorted ) ? If it is O( V^2 + E ) then ,According to the General form of A...
0 0 votes
1 answers 1 answer
902
902 views
Mrityudoot asked Mar 7, 2024
902 views
For flag based approach in Bubble sort we can check first by a flag if the list is sorted or not in O(n), and if it is sorted, then no need to sort and the operation ends...