Linear Search

Objective

Search for the target element in the list, which might be present. To search, linearly scan items from the list.

Experiment Setup

The Linear Search experiment consists of a list of numbers which are hidden. The 'Increment' control allows you to iterate through the list, starting from index 0 going upto the last element. You can scan all the items in succession.

On clicking increment once, the index will be incremented, associated number will be shown, and the background will indicate whether the number is the search target.

Procedure

Follow the given steps to perform the experiment.

  1. Click Increment, to visit the leftmost unknown item.
  2. Check if the number is the search Target.If not, then repeat step 1 and 2 again.