Sorting algorithms are used to sort through arrays, or lists in python, in an effort to find out if the object you are searching for is included in said array or not, usually returning a boolean statement of true or false for the result. I can see that the uses for sorting algorithms can extend far past simply looking through a list in hopes of finding some number, but rather its applications into databases, and how the efficiency of sorting algorithms can make a very large difference when searching into a database as large as, for example, serial numbers for all the products in all Costco stores across the world. Such a array in this database and can extend into the trillions of items, if not more, and when inventory needs to be conducted and barcodes are scanned to be cross-references with their place in the database, an efficient sorting algorithm that takes O(logn) will be much faster than a sorting algorithm that takes O(n^2). With many other real world applications the knowledge of algorithm efficiency will be very useful to me, especially when I will learn more effective methods for reducing algorithm run time for average case and worst case scenarios.
Having already discussed specific sorting algorithms and their efficiency in the previous week, specifically merge sort and quick sort, I will not spend time discussing more as they were both great examples of efficient algorithms that are some of the most used and taught across the world. However I will briefly state that Professor Heap's explanation of the sorting algorithms discussed in class using a deck of cards and going through each step of sorting on the projector really helped cement my understanding of how each sorting algorithm works. As well the readings selected by Professor Heap, specifically the reading "Sorting in Interactive Python" with it's interactive python visualizer of the algorithm code, its step by step visualizations of the sorting algorithms steps, and the informative descriptions provided for each sorting algorithm were also a huge help in my understand.
In conclusion, I am glad that sorting and efficiency were taught so thoroughly in CSC148 and I understand and appreciate their importance and applications for computer science and the real world.
Until next wee...oh right, this is the last week of the SLOG :'(. Farewell then my fellow SLOGers, TAs and Professor Danny Heap,
Maxim Isakov