• retagged by
1,269 views
0 0 votes

Which of the following statements is/are valid?
1. Time Complexity of QuickSort is Θ(n^2)
2. Time Complexity of QuickSort is O(n^2)
3. For any two functions f(n) and g(n), we have f(n) = Θ(g(n)) if and only if f(n) = O(g(n)) and f(n) = Ω(g(n)).
4. Time complexity of all computer algorithms can be written as Ω(1)

1 Answer

Position:
Show:

Related questions

0 0 votes
1 1 answer
1.7k
1.7k views
tusharb asked Feb 18, 2022
1,661 views
As we know the time complexity of solving the greedy knapsack algorithm depends mainly on the sorting algorithm used, Can we use counting sort as the sorting algorithm to...
1 1 vote
1 1 answer
2.8k
2.8k views
sumitr asked Apr 10, 2019
2,788 views
What is the best case and worst case of the algorithm? And when will best case and worst case will happen??int main() { for(i=1 ; i<=n ; i++) { if(n%i == 0) { for(j=1 ; j...
0 0 votes
1 1 answer
1.3k
1.3k views
eyeamgj asked Aug 25, 2018
1,303 views
suppose we are given a sorted array ....and we need to extract minimum every tym what is the time complexity??and what is the tym complexity to delete the minimum ? are ...
0 0 votes
0 0 answers
646
646 views
iarnav asked Apr 11, 2018
646 views
Time Complexity of Kruskal - O(mlogm + n.O(1) + m.logn)mlogm for sorting edges in increasing order.n.O(1) n UNIONS as we've n nodes in G and each takes O(1)m.logm F...