1. Describe what is returned when the following is applied to a list of integers a₁,...,a,, for n ≥3. a) b) Procedure un
Posted: Wed Jul 06, 2022 11:46 am
1. Describe what is returned when the following is applied to a list of integers a₁,...,a,, for n ≥3. a) b) Procedure unknown((a,₁,...,a) (integers)) max_d = |a₁-a₂ | For (i = 2 to i=n-1) If ( a - a> max_d) return max_d. max_d = |a₁-a₁+₁| Procedure unknown((a₁,...,a,) (integers)) For (i = 1 to i = n) If (a, +2 has remainder 0) Remove a, from list Place a, in newlist Return newlist