Data Structures & Algorithms

Table of Contents

Merge sort

divide and conquer

algorithm

analysis merge tree for list with n elements:

shape of input is unimportant, as best case = worst case time complexity in recurrence equations:

so T(n) is of shape nlogn. Therefore T(n) is in ϴ(nlogn).