Professional Documents
Culture Documents
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
17. Perform a linear search for the letter “f” in the following data:
b u l p f a g h
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
18. Perform a bubble sort to put the following data into ascending numerical order:
1 5 6 2 9 0 1
2
19. Perform a bubble sort to put the following data into descending numerical order:
60 2 40 52 3 5
3
20. Explain the difference in efficiency between the two different sort algorithms (linear
search and bubble sort)
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________