I am taking CS50 online, and on week 3 we learned about algorithms. When we made it to complexity of algorythms, the lecture said that worst case senario of selection sort is n^2, because the algorythm loops through the array, and every time it looks for the smallest element, so
Looping Through an Array (O(n)) * Linear Search in the Array (O(n)) = O(n*n) = O(n^2)
After that, the lecturer said that we will have the same proccess in best case senario (already sorted array). But, earlier, he said that the best case senario of linear search (Element is first in the array) is Ω(1), so I thought that the best case senario of selection sort will be
Looping Through an Array (Ω(n)) * Linear Search in the Array (Ω(1)) = Ω(n*1) = Ω(n)
Why am I wrong?