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 statement is true?
irinina [24]

Answer:

-8 > -9

Step-by-step explanation:

Every other question says greaten then, on the other side or other way around.
The higher the number in negatives, the less it actually is.

3 0
2 years ago
Read 2 more answers
I need help please!1
Nutka1998 [239]

Answer:

for the first picture, she cleans 30 windows

the second picture is 52/100 :)

7 0
3 years ago
Read 2 more answers
Sociologists say that 85% of married women claim that their husband's mother is the biggest bone of contention in their marriage
hoa [83]

Answer:

(A) 0.377,

(B) 0.000,

(C) 0.953,

(D) 0.047

Step-by-step explanation:

We assume that having a bone of intention means not liking one's Mother-in-Law

(A) P(all six dislike their Mother-in-Law) = (85%)^6 = (.85)^6 = 0.377

(B) P(none of the six dislike their Mother-in-Law) =

(100% - 85%)^6 =

0.15^6 =

0.000

(C) P(at least 4 dislike their Mother-in-Law) =

P(exactly 4 dislike their Mother-in-Law) + P(exactly 5 dislike their Mother-in-Law) + P(exactly 6 dislike their Mother-in-Law) =

C(6,4) * (.85)^4 * (1-.85)^2 + C(6,5) * (.85)^5 * (.15)^1 + C(6,6) * (.85)^6 = (15) * (.85)^4 * (.15)^2 + (6) * (.85)^5 * .15 + (1) * (.85)^6 =

0.953

(D) P(no more than 3 dislike their Mother-in-Law) =

P(exactly 0 dislikes their Mother-in-Law) + P(exactly 1 dislikes her Mother) + P(exactly 2 dislike their Mother-in-Law) + P(exactly 3 dislike their Mother-in-Law) =

C(6,0) * (.85)^0 * (.15)^6 + C(6,1) * (.85)^1 * (.15)^5 + C(6,2) * (.85)^2 * (.15)^4 + C(6,3) * (.85)^3 * (.15)^3 =

(1)(1)(.15)^6 + (6)(.85)(.15)^5 + (15)(.85)^2 *(.15)^4 + (20)(.85)^3 * (.15)^3 =

0.047

3 0
3 years ago
Benito spent $1616 to operate his car last year. Some of these expenses are listed below. Benito's only other expense was for ga
Verizon [17]
Subtract all the operating expenses from the amount he spent total and get what's left over is $491.  That's what he spent on gas.  Divide the number of miles he drove by the amount he spent on the gas to find out what the average cost of the gas was per mile.  491/7270 = .06753.  But that is expressed in dollars and we need it in cents.  Multiply that decimal by 100 to get 6.75 cents, choice A from above.
5 0
3 years ago
HELP PLEASE! DELTA MATH! THANKS!
Eduardwww [97]

Answer:

11.5%

Step-by-step explanation:

hope this helps :))

5 0
3 years ago
Read 2 more answers
Other questions:
  • Zelma buys p pounds of bananas for $0.40 per pound she pays the clerk with a $20 bill the clerk subtract the total cost of the b
    14·1 answer
  • 7th grade stuff please help part b please
    15·2 answers
  • The volume of the cone is 50π ft³. The height is 6 ft. What is the radius of the​ cone?
    13·1 answer
  • Solving systems of three equations
    13·1 answer
  • Jackie earns $172 per week at her part time job. She is saving this money to buy a used car that cost $2000. At this rate, how m
    10·1 answer
  • How many toothpicks are needed to build the tree on day 100?​
    8·2 answers
  • A fitness club has two options, one for members and one for nonmembers. Members pay a one-time registration fee of $12 plus $8 p
    15·1 answer
  • Determine the intercepts of the line.<br> y - 4= 72 – 6)<br> z-intercept:<br> y-intercept:
    11·1 answer
  • What’s the area of the shaded region???
    9·1 answer
  • Please anyone help me ​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!