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
In a direct or linear relationship, as one variable increases, what happens to the other variable?
nadezda [96]

Answer:

In general direct variation suggests that two variables change in the same direction. as one variable increases the other also increases and as one decreases the other also decreases.

Step-by-step explanation:

i hope this helps.

8 0
2 years ago
If the point (x, y) is in Quadrant III,<br> which of the following must be true?
strojnjashka [21]
X must be greater than 0 and y must be less than 0.
I hope this helped.
3 0
2 years ago
Please help with question ​
AysviL [449]

Answer: i don't I'm sorry

Step-by-step explanation:

4 0
2 years ago
Gabrielle and John each
vivado [14]

Answer:

64=2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2=2^6

Step-by-step explanation:

Gabrielle and John each

wrote the prime factorization of 64.

64 can be break into 32 times 2

32 can be break into 16 times 2

16 can be break into 8 and 2

8 can be break into 4 times 2

4 can be break into 2 times 2

So 64 is equal to 2 times 2 times 2 times 2 times 2 times 2

64=2^6

7 0
3 years ago
Helpppppppp meeeeeeeeeeeeee
cricket20 [7]

Answer:

The answer is c

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which point on the number line represents 18?<br> A) E. <br> B) F <br> C) G <br> D) H
    6·2 answers
  • An inspector inspects large truckloads of potatoes to determine the proportion p in the shipment with major defects prior to usi
    14·1 answer
  • A bottle contains red beads and white beads.
    7·1 answer
  • The melting point of sodium is 97.8°C The melting point of potassium is 63.65°C how much higher is the melting point of sodium
    9·1 answer
  • A square is inscribed in an isosceles right triangle. Length of the leg equals to 2 in. as shown on the figure. Find the perimet
    15·1 answer
  • Step by step to this please
    10·2 answers
  • Al Shelf knows his goods are marked up 36 percent on cost. If a TV cost Al $280, what would the selling price be?
    12·1 answer
  • What is a 38% discount of $279.00​
    8·2 answers
  • Please help! Will give brainliest and 10 points!
    13·1 answer
  • Explain why are whole numbers are rational numbers ​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!