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
The volume of a box(V) varies directly with its length(l). Using k for the constant of proportionality, express the relationship
pochemuha

Answer: V = L (k)

Step-by-step explanation:

Hi, to answer this question we have to write an equation with the information given:

  • <em>Volume of a box = V </em>
  • <em>Length = l </em>
  • <em>Constant of proportionality = k</em>

We know that the volume of the box (V) varies directly with its length (l).

So, the expression for the volume is:

V = L (k)

Feel free to ask for more if needed or if you did not understand something

8 0
3 years ago
How<br> many<br> squares<br> are in this<br> figure?
Sophie [7]

Answer:

<h2>14</h2>

Step-by-step explanation:

Look at the picture.

7 0
3 years ago
Solve for θ. <br>sin(74) = cos(θ) <br><br>1. 6° <br>2. 74° <br>3. 36° <br>4. 16° ​
Marianna [84]

Sin74 = Cos16

cause 16 + 74 = 90

Whenever the sum of two angles is equal with 90, the Sin of one is equal with the Cos of the other like :

Sin(30) = Cos(60)

and also

Tan(30) = Cot(60)

5 0
3 years ago
Read 2 more answers
Hey guys i really need help pls dont waste the points i actually want help to understand how to solve equations like:
tamaranim1 [39]

Answer:

your question is unclear

Step-by-step explanation:

x+2y=4

-x -x

2y=4-x

divide by 2 to get y by it's self

y=2-(1/2x)

x+2y=4

-2y -2y

x=4-2y

i don't know if u want me to help u with the second one but i did it the first one

3 0
3 years ago
.711 rounded to the nearest tenth
Natalka [10]

Answer: 710

Hope this helps

<h2>Please mark me as brainliest</h2>

8 0
3 years ago
Read 2 more answers
Other questions:
  • 50 POINTS Please Help!! I'll mark you as Brainliest if correct!!<br> Question is attached.
    13·1 answer
  • a bookcase has two shelves the top shelf has 10 more than one-third the number of books on the bottom shelf there are 12 books o
    7·2 answers
  • Simplify this expression using the distributive property.
    15·1 answer
  • Find the mean, median, and mode of the data. 67, 59, 34, 71, 59
    7·2 answers
  • Can you construct a triangle that has side lengths 8 m 10 m and 19 m
    7·1 answer
  • Explain how combining like radicals is similar to combining like terms.
    10·1 answer
  • Heyy please answer pleaseeeeee help me
    12·1 answer
  • Please guys help me please
    9·2 answers
  • Due in 2 hours PLLLEAAASEE giving brainiest to whoever answers right first!!!!!!!!
    14·1 answer
  • Make N the subject of formula<br><img src="https://tex.z-dn.net/?f=P%20%3D%20N%20%2B%20%5Cfrac%7B2%7D%7BD%7D%20" id="TexFormula1
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!