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]
3 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]3 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
Which is NOT true? 5 + 14 = 20 - 1 9 + 5 = 7 + 7 15 = 4 + 11 15 - 9 = 9 - 4
prisoha [69]

Answer:

5+14=20 is not true

Step-by-step explanation:

5+14=19 not 20

6 0
3 years ago
image Find the area of the kite with diagonals a = 12 and b = 9. Question 5 options: A) 108 B) 72 C) 54 D) 30
FromTheMoon [43]

Answer:

108

Step-by-step explanation:

Because the area formula is a*b and 12*9 is 180

So the answer is 180 which is A

I hope this helps :)

3 0
3 years ago
Use the following data set to answer numbers 1 - 4.
Jet001 [13]

Answer:

15, 8, 13, 13

Step-by-step explanation:

(1) mean =  Σx / n = 135 / 9 = 15

(2) range = highest value - lowest value = 21 - 13 = 8

(3) mode = 13 (most repeated value in data set)

(4) for 9 values in a data set, we have that (9 + 1) / 2 = 5th number

median = 13

8 0
3 years ago
3. Use Structure Ana drew a plan for a
shtirl [24]

Answer:

(5.5, -3.5)

Step-by-step explanation:

As you can see in the figure, the fourth vertex is (5.5, -3.5)

If you observe carefully the vertex given, you will see that there are two vertex with same coordinates in x axis:

  • (-1.2, -3.5),
  • (-1.2, 4.4),

And one vertex has other coordinate in x axis, it is: (5.5, 4.4)

To form a rectangle, you need a fourth vertex that will have same coordinate in x than (5.5, 4.4) and same coordinate in y axis as (-1.2, -3.5),

Then the fourth vertex coordinate is (5.5, -3.5)

7 0
3 years ago
Find the value of X. Round to the nearest 10th. Diagram is not on the scale.
Effectus [21]

Answer:

Round to the nearest tenth. The diagram is not drawn to scale. Solution: We know that. cosθ = adjacent/hypotenuse. Substituting the values. cos22 = x/11.

Step-by-step explanation

hope this helps

8 0
3 years ago
Other questions:
  • Zachary created a garden that measured7 x 6.5 feet. How many 8-foot rolls of fencing will he need to completely surround the gar
    6·1 answer
  • An anthropology graduate student measures the floor of a round hut and calculates that it has an area of 28.26 square yards. Wha
    7·1 answer
  • Type of probability found by spinning a spinner 20 times and the spinner lands on red
    10·1 answer
  • What is 250/6 Exact Answer Only As A fraction
    7·1 answer
  • Is the world flat, or not?
    11·2 answers
  • Help plssssssssssssssssssssss
    14·1 answer
  • P2 + 4p = 1<br> Solve by completing square, please help.
    8·1 answer
  • To draw the net of a cylinder, you would use one rectangle and one circle. True False
    7·2 answers
  • The Academic Quiz advisor needs to choose the top member to compete in a final challenge.
    11·1 answer
  • Castel's school is selling tickets to the annual dance competition. On the first day of ticket sales
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!