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
Leokris [45]
4 years ago
14

Describe how the pair-wise summation computation provided below can be changed to find the maximum element of an array. Array ha

s the following elements (x[0], x[1], x[2], x[3], x[4], x[5], x[6])
t[0] = x[0] + x [1];
t[1] = x[2] + x[3];
t[2] = x[4] + x[5];
t[3] = x[6] + x[7];
t[4] = t[0] + t[1];
t[5] = t[2] + t[3];
sum = t[4] + t[5];
Engineering
1 answer:
Margaret [11]4 years ago
7 0

Answer:

To change the pair-wise summation computation provided  to find a maximum element of an array we; Take two elements to check max element from that and add to the T ARRAY, the same process is then repeated for the next two elements, again we repeat the same process for the next two elements from T array until we get the max element  process going on pair-wise computation

Explanation:

Code written using pair-wise computation to describe how to change the given pair-wise summation computation provided to find the maximum element of an array

The given array element ; (x[0], x[1], x[2], x[3], x[4], x[5], x[6])

IF X[0] > X[1]

T[0]=X[0];

ELSE

T[0]=X[1]

IF X[2] > X[3]

T[1]=X[2];

ELSE

T[1]=X[3];

IF X[4] > X[5]

T[2]=X[4];

ELSE

T[2]=X[5];

T[3]=X[6];

IF T[0] > T[1]

T[4]=T[0];

ELSE

T[4]=T[1]

IF T[2] >T[3]

T[5]=T[2];

ELSE

T[5]=T[3];

IF T[4] > T[5]

MAX=T[4];

ELSE

MAX=T[5]

You might be interested in
ANIMAL SCIENCE NEED ASAP
miv72 [106K]

Answer:

i think its the last option

Explanation:

sorry its too late tho

8 0
3 years ago
Read 2 more answers
What is one of the “don’ts” in drawing dimension lines? they should never be labeled they should never be stacked they should ne
Strike441 [17]

Answer:

What is one of the “don’ts” in drawing dimension lines? they should never be labeled they should never be stacked they should never cross each other they should never have only one measurement value

5 0
4 years ago
Read 2 more answers
Q1: The first option should always be to get out safely (RUN)
nekit [7.7K]

Answer:

Q1 true

Q2 true

And other I am confuse

6 0
3 years ago
The term supervised learning refers to the fact that we give the learning algorithm a data set, in which the "right answers" wer
kenny6666 [7]

Answer: output value

Explanation: Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs.

Supervised learning infers a function from labeled training data consisting of a set of training examples.

In supervised learning, each example consists of a pair of an input object (a vector) and a desired output value (the supervisory signal). A supervised learning algorithm analyzes the training data and produces an inferred function, which can be used for mapping new examples. An optimal scenario will allow for the algorithm to correctly determine the class labels for unseen instances. This requires the learning algorithm to generalize from the training data to unseen situations in a "reasonable" way

A wide range of supervised learning algorithms are available, each having its own strengths and weaknesses.

You should now that, there is no single learning algorithm that works better than the other on all supervised learning problems

5 0
3 years ago
In some companies, workers who increase the quantity or quality of their work receive a. benefits. c. performance bonuses. b. pe
Greeley [361]

Answer:

performance bonuses

Explanation:

3 0
3 years ago
Other questions:
  • Which of the following is an early practice of sustainable farming?
    13·1 answer
  • A scale model is 4th the size of the pump. Determine the power ratio of the pump and its scale model if the ratio of the heads i
    9·1 answer
  • Which of the following is a advantage of a chain and sprocket over a pulley and belt system?
    7·1 answer
  • Consider a silicon p-n step junction (or abrupt junction) at room temperature. If the doping concentrations are Na = 10^17 cm^-3
    7·1 answer
  • What is a business cycle?
    12·1 answer
  • a stem and leaf display describes two-digit integers between 20 and 80. for one one of the classes displayed, the row appears as
    6·1 answer
  • م
    12·1 answer
  • Which of the following statements are true.
    14·1 answer
  • Simplify the expression below:<br><br> 313 + 12 =
    13·2 answers
  • Heater control valves can not leak coolant<br><br> True <br> False
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!