Save
CS -CPU- <3
Linear search<3
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Eve Taylor
Visit profile
Cards (6)
what type of lists does a linear search look for items in
an
unordered
list
View source
Linear Search Algorithm- step 1
look at the
first item
in the
list
View source
Linear Search Algorithm- step 2
if this is the item you're looking for
,
then stop
View source
Linear Search Algorithm-
step 3
if not, look at the
next
item in the
list
View source
Linear Search Algorithm- step 4
Repeat steps 2-3 until you
find
the
item you're looking for
or you've
checked
every
item
View source
linear search advantages
it is
simpler
, it can be used on
any type
of
list
View source