Tim Sort
Tim Sort
• STABLE : YES
Tim Sort
Advantages Disadvantages
Efficiency on real world data It takes additional memory for
particularly on partially sorted temporary arrays while merging
data sort
Stability : It is a stable sort which While handling certain edge cases
means after an swap element such as nearly sorted data with
position is fixed few elements out of order
It is adaptive ,when data is Not always the fastest algorithm
partialy sorted it performs better there are more fast algorithm than
that O(nlog(n)) time timsort
conclusion
BY CB.SC.U4CSE23202
CB.SC.U4CSE23212
CB.SC.U4CSE23223
CB.SC.U4CSE23229