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
Sedbober [7]
3 years ago
15

Assuming that a query has a buffer holding up to 3 blocks, and each block can hold two records. Use merge-sort to sort the follo

wing records in ascending order: 10, 11, 1, 5, 90, 1, 2, 101
How many runs will be produced in the whole algorithm and what are the contents of the runs?
Engineering
1 answer:
kipiarov [429]3 years ago
5 0

Answer:

a) 5 runs will be generated.

b) Since the buffer can hold 3 records, the first 3 runs are (1, 10, 11), (1, 5, 90) and (2, 10). Then we need to reserve one block as output buffer, the algorithm can merge two runs at most at the same time. As a result, we can choose to merge the first two runs into a larger one: (1,1,5,10,11,90), which is merged with the run (2, 10) to generate the final output.

Explanation:

5 runs will be generated.

Since the buffer can hold 3 records, the first 3 runs are (1, 10, 11), (1, 5, 90) and (2, 10). Then we need to reserve one block as output buffer, the algorithm can merge two runs at most at the same time. As a result, we can choose to merge the first two runs into a larger one: (1,1,5,10,11,90), which is merged with the run (2, 10) to generate the final output.

You might be interested in
Argon is compressed in a polytropic process with n = 1.2 from 100 kPa and 30°C to 1200 kPa in a piston–cylinder device. Determin
gulaghasi [49]

Answer:

<em>181 °C</em>

<em></em>

Explanation:

Initial pressure P_{1} = 100 kPa

Initial temperature T_{1} = 30 °C = 30 + 273 K = 303 K

Final pressure P_{2} = 1200 kPa

Final temperature T_{2} = ?

n = 1.2

For a polytropic process, we use the relationship

(T_{2}/T_{1} ) = (P_{2}/P_{1})^γ

where γ = (n-1)/n

γ = (1.2-1)/1.2 = 0.1667

substituting into the equation, we have

(T_{2}/303) = (1200/100)^0.1667

T_{2}/303 = 12^0.1667

T_{2}/303 = 1.513

T_{2} = 300 x 1.513 = 453.9 K

==> 453.9 - 273 = 180.9 ≅ <em>181 °C</em>

5 0
3 years ago
A type of adjustable square that can be used to set, test, and transfer angles is called a
bekas [8.4K]

Answer:

pocket cut

Explanation:

type of adjustable square that can be used to set test and transfer angles. sliding t bevel.

5 0
2 years ago
Lately, you have noticed some repetitive stress in your wrist. Which sign is most likely the cause of that stress and pain?
Cerrena [4.2K]
1, you might have been carrying things that are way too heavy for you.
2, you might have weak tendons.
3 0
3 years ago
A long corridor has a single light bulb and two doors with light switch at each door. design logic circuit for the light; assume
sattari [20]

Answer and Explanation:

Let A denote its switch first after that we will assume B which denotes the next switch and then we will assume C stand for both the bulb. we assume 0 mean turn off while 1 mean turn on, too. The light is off, as both switches are in the same place. This may be illustrated with the below table of truth:

A                    B                       C (output)

0                    0                        0

0                    1                          1

1                     0                         1

1                     1                          0

The logic circuit is shown below

C = A'B + AB'

If the switches are in multiple places the bulb outcome will be on on the other hand if another switches are all in the same place, the result of the bulb will be off. This gate is XOR. The gate is shown in the diagram adjoining below.

3 0
3 years ago
I’m in Sociology Class guys and I need help on this question!
Kitty [74]

The stance that a person will take on increasing the minimum wage  is that higher earnings would boast the total standard of living for anyone that is earning minimum wage and it is one that  can provide them with a lot of appropriate income level to manage the cost of living as it increases.

<h3>How would you validate your stance through research?</h3>

I will take a survey using a sample population of minimum wage workers and give them questionnaires to fill.

<h3>What are positive effects of reasons for raising the minimum wage?</h3>
  • The merit of raising the minimum wage are:
  • It boast or Improves employee in terms of retention.
  • It also brings up the demand for goods and services.
  • It tends to increase employee performance.

Therefore, The stance that a person will take on increasing the minimum wage  is that higher earnings would boast the total standard of living for anyone that is earning minimum wage and it is one that  can provide them with a lot of appropriate income level to manage the cost of living as it increases.

Learn more about minimum wage from

brainly.com/question/26699459

#SPJ1

5 0
2 years ago
Other questions:
  • Explain the differences between 1- Energy 2- Power 3- Work 4- Heat Your answer should explain the mathematica and physical meani
    5·1 answer
  • Once Joe Martin reports his concerns to senior management at corporate headquarters and requests that the Ethicana plant operati
    8·1 answer
  • After a 65 newton weight has fallen freely from rest a vertical distance of 5.3 meters, the kinetic energy of the weight is
    12·1 answer
  • 10. To cut 1/4" (6 mm) thick mild steel at a rate of 40 inches per minute, the current would be set to
    7·1 answer
  • Can U lose a rank in Brainly by using too many points?
    6·1 answer
  • Is there a project idea, or invention that would be good for<br> my class.
    6·2 answers
  • Why is “land-use planning” an appropriate name for urban planning?
    8·2 answers
  • A tank with a volume of 40 cuft is filled with a carbon dioxide and air mixture. The pressure within the tank is 30 psia at 70oF
    12·1 answer
  • A linear frequency-modulated signal makes a good test for aliasing, because the frequency moves over a range. This signal is
    6·1 answer
  • when discussing valve train components, technician a says stamped rocker arms are very strong and may be used in high-horsepower
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!