subject
Engineering, 28.01.2020 18:41 kailinaguilar9455

Use the algorithm below to answer the four questions:
algorithm mystery(n)
//input: a nonnegative integer n
s ← 0
for i ← 1 to n do
s ← s + i * i
return s
a.) what does this algorithm compute?
b. ) what is its basic operation?
c.) how many times is the basic operation executed? (solve the summation.)
d.) what is the efficiency of this algorithm?

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 04.07.2019 18:20
Find the kinematic pressure of 160kpa. for air, r-287 j/ kg k. and hair al viscosity of air at a temperature of 50Β°c and an absolute (10 points) (b) find the dynamic viscosity of air at 110 Β°c. sutherland constant for air is 111k
Answers: 3
You know the right answer?
Use the algorithm below to answer the four questions:
algorithm mystery(n)
//input: a...
Questions
question
English, 12.12.2020 16:20
question
English, 12.12.2020 16:20
question
Mathematics, 12.12.2020 16:20
question
English, 12.12.2020 16:20
question
Mathematics, 12.12.2020 16:20
question
Mathematics, 12.12.2020 16:20
question
Mathematics, 12.12.2020 16:20