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]
1 year ago
6

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

Mathematics
2 answers:
Crazy boy [7]1 year 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]1 year 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
What is the inverse of y=pi/2+sin x​
Alekssandra [29.7K]

Answer:

f^{-1}(x)=\sin ^{-1}(x-\frac{\pi}{2})

Step-by-step explanation:

The given function is

y=\frac{\pi}{2}+\sin x

To find the inverse of this function, we interchange x and y.

x=\frac{\pi}{2}+\sin y

we now solve for y.

x-\frac{\pi}{2}=\sin y

Take the sine inverse of both sides to obtain;

\sin ^{-1}(x-\frac{\pi}{2})=y

Hence the inverse of the given function is;

f^{-1}(x)=\sin ^{-1}(x-\frac{\pi}{2})

where \frac{\pi}{2}-1\le x\le \frac{\pi}{2}+1

6 0
3 years ago
Read 2 more answers
If the parent function is y = 2x, which is the function of the graph?
natita [175]

Answer is C but if its on grad point your answer is 0.5(2)^x

7 0
3 years ago
By how much is 3 4/5 greater than the product of 3/5 x 1 3/4
dalvyx [7]

Answer: 6.65

Step-by-step explanation:

3 4/5 = 3.8

1 3/4 = 1.75

3.8*1.75= 6.65

Hope it helps <3

7 0
3 years ago
To be able to do the problem 5(10 + 4) mentally, Zack does 50 + 20 instead of 5(14).
Eddi Din [679]

Answer:

1. Distributive

Step-by-step explanation:

This is because you multiply the number outside the parentheses into the numbers inside the parentheses.

Hope it helped.

8 0
2 years ago
Read 2 more answers
I NEED HELP!!! 12 PTS!!!
Agata [3.3K]
The answer is 13 packages.
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which equation of a circle represents the picture?
    10·1 answer
  • How do u write 4,584.01 in scientific notation​
    11·1 answer
  • What’s 8765 times 9876
    13·2 answers
  • What is the inverse of the function f(x) = x +3?
    13·2 answers
  • Help with this please!!
    7·1 answer
  • The volumes of two-spheres are in the ratio of 8:27. The radius of the smaller sphere is 30 inches. Find the radius of the large
    11·1 answer
  • I rly need help this is a diagnostic test and if I fail it I will be in sooo soo much trouble? Plz help
    12·2 answers
  • Identify the solution to the system of equations,answers if u know
    14·1 answer
  • What do factors 16 and 24 have in common? plz help
    8·2 answers
  • PLS HELPPP<br> FIND X <br> I will mark braniliest
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!