Business Studies, asked by sivakilaru6229, 1 year ago

Which activity can you use if you want to loop through a collection of item?

Answers

Answered by sailorking
0

An collection of items refers to arrays and to create loop in arrays selection sort, bubble sort, linear search and binary search methods can be applied to the arrays to crate a loop a access all the components of the array.

                             The use of each activities mentioned above are as follows :-

  • Linear search is used to search for a specific item in a linear way checking each item one by one.
  • Binary search is used to search for a specific item on a sorted array with simultaneous search from both ends.
  • Selection sort and bubble sort is used to sort the array with different techniques.
Similar questions