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
The SDS for any chemical used at a job site must be available
NISA [10]

Answer:

<em>Hello There The Correct Answer is </em>A. At The Job Site.

Explanation:

Because the SDS must not used any kind of chemical Most chemicals used in the workplace have some hazard potential, and thus will be covered by the rule. ... Chemical manufacturers, importers, and distributors of hazardous chemicals are all required to provide the appropriate labels and material safety data sheets to the employers to whom they ship the chemicals. So That why is Opinion A.

3 0
3 years ago
Read 2 more answers
What does basic levels of competence involves??​
strojnjashka [21]
UnconsciousIncompetence = you don't know that you can't do it well.
ConsciousIncompetence = you know you can't do it well.
ConsciousCompetence = you do it well, and you think about the work as you do it.
UnconsciousCompetence = you're so successful it's "automatic" -- you do it well, without thinking about it.
6 0
3 years ago
Read 2 more answers
In alternating current, how often does the current alternate between negative and positive?
Novay_Z [31]

Answer:

AC voltages alternate/cycle, at a rate of 60 times each second.

7 0
3 years ago
Read 2 more answers
Determine the following for a south facing surface at 30� slope in
lesantik [10]

Answer:

z=60.32°, i=0.32°, Beam Radiation = 1097.2 W/m²,  Id = 94.2 W/m², Ir=14.1W/m², total radiation = 1205.4 W/m², Local time=1:21PM

Explanation:

A. Zenith Angle:

As we know that,

Zenith angle=z=90⁰-α=L(latitude)=29.68⁰

Another way to do it is to find α first,

At solar time hour angle is 0⁰. So, solar altitude becomes equal to latitude which could be written as

sinα=cosL

α=sin⁻¹(cosL)=sin⁻¹(cos29.68⁰)=60.32°

B. Angle of incidence:

angle of incidence= cosi=sin(α+β)=sin(60.32°+32°)=sin92.32°

i=cos⁻¹(sin92.32°)=0.32°

C. Beam Radiation:

First we need to calculate extra terrestrial radiations

Iext.=1353[1+0.034cos(360n/365)]

where n=264

=1345 W/m²

Now,

Beam Radiation=CIext⁻ⁿ

where n=0.1/sin60.32°

Beam Radiation = 1097.2 W/m²

D. Diffude Radiation:

difuse radiation = Id = 0.0921ₙcos²(β/2)

where β=30°

Id = 94.2 W/m²

E. Reflected Radiations:

Ir=pIn(sinα+0.092)sin²(β/2)

= (0.2)(1097.1)(sin60.32+0.092)sin²(30/2)

= 14.1W/m²

F. Total Radiation:

total radiation = beam radiation + diffuse radiation + reflected raddiation

= 1205.4 W/m²

G. Local Time:

LST= ST-ET-(lₓ-l(local))4min/₀

     = 12:00-7.9min-(75°-82.27°)4min/₀

     =12:21PM

Local time

LDT=LST+=12:21+1:00=1:21PM

5 0
3 years ago
What are the four categories of engineering materials used in manufacturing?
alexgriva [62]

Answer:

metals, composite, ceramics and polymers.

Explanation:

The four categories of engineering materials used in manufacturing are metals, composite, ceramics and polymers.

i) Metals: Metals are solids made up of atoms held by matrix of electrons. They are good conductors of heat and electricity, ductile and strong.

ii) Composite: This is a combination of two or more materials. They have high strength to weight ratio, stiff, low conductivity. E.g are wood, concrete.

iii) Ceramics: They are inorganic, non-metallic crystalline compounds with high hardness and strength as well as poor conductors of electricity and heat.

iv) Polymers: They  have low weight and are poor conductors of electricity and heat

8 0
3 years ago
Other questions:
  • deep-sea trench under the ocean is MOST similar to a _____ on land. A. plateau or plain B. valley or canyon C. peak or mountain
    12·1 answer
  • A plane wall with surface temperature of 350°C is attached with straight rectangular fins (k = 235 W/m·K). The fins are exposed
    6·1 answer
  • Around the 1760s what allowed for more supplies to be moved around?
    13·1 answer
  • An important material for advanced electronic technologies is the pure silicon.a)-True b)-False
    9·1 answer
  • A system that is not influence anyway by the surroundings is called a)- control mass system b)- Isothermal system c)-- isolated
    10·1 answer
  • Which is true about the workplace of Construction workers?
    15·2 answers
  • Brainly and points if you want
    13·2 answers
  • A 90-hp (shaft output) electric car is powered by an electric motor mounted in the engine compartment. If the motor has an avera
    8·1 answer
  • Explain the dilemma faced by engineers when the state of technological change does not exactly match the state of social change
    15·1 answer
  • (D)<br> 13. Describe the differences between an impact socket and a conventional socket.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!