Tim Sort

Tim Sort is a sorting algorithm based on Insertion Sort and Merge Sort. A stable sorting algorithm works in O(n Log n) timeUsed in Java’s Arrays.sort() as well as Python’s sorted() and sort().First sort small pieces using Insertion Sort, then merges the pieces using merge of merge sort. We divide the Array into blocks known … Continue reading Tim Sort

Comparison of Data structures and Python support

Comparison between different data structures  Each data structure has it’s own different way, or different algorithm for sorting, inserting, finding, …etc. This is due to the nature of the data structure. There are algorithms used with specific data structure, where some other can’t be used. The more efficient & suitable the algorithm, the more you … Continue reading Comparison of Data structures and Python support