technifyedWeekly list

Tech With Tim

Python Sorting Algorithm Visualizer Tutorial

via YouTube Free video

Overview

Welcome back to another video! In todays video I'm going to be showing you to create a sorting algorithm visualizer in Python using Pygame! I have a quick demo that you can see and I will also talk about some of the prerequisites as this is not a beginner tutorial. I hope that you enjoy!

💻 ProgrammingExpert is the best platform to learn how to code and become a software engineer as fast as possible! Check it out here: https://programmingexpert.io/tim and use code "tim" for a discount!

📄 Resources 📄

Code in this video: https://github.com/techwithtim/Sorting-Algorithm-Visualizer

Python Generators Explained: https://www.youtube.com/watch?v=u3T7hmLthUU

Fix Pip (Windows): https://www.youtube.com/watch?v=AdUZArA-kZw&t=204s

Fix Pip (Mac): https://www.youtube.com/watch?v=E-WhAS6qzsU

⭐️ Timestamps ⭐️

00:00:00 | Overview

00:00:27 | Project Demo

00:01:49 | Prerequisites

00:02:46 | Pygame Setup

00:03:35 | DrawInformation Class

00:15:15 | Generating Starting List

00:16:50 | Pygame Event Loop

00:23:00 | Drawing On The Screen

00:34:03 | Sorting Controls

00:45:06 | Implementing Bubble Sort

01:05:10 | Cosmetic Additions

01:08:48 | Implementing Insertion Sort

01:14:54 | Conclusion

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop

📸 Instagram: https://www.instagram.com/tech_with_tim

📱 Twitter: https://twitter.com/TechWithTimm

⭐ Discord: https://discord.gg/twt

📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/

🌎 Website: https://techwithtim.net

📂 GitHub: https://github.com/techwithtim

🔊 Podcast: https://anchor.fm/tech-with-tim

🎬 My YouTube Gear: https://www.techwithtim.net/gear/

💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8

💰 Patreon: https://www.patreon.com/techwithtim

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️

-Tech With Tim

-Sorting Algorithm

-Python

-Visualizer

⭐️ Hashtags ⭐️

#TechWithTim #Python #Visualizer

Chapters 13

  1. 00:00:00Overview
  2. 00:00:27Project Demo
  3. 00:01:49Prerequisites
  4. 00:02:46Pygame Setup
  5. 00:03:35DrawInformation Class
  6. 00:15:15Generating Starting List
  7. 00:16:50Pygame Event Loop
  8. 00:23:00Drawing On The Screen
  9. 00:34:03Sorting Controls
  10. 00:45:06Implementing Bubble Sort
  11. 01:05:10Cosmetic Additions
  12. 01:08:48Implementing Insertion Sort
  13. 01:14:54Conclusion

Advantages and disadvantages

Advantages

  • Free, one long video that covers a topic end to end.
  • Use the chapters to jump to what you need.
  • Completely free.
  • Self-paced: start any time.
  • A clear syllabus (13 parts) you can see before you start.
  • Hands-on: you build or practise, not just watch.
  • Start watching right away, no sign-up.

Disadvantages

  • No exercises or certificate: code along to make it stick.
  • No certificate.
  • Short (1.5 hours): an overview, not deep coverage.
  • No graded assignments or feedback.

Some points apply to every course of this kind; see how we rank.

Free

  • Free: Watch on YouTube, no account needed.
  • Certificate: None. Code or take notes along to make it stick.

Tech With Tim is in Tier 3: good universities, respected companies, nonprofits and well-known teachers of our institution ranking (68/100).

Similar courses

Compare these

Massachusetts Institute of Technology

MIT 6.006 Introduction to Algorithms, Fall 2011

This course provides an introduction to mathematical modeling of computational problems. It covers the common algorithms, algorithmic paradigms, and data structures used to solve these problems. The course emphasizes the relationship between algorithms and programming, and introduces basic performa…

  • Free video
  • 47 videos, 42 hours

Harvard University

CS50's Introduction to Programming with Python (CS50P) 2022

This is CS50P, CS50's Introduction to Programming with Python. Register for free at https://cs50.edx.org/python. Slides and source code at https://cs50.harvard.edu/python. Playlist at https://www.youtube.com/playlist?list=PLhQjrBD2T3817j24-GogXmWqO5Q5vYy0V. An introduction to programming using a la…

  • Free video
  • 11 videos, 16 hours

Massachusetts Institute of Technology

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022

Instructor: Ana Bell View the complete course: https://ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/ *Note: Lectures 6, 10 have been updated! This subject is aimed at students with little to no programming experience. It aims to provide students with an under…

  • Free video
  • 26 videos, 28 hours

Massachusetts Institute of Technology

MIT 6.006 Introduction to Algorithms, Spring 2020

Instructor: Prof. Erik Demaine, Dr. Jason Ku, Prof. Justin Solomon View the complete course: https://ocw.mit.edu/6-006S20 YouTube Playlist: https://www.youtube.com/playlist?list=PLUl4u3cNGP63EdVPNLG3ToM6LaEUuStEY This course is an introduction to mathematical modeling of computational problems, as…

  • Free video
  • 32 videos, 35 hours

Massachusetts Institute of Technology

MIT 6.046J / 18.410J Introduction to Algorithms (SMA 5503),

This course teaches techniques for the design and analysis of efficient algorithms, emphasizing methods useful in practice. Topics covered include: sorting; search trees, heaps, and hashing; divide-and-conquer; dynamic programming; amortized analysis; graph algorithms; shortest paths; network flow;…

  • Free video
  • 23 videos, 30 hours

Harvard University

CS50's Web Programming with Python and JavaScript (CS50W) 2020

This is CS50W, CS50's Web Programming with Python and JavaScript. Register for free at https://cs50.edx.org/web. Slides and source code at https://cs50.harvard.edu/web. This course picks up where Harvard University’s CS50 leaves off, diving more deeply into the design and implementation of web apps…

  • Free video
  • 10 videos, 14 hours