QUESTION 6 What is the dominant operation in this algorithm? 1. Input the number of values n 2. Input the list of numbers x₁, x2, ..., xn 3. min = x₁ 4. For i = 2 to n do 4.1. If x;

icon
Related questions
Question
QUESTION 6
What is the dominant operation in this algorithm?
1. Input the number of values n
2. Input the list of numbers x₁, x2, ..., xn
3. min = x₁
4. For i = 2 to n do
4.1. If x; <min then
4.1.1. minx₁
5. Output min
Oa. Output answer.
b. Assignment in step 4.1.1.
c. Assignment in step 3.
Od. Comparison in step 4.1.
Transcribed Image Text:QUESTION 6 What is the dominant operation in this algorithm? 1. Input the number of values n 2. Input the list of numbers x₁, x2, ..., xn 3. min = x₁ 4. For i = 2 to n do 4.1. If x; <min then 4.1.1. minx₁ 5. Output min Oa. Output answer. b. Assignment in step 4.1.1. c. Assignment in step 3. Od. Comparison in step 4.1.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer