There are several ways to solve a problem. Each way is called an algorithm. Just like comparing day to day objects, clothes and climate, we need to establish a way to determine which algorithm is better than the other. Watch this video to learn how do you determine the quality of an algorithm.
Rather than covering the time complexity and space complexity in detail, this video focuses on the basic idea as to why time and space are really essential when determining which algorithm is better.
00:00 Intro
00:58 Why compare 2 algorithms?
02:58 Example of time taken by an algorithm
07:34 Example of memory consumed by an algorithm
11:27 Verdict
📘 A text based explanation is available at: https://studyalgorithms.com/theory/how-do-you-compare-two-algorithms?/
🔗 To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalgorithms
💻 Get Social 💻
Follow on Facebook at: https://www.facebook.com/studyalgos
Follow on Twitter at: https://www.twitter.com/studyalgorithms
Follow on Tumblr at: https://studyalgos.tumblr.com/
Subscribe to RSS feeds: https://studyalgorithms.com/feed/
#algorithms #programming #tutorial