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]
4 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]4 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
If the driver gear has 5 teeth and the driven gear has 10 teeth,what is the gear ratio?​
shepuryov [24]
The on that has ten teeth
6 0
3 years ago
Read 2 more answers
Request for proposal (RFP) is a type of document that contains the information and proposals mostly through the bidding process.
Art [367]

Answer:

Answer to the following is as follows;

Explanation:

A request for proposal is a documentation that invites prospective contractors to submit business opportunities to an agency or corporation interested in procuring a commodities, product, or valuable resource through a bid procedure.

A request for proposal (RFP) is a commercial document that introduces a project, defines it, and invites eligible contractors to compete on its completion.

8 0
3 years ago
If you've had anything to drink and can't get a ride home from sober friends or family, __________.
laiz [17]

Answer:

The answer is D

Explanation:

3 0
3 years ago
Read 2 more answers
Consider an ADC with 6-bit resolution. When operating in unipolar mode, the ADC supports a 0 V-to-10 V range. What is the resolu
faltersainse [42]

Answer:

0.156 V

Explanation:

Analog to digital converter (ADC) is used to convert an analog signal into a digital signal.

Resolution of ADC means in how many parts the signal of interest can be divided.

The resolution can be found using

Q = Full scale Voltage range/2^M

Where the full scale voltage range is 10 V and M is the number of bits of the ADC.

Q = 10/2^6

Q = 10/64

Q = 0.156 V

Therefore, the smallest voltage difference that can be detectable by this ADC is  0.156 V

4 0
3 years ago
E total kinetic energy of a 2500 lbm car when it is moving at 80 mph (in BTU)?
Galina-37 [17]

Answer:

KE= 687.21 BTU

Explanation:

Given that

Mass of car = 2500 lbm

We know that 1 lb=0.45 kg

So the mass of car  m =1133.98 kg

Velocity of car= 80 mph

We know that 1 mph =0.44 m/s

So velocity of car = 35.76 m/s

As we know that kinetic energy (KE) is given as follows

KE=\dfrac{1}{2}mv^2

Now by putting the values

KE=\dfrac{1}{2}\times 1133.98\times 35.76^2

KE=725.05 KJ

We know that   1 KJ = 0.94 BTU

So  KE= 687.21 BTU

3 0
4 years ago
Other questions:
  • An object whose mass is 251 kg is located at an elevation of 24 m above the surface of the earth. For g-9.78 ms, determine the g
    5·1 answer
  • The refers to the area located in the oil pan and timing chain part of the engine cylinder block
    10·1 answer
  • A certain working substance receives 100 Btu reversibly as heat at a temperature of 1000℉ from an energy source at 3600°R. Refer
    13·1 answer
  • A(n) _____ is a stationary insulated wire wrapped in a circular shape around iron pole shoes located inside the starter motor ho
    13·1 answer
  • Who here is a genius?
    8·2 answers
  • What are some goals of NYFEA? Select three options.
    9·2 answers
  • Gn bbys sleep well<br><br><br><br><br> gn
    7·2 answers
  • When mass is the same, what is the relationship between radius and compression strength?
    5·1 answer
  • A high compression ratio may result in;
    13·1 answer
  • During shielded metal arc welding, a welder can receive a burn comparable to sunburn if proper protective clothing is not worn.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!