Description
1. Write an algorithm for sequential search using array having only a single comparison in the loop.
2. Write an algorithm for bubble sort using while loop. In case, the elements are sorted before the maximum number of possible passes/iterations, terminate the algorithm.