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
Which number is irrational?<br><br><br> 6√<br><br> 1/3<br><br> 0.14............<br><br> 4√
deff fn [24]
Umm, I think it is the first one.
3 0
3 years ago
Read 2 more answers
HELP I NEVER LEARND WITH BLOcKS IN ALGEBRA
NISA [10]

Answer:

I need to see the rest of the choices to be able to make a valid decision.

Step-by-step explanation:

I will update this as soon you edit the question

6 0
2 years ago
Read 2 more answers
2/3 divided by 11/15
NNADVOKAT [17]
You need to implement the process of "flip-flop" and multiply which is where you flip the second fraction and multiply.

\frac{2}{3}÷\frac{11}{15}⇒\frac{2}{3}×\frac{15}{11}

Now you multiply across. 2×15=30 and 3×11=33

So now it is \frac{30}{33}

-----------------------------------------------------------
To reduce to the lowest terms, find the GCF common factor

The GCF is 3

Divide both the numerator and denominator by 3

\frac{30}{33}÷\frac{3}{3}=\frac{10}{11}

Answer: \frac{10}{11}

7 0
3 years ago
Solve the reciprocal<br><img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B1%7D%7Bx%7D%20" id="TexFormula1" title=" \frac{1}{x} " al
swat32

Answer:

the reciprocal is just x because x over 1 is just x

Step-by-step explanation:

Hope this helps! :)

7 0
2 years ago
What is R+G=20<br> 7R+3G=9
Troyanec [42]

Step-by-step explanation:

hope I understand your qyestion

Equation 1 : R+G=20

Equation 2 : 7R+3G=9

Multiply Equation by 3, it becomes

3R+3G=60 ...... Equation 3

Now Equation 3 minus Equation 2

-4R = 51

R = - 51/4

Sub R into Equation 1, you can find G

4 0
3 years ago
Other questions:
  • Solve the graph!!<br><br> PLEASE FINISH QUICKLY!! I ONLY HAVE 20 MINUTES!!!
    7·2 answers
  • The selling price of a​ refrigerator, is ​$ 468.60. If the markup is 10 % 10% of the​ dealer's cost, what is the​ dealer's cost
    12·1 answer
  • 4x+7y=8.77 8x+14y=15.80
    6·1 answer
  • Tessa bought stock in a reastraunt for $192.00.Her stock is now $282.24.What is her percent increase?
    15·2 answers
  • N
    14·1 answer
  • Determine whether the data described are qualitative or quantitative. The maximum speed limit on interstate highways.
    13·1 answer
  • A wheel has a diameter of 16 inches. How far will the wheel travel after 5 rotations? Use 3.14 to approximate pi. Round your ans
    7·2 answers
  • Please help me! Im confused
    5·1 answer
  • Suppose you spin a spinner that is equally likely to land on any one of the numbers from 1 to 8. What are the odds in favor of l
    14·1 answer
  • This is quadratic equations <br> Help asap!!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!