Back to Browse

Python Programming 14. Linear Search

7.9K views
Jan 15, 2022
8:37

This is the 14th in a course of computer science video lessons introducing programming with Python. This lesson covers a well-known algorithm called the linear search. A linear search involves scanning a list, with a loop, and testing each item in turn to see if the list contains the target value. You will learn how to write code for a linear search using a while loop. You will also learn how to perform the same task using an if statement with the in operator. This lesson mentions how a list is stored in the computer’s memory, and the impact of this on the efficiency of a linear search compared with retrieving an individual item in a list if its index number is known.

Download

1 formats

Video Formats

360pmp411.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python Programming 14. Linear Search | NatokHD