Uploaded May 2025 | Updated November 2026, 3 hours ago
This video was made as part of a second-year undergraduate algorithms course sequence (Algorithms and Data Structures I and II).
0:00 Introduction
2:03 Compression
25:45 Run-Length Encoding
33:56 Developing a Scheme
42:01 Prefix-Free Codes
48:17 Encodings as Trees
53:27 Constructing Encodings
55:20 Huffman Coding
1:09:14 Symbol Selection
1:11:22 Decoding Prefix-Free Codes
The photograph on Slides 10 - 12 was originally taken from Wikimedia Commons (commons.wikimedia.org/wiki/File:Pear_in_tree_0465.jpg). The image is licensed under a Creative Commons license which allows derivative works.
The text of "A Tale of Two Cities" is in the public domain and can be obtained from a variety of sources. The version used here was obtained from Project Gutenberg (http://www.gutenberg.org)
All other slides and diagrams are original content (developed between 2019 and 2025). The materials used in this video, and the video itself, were prepared without any assistance from generative AI.
As any viewer will quickly realize, these videos were made just like in-person lectures: in one sitting, with no breaks, editing or script. If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).
This video was made as part of a second-year undergraduate algorithms course sequence (Algorithms and Data Structures I and II).
0:00 Introduction
2:03 Compression
25:45 Run-Length Encoding
33:56 Developing a Scheme
42:01 Prefix-Free Codes
48:17 Encodings as Trees
53:27 Constructing Encodings
55:20 Huffman Coding
1:09:14 Symbol Selection
1:11:22 Decoding Prefix-Free Codes
The photograph on Slides 10 - 12 was originally taken from Wikimedia Commons (commons.wikimedia.org/wiki/File:Pear_in_tree_0465.jpg). The image is licensed under a Creative Commons license which allows derivative works.
The text of "A Tale of Two Cities" is in the public domain and can be obtained from a variety of sources. The version used here was obtained from Project Gutenberg (http://www.gutenberg.org)
All other slides and diagrams are original content (developed between 2019 and 2025). The materials used in this video, and the video itself, were prepared without any assistance from generative AI.
As any viewer will quickly realize, these videos were made just like in-person lectures: in one sitting, with no breaks, editing or script. If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).










