SlideShare a Scribd company logo
1 of 1
False
Input search
item
Set
Index to
1
While
Set found
to False
If
Location index
Found = True
True
False
If Found
Output not
found
Output Found
True
False
True
False
Re-arrange the Linear
Search algorithm into
the correct sequence
Start
Stop

More Related Content

Viewers also liked (9)

Binary search
Binary search Binary search
Binary search
 
Binary search
Binary searchBinary search
Binary search
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexity
 
An Introduction to Complexity Theory
An Introduction to Complexity TheoryAn Introduction to Complexity Theory
An Introduction to Complexity Theory
 
Data Structures - Searching & sorting
Data Structures - Searching & sortingData Structures - Searching & sorting
Data Structures - Searching & sorting
 
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil9. Searching & Sorting - Data Structures using C++ by Varsha Patil
9. Searching & Sorting - Data Structures using C++ by Varsha Patil
 
Chapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicChapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy Logic
 
Fuzzy logic ppt
Fuzzy logic pptFuzzy logic ppt
Fuzzy logic ppt
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Ppt
 

Linear search

  • 1. False Input search item Set Index to 1 While Set found to False If Location index Found = True True False If Found Output not found Output Found True False True False Re-arrange the Linear Search algorithm into the correct sequence Start Stop