Course Content
Flowgorithm Features
Flowgorithm Features
0/1
Flowgorithm User Interface
Flowgorithm User Interface
0/3
Flowgorithm Flowchart Shapes
Flowgorithm Flowchart Shapes
0/1
Flowgorithm Data Types
Flowgorithm Data Types
0/1
Flowgorithm Comments
Flowgorithm Comments
0/1
Flowgorithm Numbers
Flowgorithm Numbers
0/1
Flowgorithm Strings
Flowgorithm Strings
0/1
Flowgorithm File Format
Flowgorithm File Format
0/1
Flowgorithm Program Attributes
Flowgorithm Program Attributes
0/1
IPO Chart
IPO Chart ( Input, Process and Output Chart )
0/2
First Flowgorithm Flowchart
First Flowgorithm Flowchart
0/2
Add Two Numbers Flowchart
Add Two Numbers Flowchart
0/2
Flowgorithm Quiz
Flowgorithm Quiz
0/1
Flowgorithm Beginner Exercises
Flowgorithm Beginner Exercises
0/1
Flowgorithm Beginner Course
About Lesson

Linear Search Algorithm

Let’s learn a simple algorithm called Linear Search. It is a straightforward way to find a particular value in a list. It checks each element in the list one by one until the desired value is found or the list ends.

Algorithm Steps

  • Step 1: Start at the beginning of the list.
  • Step 2: Compare the current element with the item to be searched, i.e., search target.
  • Step 3: If the current element is the target value, return its position.
  • Step 4: If the current element is not the target value, move to the next element in the list.
  • Step 5: Repeat steps 2-4 until the end of the list is reached.
  • Step 6: If the end of the list is reached and the target value is not found, indicate that the value is NOT FOUND in the list.