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
a person's rectangular dog pen for his dog must have an area of 300 square feet also the length must be 40 feet longer than the
Tema [17]
The with should be 7.5 feet
4 0
3 years ago
Write an<br> algebraic expression for the word expression.<br><br> the quotient of c and 8
Maru [420]

Answer:

c/8 =__

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
What type of graph do I make if I'm graphing with kilograms?
erma4kov [3.2K]
Any graph will work. But, usually line or bar graphs are used to measure.
8 0
4 years ago
Rewrite the following without an exponent
Leokris [45]
125/27 , or 4 & 25/27 , or 4.62963
7 0
3 years ago
Help me plz
ololo11 [35]

Answer:

\left\{\begin{array}{l}y\le 4x\\y\ge 50\\25x+15y\ge 1975\end{array}\right.

Step-by-step explanation:

Let  x represent the number of lawns mowed and y represent the number of cars washed.

1. Since the number of cars that Beth wash is no more than four times the number of lawns Mike has scheduled to mow, you have that y\le 4x..

2. Beth will wash at least 50 cars, then y\ge 50.

3. Mike charges $25 each time he mows a yard, then he earns $25x for mowing x yards. Beth charges $15 for each car she washes, then she earns $15y for y cars washed. They need at least $1975, so

25x+15y\ge 1975.

4. A set of constraints to model the problem is

\left\{\begin{array}{l}y\le 4x\\y\ge 50\\25x+15y\ge 1975\end{array}\right.

4 0
3 years ago
Other questions:
  • How many solutions does this system of equations have?
    13·2 answers
  • Plz help me with this question. it is urgent plz plz and mention the steps also plz plz plz plz
    15·1 answer
  • A movie premiere Was held in seven major cities all on the same night. The data shown represents The number of people who attend
    12·1 answer
  • A mirror that is 9 1/3 feet long is to be centered on a wall that is 12 feet long. How much space is there from the edge of the
    9·1 answer
  • Is the contrapositive of this statement true or false? If two angles are vertical angles, then they are congruent
    10·1 answer
  • Which decimal is equivalent to<br> NI<br> OA) 0.416<br> B) 0.416<br> C) 0.416<br> OD) 0.416
    8·1 answer
  • Which expression is equivalent to 9(y+5)
    6·2 answers
  • Find vertex and axis of symmetry <br> -3(x-4)^2+1
    7·1 answer
  • HELP PLEASE!!! I NEED A ANSWER ASAP
    14·2 answers
  • What is the linear equation for (6,3) with a slope of 0
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!