Paste Code here:
biggs = [[2, 4, 6],
[8, 10, 12],
[14, 16, 18]]
for bigg in biggs:
for big in bigg:
if (big!=1):
print(big)
Sequential search: A search where we iterate through an array, element by element, comparing
each element with the desired value. Once the desired value is found in the array, return the
index it is at. If the end of the array is reached and the list is not found, return -1.
Binary Search: a search used to find a value that is already sorted (ie elements occur in order,
least to greatest) in the list. The Binary search algorithm first checks to see if the middle of the
list less than, equal to ,or greater than the desired value then narrows the search accordingly,
cutting the search space in half everytime
[1, 3, 4, 5, 6, 8, 12]
The binary search algorithm operates with O(log2(n)) time complexity