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
What is four and five eighths as a improper fraction and a mixed number
Afina-wow [57]
4 5/8 as an improper fraction is 37/8
——> 8*4=32 32+5=37
As a mixed number it is the same I think. 5 can’t decide into 8 so it stays 4 5/8.

Hopefully this helps...
5 0
3 years ago
If each month in reno had the same average rainfall as in august, what would the total number of millimeters be after 12 months
Inessa [10]

Answer:

  12 times the August rainfall

Step-by-step explanation:

The total of 12 of the same value is 12 times that value. Multiply the August average by 12 to get your answer.

3 0
3 years ago
What is the volume, in cubic meters, if the prism below?
Fiesta28 [93]
<h3>Answer:   1848 cubic meters</h3>

=================================================================

Explanation:

Imagine rotating the figure so that the triangular face is flat on the ground. This makes the triangular faces to be the floor and ceiling of this room.

The floor is a triangle with base 24 meters and height 7 meters. The floor area is base*height/2 = 24*7/2 = 84 square meters.

Multiply this floor area with the height of the room (22 m) to get the volume of the room.

volume = (floor area)*(height) = 84*22 = 1848 cubic meters

6 0
1 year ago
Please help with both questions, thank you!
algol [13]

11) 3 (2x + 7) - 4 = 53 - 3x is the given

Then, we use distributive property and get:

6x + 21 - 4 = 53 - 3x

Next, we combine like terms

6x + 17 = 53 - 3x

Then, we use the addition property of equality to add 3x to both sides.

9x + 17 = 53

We then use the subtraction property of equality to subtract 17 from both sides.

9x = 36

Finally, we use the division property of equality to divide 36 by 9, which isolates x.

x = 4

So, (In order) you have the: Given, Distributive Property, Combine Like Terms, Addition Property of Equality, Subtraction Property of Equality, and Division Property of Equality.

12) Please Note: This is an inequality problem. Which means we do not use the properties of equality. We'd use the properties of order. Properties of order are specific to inequalities, as the properties of equality are specific to the equations. They do not cross. As for your paper, I'm not sure why it says to use the properties of equality. I will be using the properties of order.

-7 (3 + 8x) + 5x ≤ 1 - 62x is the given

-21 - 56x + 5x ≤ 1 - 62x is distributive property

We then combine like terms

-21 - 51x ≤ 1 - 62x

Next, we use subtraction property of order to subtract 1 from each side.

-22 - 51x ≤ -62x

Then, we add 51x to each siding using the addition property of order

-22 ≤ -11

Lastly, we use the division property of order to divide 11 from both sides, which then gives us:

2 ≥ x

It becomes a positive because we're dividing 2 negatives, and we also turn the sign because we're dividing by negatives.

In order: Given, Distributive Property, Combine Like Terms, Subtraction Property of Order, Addition Property of Order, and Division Property of Order.

 

5 0
3 years ago
Help please help !!!!
natali 33 [55]

Answer:

You can try the first one which is the value it can be 5 and the second one can be 4. I can be wrong.

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Limit as x approaches infinity: 2x/(3x²+5)
    11·1 answer
  • Arderi Air Conditioning sells one primary model of air conditioner. Each unit of this model costs them $61.25 to produce, but it
    14·2 answers
  • Which situation has a net result of zero?
    15·1 answer
  • A lawn sprinkler spins in a circle. The sprinkler covers a radius of 4 feet. Which choice is the closest to the area of lawn tha
    6·2 answers
  • How do u simply stuff like this​
    12·1 answer
  • 2/8 is what as a decimal
    13·1 answer
  • 0.01x - 0.3y = 1
    9·1 answer
  • Which set of fractions is ordered from least to greatest?
    5·2 answers
  • What is the value of x if 25 = 5 x + 35 ?
    15·2 answers
  • What numbers have the same value as 5% of 35?​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!