Lecture 24: Sorting Algorithms

preview_player
Показать описание
MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
Instructor: Ana Bell

This lecture discusses different kinds of sorting and the levels of complexity of each algorithm. The sorting algorithms discussed are BOGO sort, bubble sort, selection sort, and merge sort.

License: Creative Commons BY-NC-SA

Рекомендации по теме
Комментарии
Автор

0:16 Searching a Sorted List
3:27 Why Binary Search?
4:33 Random Sort
7:43 Bubble Sort Intro
11:04 Coding Bubble Sort
14:13 Bubble Sort Complexity
15:28 Selection Sort Intro
19:19 Coding Selection Sort
20:06 Selection Sort Complexity
23:16 Optimized Selection Sort
27:54 Merge Sort Intro
38:48 Coding Merge Sort
45:18 Merge Sort Complexity
46:26 Summary

salahelsaadawy
Автор

Awesome! I like the way professor Ana Bell teach! This lecture is so good!

vinhnguyenucthanh
Автор

Wonderful lecture. Merge sort was explained really well and in a way that is easy to understand and recall.

abhijitrmuley
Автор

The explanation is very clear, thanks a lot! ;)

JoseGonzalez-glbj
Автор

14:18 Good question! before this lecture we use the tuple trick to operate the swap

YinHaotian
Автор

42:30 this makes for a simpler code but why copy and create new lists (added complexity, even though still nlogn), why not just pass down indexes for low and high and operate on the same list, like we did with bisection search?

Efebur
join shbcf.ru