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
Softa [21]
2 years ago
11

Give a recursive algorithm which takes as input a sequence of numbers and returns the minimum (i.e., smallest) number in the seq

uence. Your algorithm should not use a loop.
Mathematics
1 answer:
kodGreya [7K]2 years ago
5 0

Answer:

Step-by-step explanation:

So let a[i] be the input array to the function find_minimum(): . We will use python to present this recursive algorithm

def find_minimum(a, n):

    if n == 1:

         return a[0]

    return min(a[n], find_minimum(a, n - 1))

find_minimum(a, len(a) - 1)

You might be interested in
Translate the sentence into an equation.<br> The sum of 8 times a number and 3 is 6
maxonik [38]
8 times 3 equals 6 times 4
5 0
3 years ago
Read 2 more answers
What????????<br> i dant undersatnd this 70 # of what number is 35
Trava [24]
The correct answer is 50
4 0
3 years ago
what is the volume of the square pyramid with the square base that is 7 centimeters by 7 centimeters and the height is 8 centime
vagabundo [1.1K]

Answer:c

Step-by-step explanation:

i did the test

4 0
3 years ago
Read 2 more answers
2t + 8 is greater than or equal to -4 ( t + 1 ), whats the answer to the equation?
Natali [406]

Step-by-step explanation:

2t + 8 <u>></u> - 4( t + 1)

2t + 8 <u>></u> - 4t - 4

2t + 4t <u><</u> - 4 +8

6t <u><</u> 4

Divide both sides by 6

T <u><</u> <u>4</u><u> </u>

6

t <u><</u> <u>2</u><u> </u>

3

I think that is the answer

Hope it helps :)

Please be careful about the sign

7 0
3 years ago
Easy Grade 7 Math
expeople1 [14]

Answer:

Step-by-step explanation:

Angles x and z are supplementary, meaning that they add up to 180.  From the markings on the diagram, angle z and the angle measuring 20 are complementary, meaning they add up to 90. So the game plan is to find out the measure of angle z first, then use that to find the measure of angle x.

angle z = 90 - 20 so

angle z = 70 degrees. And

angle z + angle x = 180.  Subbing in our value for z:

70 + angle x = 180 and

angle x = 180 - 70 so

angle x = 110 degrees

3 0
3 years ago
Other questions:
  • Is the center of dilation colinear with the hypotenuses of the right triangles shown?
    14·1 answer
  • Solve each equation and check your solution:
    11·1 answer
  • The science club is raising money for a trip to the museum. Tickets to the museum cost $8. Five students already have a membersh
    11·1 answer
  • Which of the following graphs best represents f(x) = 3 sin 4x + 2?
    10·1 answer
  • 111=13, 113=35, 115=57, 117=?
    6·1 answer
  • HELPPPPPPPLLL
    6·1 answer
  • Increase £101 by 16%<br> Give your answer rounded to 2 DP.
    9·1 answer
  • True False
    14·1 answer
  • Four fifths of the 35 kittens finish their milk how many did not finish their
    5·2 answers
  • Please help me out i will mark brainliest!
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!