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
PLEASE ANSWER PICTURE SHOWN
nexus9112 [7]
The answer is A. The rest of the answers are not necessarily correct with the operations.
3 0
3 years ago
Read 2 more answers
Juan went out to lunch with five friends. They decided to divide the bill evenly among them. Juan estimated that his lunch cost
Lina20 [59]
Juan’s lunch would have costed less if he paid separately. his lunch is 5.25
the bill 37.20
37.20 / 5
$7.44 each kid
7.44 - 5.25 = 2.19
$2.19 less if he paid separately
4 0
3 years ago
Read 2 more answers
Hey please help me with this one.<br><br>- Find the value fd a
valkas [14]

Answer: a = 15

Step-by-step explanation:

6a + 10 = 3a + 55

Subtract 10 from both sides

6a = 3a + 45

Subtract 3a from both sides

3a = 45

Divide each side by 3

a = 15

5 0
3 years ago
Stock in Globin Publishing costs $8.72 per share. Mary buys 105 shares of Globin Publishing, and her broker charges a commission
matrenka [14]
105 × $8.72 = $915.60
$915.60 + $348 = $1,263.60

Mary paid $1,263.60 for the stock.
8 0
3 years ago
The perimeter of the rectangle below is 84 unit . Find the length side of XY
lesya [120]

Answer:

25 unit

Step-by-step explanation:

See attachment for the missing figure.

Assuming the complete question is:

Side UY = 4z-1  

Side UV = 5z+3  

Perimeter of rectangle is given by:

2UY+2UV=P

2(4z-1)+2(5z+3)=84

8z-2+10z+6=84

18z+4=84

18z = 84 -4 =>

18z = 80

z= 4.45 unit

Side UV = 5z+3 => 5(4.45) + 3

Side UV ≈ 25 unit

SInce, Side UV = Side XY

Side XY≈ 25 unit

5 0
3 years ago
Other questions:
  • The perimeter of a regular pentagon is 200 centimeters. how long is each side?
    5·1 answer
  • A student was given an assignment to determine the percentage of students that brought a bag lunch to school. The student chose
    14·2 answers
  • The number of taxi accidents is approximated by y=−143.3x2+1823.3x+6820 and the number of injuries is approximated by y=−416.72x
    7·1 answer
  • What is 45.385 rounded to the nearest hundredth
    6·2 answers
  • Do you know what is 0.11 x 0.91
    15·2 answers
  • PLEASE I HAVE 10 min TO FINISH THIS I NEED HELP
    7·2 answers
  • 3(x-1)+x=4(x+2)<br><br> what does x equal?
    11·1 answer
  • Part 1
    11·1 answer
  • Sin0=20/29 find tan 0
    7·2 answers
  • The cost for a pack of 25 pens is4 .75
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!