Home > Uncategorized > Maximum number of comparison in merge sort

Maximum number of comparison in merge sort

If  N number , the maximum number of comparison in merge sort is : (N logN – N + 1)

So, if there is N = 8 elements then maximum comparison is : 8*3 – 8 + 1  = 17.

 

Derivation : hints.

Publish later…

 

Prosunjit Biswas

 

Advertisements
Categories: Uncategorized
  1. ben gala
    May 23, 2013 at 8:14 am

    thanks very musch

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: