Algorithmic Ideas, Engineering Tricks, and Trivia Behind CPython's New Sorting Algorithm

Algorithmic Ideas, Engineering Tricks, and Trivia Behind CPython's New Sorting Algorithm

PyCon US via YouTube Direct link

Intro

1 of 14

1 of 14

Intro

Class Central Classrooms beta

YouTube playlists curated by Class Central.

Classroom Contents

Algorithmic Ideas, Engineering Tricks, and Trivia Behind CPython's New Sorting Algorithm

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Outline
  3. 3 Stable Sorting
  4. 4 CPython Sorting History
  5. 5 Timsort merge policy (original)
  6. 6 Invariant trouble
  7. 7 Timsort merge policy (patched)
  8. 8 Timsort bad case
  9. 9 Merge policies from first principles
  10. 10 Mergesort meets Binary Search Trees
  11. 11 Run-Boundary Powers are Local
  12. 12 Some performance data
  13. 13 Bonus: Multiway powersort
  14. 14 Conclusion

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.