subject
Mathematics, 26.07.2021 18:20 cfigueroablan

Given the algorithm. procedure f(a1,a2,…,an: integers, n: integer > 2, x: integer)

i := 1

while (i < n and ai + an-i ≠ x)

i := i + 1

if (i < n) then output := i

else output := 0

Let n = 100. Count the number of additions in the worst case.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 17:00
Which expression is equivalent to 8(k + m) − 15(2k + 5m)?
Answers: 1
question
Mathematics, 21.06.2019 19:00
What is the best way to answer questions with a x expression in the question. for example 3x + 10x=?
Answers: 1
question
Mathematics, 21.06.2019 20:00
One hectometer is a) 1/1000 of a meter. b) 1/100 of a meter. c) 10 meters. d) 100 meters. e) 1000 meters.
Answers: 1
question
Mathematics, 21.06.2019 22:30
Need same math paper but the back now i hope your able to read it cleary i need with hw
Answers: 1
You know the right answer?
Given the algorithm. procedure f(a1,a2,…,an: integers, n: integer > 2, x: integer)

i...
Questions
question
Mathematics, 26.03.2020 04:58
question
Spanish, 26.03.2020 04:58