<prompt> Write an algorithm to find the minimum element in an array.  <response>: 1. Start by setting the first element of the array as the minimum value. Lets call this min_value.2. Iterate over the array from the second element to the end. For each element: a. If the current element is less than min_value, update min_value to the current element.3. Return min_value.4. End.In code, this could be written in Python as:pythondef find_min_elementarray: min_value array0 for element in array1:: if element min_value: min_value element return min_value 