DATA STRUCTURE
PRESENTATION
• Presented To :
Asma-Ull-Hosna
Lecturer
Dept. of CSE
Stamford University
Bangladesh
• Presented By :
Name : Md. Abdullah-Al-Faisal
ID : CSE 05506813
Name : Md. Muntasir Mamun
ID : CSE 05506814
Linear Search
DEFINITION
• In computer science, linear search or
sequential search is a method for
finding a particular value in a list that
checks each element in sequence
until the desired element is found or
the list is exhausted. The list need not
be ordered.
Explanation With Algorithm
• 1. Set K=1 and Loc=0
2. Repeat Steps 3 and 4
while K<=N
3. if key=LA[K], then Set
Loc=K,
print: Loc and Exit
4. Set K=K+1
5. if Loc=0 then Write:
Item in List
6. Exit
Thank you
All
Thank you
All

Data structure linear search

  • 1.
    DATA STRUCTURE PRESENTATION • PresentedTo : Asma-Ull-Hosna Lecturer Dept. of CSE Stamford University Bangladesh • Presented By : Name : Md. Abdullah-Al-Faisal ID : CSE 05506813 Name : Md. Muntasir Mamun ID : CSE 05506814
  • 2.
  • 3.
    DEFINITION • In computerscience, linear search or sequential search is a method for finding a particular value in a list that checks each element in sequence until the desired element is found or the list is exhausted. The list need not be ordered.
  • 4.
    Explanation With Algorithm •1. Set K=1 and Loc=0 2. Repeat Steps 3 and 4 while K<=N 3. if key=LA[K], then Set Loc=K, print: Loc and Exit 4. Set K=K+1 5. if Loc=0 then Write: Item in List 6. Exit
  • 5.
  • 6.