
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In this document, students are introduced to the concept of sequential search, an algorithm for unsorted lists used in computer programming. The pseudocode for this search method and provides an example of why sorting a list is not always necessary or desirable. Students are encouraged to implement this algorithm in a lab exercise.
Typology: Lab Reports
1 / 1
This page cannot be seen from the preview
Don't miss anything!

List Search In this lab, you will be writing a program that searches a list. There are several different algorithms used for searching sequences in computer programming. The more optimal search algorithms require a sorted list. However, this situation doesn't occur very often and in some cases cannot occur at all. Programmers have algorithms for unsorted lists, but they do not run as quickly. The pseudocode for sequential search , a search algorithm for unsorted lists, is as follows (NOTE - printing is only done for testing purposes and to show the results of the function in IDLE) :