1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
katovenus [111]
2 years ago
6

Describe an algorithm for finding the smallest integer in a finite sequence of natural numbers.

Mathematics
2 answers:
Crazy boy [7]2 years ago
5 0

Answer:

min = a_1

for i:= 2 to n:

      if a_i < min then min = a_i

return min

Step-by-step explanation:

We call the algorithm "minimum" and a list of natural numbers a_1, a_2, \cdot\cdot\cdot, a_n.

So lets first set the minimum to a_1

min = a_1

now we want to check all the other numbers.

We can use a simple for loop, to find the minimum

min = a_1

for i:= 2 to n:

      if a_i < min then min = a_i

return min

Aliun [14]2 years ago
3 0

Answer:

The sequence of natural numbers is a_1, a_2, a_3, ..., a_n.

Use min as the variable that will contain the minimum value.

Set min = a_1

In a loop, compare min to each number from a_2 to an.

If min > a_i, then let min = a_i

min = a_1

for i = 2 to n

  if min > a_i, then min = a_i

You might be interested in
Landon can climb a certain hill at a rate that is
soldi70 [24.7K]
This doesnt make sence.
8 0
3 years ago
Use the tables below to find (p - 9)(2).
Vesnalui [34]

Answer:

5

Step-by-step explanation:

p(2) - q(2)

3 - (-2)

3 + 2

= 5

8 0
3 years ago
First to answer correct gets brainiest!!
DENIUS [597]

Answer:

59?

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
How do you find 25 to the power of 1/2?
hodyreva [135]
Raising a number to the 1/2 power means taking its square root.
3 0
4 years ago
Read 2 more answers
Solve <img src="https://tex.z-dn.net/?f=-2x%5E2%20%2B3x%20-%209%20%3D%200" id="TexFormula1" title="-2x^2 +3x - 9 = 0" alt="-2x^2
MArishka [77]

Answer:

x= \frac{3-3\sqrt{7}i }{4} and x= \frac{3+3\sqrt{7}i }{4}

Step-by-step explanation:

We have to solve the given equation - 2x² + 3x - 9 = 0

To solve the equation given above we have to factorize the left-hand side of the equation.

But it can not be factorized. So, use the Sridhar Achaya formula.

Therefore, x= \frac{-3 + \sqrt{3^{2}-4 \times (-2) \times (-9) } }{2\times (-2)} and x= \frac{-3 -\sqrt{3^{2}-4 \times (-2) \times (-9) } }{2\times (-2)}

So,  x= \frac{3-3\sqrt{7}i }{4} and x= \frac{3+3\sqrt{7}i }{4} {Where i=\sqrt{-1}}

Therefore, the solutions are imaginary numbers. (Answer)

Note: The Sridhar Acharya Formula gives if ax² + bx + c = 0, then the roots of the equation are x = \frac{-b + \sqrt{b^{2}-4ac } }{2a} and x = \frac{-b - \sqrt{b^{2}-4ac } }{2a}.  

3 0
4 years ago
Other questions:
  • PLS HURRY GOT 10 MINUTES! JUST NEED THESE TWO QUESTIONS AND I DON'T KNOW THEM! WILL GIVE BRAINLIEST!!
    9·2 answers
  • How many bags of grapes had a weight of 3/8 pounds or less?
    7·1 answer
  • You and a friend of getting ready to study for an assessment on expressions and
    8·1 answer
  • Approximate the stationary matrix S for the transition matrix P by computing powers of the transition matrix P.
    5·1 answer
  • Does anyone know the answers to Lesson 7: Circles Unit test from Texas Connections?
    14·1 answer
  • The population of a city today is 257,600 people. This is 115% of the population 5 years ago . How many people lived in the city
    10·1 answer
  • Suppose that public opinion in a large city is 62% in favor of increasing taxes to support the after-school programs and 38% aga
    6·1 answer
  • Find the value of c that makes the expression a perfect-square<br>trinomial.<br>• 6) x2 + 26x + c​
    7·1 answer
  • Below is a drawing of a wall that is to be covered with either wallpaper or paint. The wall is 8 ft. high and
    11·2 answers
  • Convert degree into Radian that is 18 degree 12'​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!