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
Question 1
Arisa [49]

Answer:

Collage = Bad lol

Step-by-step explanation:

7 0
3 years ago
Simplify the radical expression. √45 + √20 - √5
viva [34]
√45 = √9√5 = 3√5
√20 = √4√5 = 2√5

3√5+2√5-√5=4√5

answer = 4√5
:)
5 0
3 years ago
Stanley has a collection of seashells. He found 35% of his collection on Florida beaches. If Stanley has 49 seashells from Flori
m_a_m_a [10]

Answer:

The number of seashells he have in his collection all together is <u>140</u>.

Step-by-step explanation:

Given:

Stanley has a collection of seashells. He found 35% of his collection on Florida beaches.

Stanley has 49 seashells from Florida.

Now, to find the number of seashells of his collection altogether.

Let the number of seashells all together be x.

Percentage of seashells found on Florida beaches = 35%.

Number of seashells found on Florida beaches = 49.

Now, to get the number of seashells altogether we put an equation:

35\%\ of\ x=49.

⇒ \frac{35}{100} \times x=49

⇒ 0.35\times x=49

⇒ 0.35x=49

Dividing both sides by 0.35 we get:

⇒ x=140.

Therefore, the number of seashells he have in his collection all together is 140.

4 0
3 years ago
Find the area of the following parallelograms
Kay [80]

Answer:

Area of parallelogram: 1/2×h×sum of base lengths

Property of parallelogram: 2 parallel sides

Area = 1/2×4×(9+9)

        = 36 cm^2

3 0
3 years ago
Read 2 more answers
Which pair of variables would most likely have a negative association?
Svetlanka [38]

Answer:

C the temperature and the number of votes a candidate for the school president receives.

8 0
3 years ago
Other questions:
  • Please help ASAP thanks!!
    15·1 answer
  • 4. In ABC, AB = 8,BC = 10, and AC = 7
    8·1 answer
  • Is it necessary to rename 4 1/4 if you subtract 3/4 from it
    10·1 answer
  • Jack and Jill both begin working new jobs for the summer. Jack is offered $18 per hour and will also be given $699 up front for
    11·1 answer
  • If y = f(x) = A(0.5)* + B is increasing on the interval (-0, o), which statement must be true?
    12·2 answers
  • What fraction and whole number does the model represent
    13·1 answer
  • PLEASE HELP ILL BRAINLIEST YOU
    8·1 answer
  • 15 more than x as an equation
    8·2 answers
  • Use substitution to solve the system of equations. How many solutions are there?
    6·2 answers
  • Write the following as a mathematical expression with one variable.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!