- 1 Describe What Is Returned When The Following Is Applied To A List Of Integers A A For N 3 A B Procedure Un 1 (65.44 KiB) Viewed 10 times
1. Describe what is returned when the following is applied to a list of integers a₁,...,a,, for n ≥3. a) b) Procedure un
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Describe what is returned when the following is applied to a list of integers a₁,...,a,, for n ≥3. a) b) Procedure un
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