Showing an Algorithm is Incorrect (Example 1)
In today's lesson I show you how to apply the concept of correctness to refute the claim that a linear-search copy-cat still solves the search problem (when it doesn't solve it). Take note of the hints I provide here, it will help you with some that aren't happy enough with just one counterexample.
Time Stamps:
0:00 Setup of example
4:40 What's wrong with KindOfLinearSearch?
9:22 How to fix the algorithm.
Have a beautiful day!
Supporters (to date of publication, by tier (top to bottom)):
----------------------------------------------------------
Patreon Supporters (General Support):
Draikou
Patreon Supporters (Basic Support):
Patreon Supporters (Supporter Access!):
Eric R
-----------------------------------------------------------
Become a supporter today! To support my work and mission to provide free or accessible Computer Science education (especially in theory), subscribe to the channel, share my videos. Please donate and contribute to support my work for more content:
PATREON: https://www.patreon.com/PageWizard
SUBSCRIBESTAR: https://www.subscribestar.com/drpage
PAYPAL: https://paypal.me/pagewizard
Follow also at:
FACEBOOK: https://www.facebook.com/DanielRPage
TWITTER: https://twitter.com/PageWizardGLE
QUORA: https://www.quora.com/profile/Daniel-R-Page
TWITCH: https://www.twitch.tv/pagewizard
#ComputerScience
#Algorithms
#DataStructures