The Gateway to Computer Science Excellence
+7 votes

The average case and worst case complexities for Merge sort algorithm are

  1. $O \: (n^2), O\: (n^2)$
  2. $O \: (n^2), O\: (n \log_2 n)$
  3. $ O\: (n \log_2  n), O \: (n^2)$
  4. $ O\: (n \log_2  n),  O\: (n \log_2 n)$
in Algorithms by Veteran (106k points) | 1.4k views

2 Answers

+10 votes
Best answer

Answer D)

both are O(nlog2n)

by Veteran (119k points)
selected by
+1 vote
All the three cases(Worst,Average,best) of Merge sort takes O(nlogn).
by Boss (42.7k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,834 questions
57,853 answers
108,381 users