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
kumpel [21]
3 years ago
12

give a recursive algorithm for finding the maximum of a finite set of integers, making use of the fact that the maximum of n int

egers is the larger of the last integer in the list and the maximum of the first n-1 integers in the list
Mathematics
1 answer:
Karolina [17]3 years ago
7 0

Answer:

Recursive algorithms call itself with simpler or smaller input values. They can be used to solve large problems by using the solutions to minor parts of the problem, these minor problems are then further broken down to solvable cases.

Given the input as a sequence;

max(z_{1}, z_{2}, ... z_{k}: integers)

if k=1 return z_{1}

else

          c=max(z_{1}, z_{2},...z_{k-1})

          if c > z_{1} return c

          else return z_{1}

You might be interested in
PLEASE ANSWER QUICKLY
GaryK [48]
We have that
<span>1/4 x + 2/3 y = 5 ----> multiply by 12 both sides---> 3x+8y=60
1/2 x + 3/2 y = 11---> multiply by 2 both sides----> x+3y=22

therefore

the answer is the option
</span><span>B. 3x + 8y = 60 ; x + 3y = 22</span>
8 0
3 years ago
Read 2 more answers
Divid 15 into two parts such that the sum of their reciprocal is 3/10
emmasim [6.3K]
Let x and y be the 2 parts of 15 ==> x + y=15 (given)

Reciprocal of x and y ==> 1/x +1/y ==> 1/x + 1/y = 3/10 (given)


Let's solve  1/x + 1/y = 3/10 . Common denominator = 10.x.y (reduce to same denominator)

 ==> (10y+10x)/10xy = 3xy/10xy ==> 10x+10y =3xy

But x+y = 15 , then 10x+10y =150 ==> 150=3xy and xy = 50

Now we have the sum S of the 2 parts that is S = 15 and 
their Product = xy =50
Let's use the quadratic equation for S and P==> X² -SX +P =0
Or X² - 15X + 50=0, Solve for X & you will find:
The 1st part of 15 is 10 & the 2nd part is 5
4 0
3 years ago
Round 17.4 to the nearest tenth.
djyliett [7]
17.4, since there are no other decimal number values.
5 0
3 years ago
Read 2 more answers
HELP!!! GEOMETRY! What is ∠ P T R?
kaheart [24]

Answer:

Angle PTR and angle PTS are supplementary angles. Lines PQ and RS intersect at an angle less than a right angle. Angle PTR and angle PTS are complementary angles.

Step-by-step explanation:

5 0
3 years ago
Which decimal is equivalent to 56?
Akimi4 [234]

Answer:

0.56

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • Historically, the proportion of people who trade in their old car to a car dealer when purchasing a new car is 48%. Over the pre
    7·1 answer
  • Simplify −4√−48<br> Help , please ?
    15·1 answer
  • Consider what you know about the relative locations of the vertex and x-intercepts of the graph of a quadratic function. Describ
    11·1 answer
  • The sum of a number and 7 is 9
    10·1 answer
  • Need help finding PT
    9·1 answer
  • Is this the correct answer? if not, what is it?
    11·1 answer
  • If 3/4 of a stick of butter will make 10dozen cookies, how many sticks of butter will be needed for 3 dozen cookies
    14·1 answer
  • How do you write 0.16 repeating as a fraction
    9·2 answers
  • 1½–¾ what is the answer to this fraction ​
    7·2 answers
  • I really need help with this​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!