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
anzhelika [568]
3 years ago
10

Suppose we use radix sort to sort the English-language strings below using standard lexicographic ordering (i.e. sort in alphabe

tical order). We sort least-to-greatest and consider the numbers in top-to-bottom order when assigning them to bins. Assume the empty string" comes before all letters in lexicographic order. PART TRIP
TARP
ART
TRAP
CHIP

a) (1 point) How many passes are required to sort the strings?
b) (1 point) How many buckets would radix sort allocate to sort the strings?
c) (5 points) For each of the following pairs of words, fill in the circle next to the word that would appear earlier in the list after two passes of radix sort.
i) TRIP or TARP
CHIP or TRIP
iii) ART or PART
iv) PART or TARP
v) TARP or TRAP

d) State the runtime of radix sort on each of the following inputs set as precisely as you can. Include any known constant factors. i) (1 pt) Runtime on English-language strings of length d: ii) (1 pt) Runtime on decimal integers of length d:

Engineering
1 answer:
nlexa [21]3 years ago
7 0

Answer:

a) 4 passes are required to sort the string.

b) 4

c)   i) TARP

    ii) CHIP

    iii) PART

    iv) TARP

    v) TARP

d) O(k+n), n is no. of strings, k is largest no. of character in among the string

   O(d*(n+10)), n is no. of integers

Explanation:

You might be interested in
If you are setting up a race car. What is the cross weight? Does it matter?
lara31 [8.8K]

Answer:

cross-weight is used to tighten it up.

Explanation:

and yes this is important because Cross-weight percentage compares the diagonal weight totals to the car's total weight.

hope  this help

(mark this answer as an brainliest answer)

7 0
3 years ago
State the four advantages of levers
dezoksy [38]

Answer:

Here are 2 sense i cant find 4

Explanation:

Levers are used to multiply force, In other words, using a lever gives you greater force or power than the effort you put in.

In a lever, if the distance from the effort to the fulcrum is longer than the distance from the load to the fulcrum, this gives a greater mechanical advantage.

3 0
3 years ago
In a much smaller model of the Gizmo apparatus, a 5 kg mass drops 86 mm (0.086 m) and raises the temperature of 1 gram of water
Orlov [11]

Answer:

The amount of energy transferred to the water is 4.214 J

Explanation:

The given parameters are;

The mass of the object that drops = 5 kg

The height from which it drops = 86 mm (0.086 m)

The potential energy P.E. is given by the following formula

P.E = m·g·h

Where;

m = The mass of the object = 5 kg

g = The acceleration de to gravity = 9.8 m/s²

h = The height from which the object is dropped = 0.086 m

Therefore;

P.E. = 5 kg × 9.8 m/s² × 0.086 m = 4.214 J

Given that the potential energy is converted into heat energy, that raises the 1 g of water by 1°C, we have;

The amount of energy transferred to the water = The potential energy, P.E. = 4.214 J.

6 0
3 years ago
Technician A says that mechanical shifting controls can wear out over time. Technician B says that vacuum control rubber diaphra
diamong [38]

Based on the information, both technician A and technician B are correct.

<h3>How to depict the information?</h3>

From the information given, Technician A says that mechanical shifting controls can wear out over time.

Technician B says that vacuum control rubber diaphragms can deteriorate over time.

In this case, both technicians are correct as the information depicted is true.

Learn more about technicians on:

brainly.com/question/1548867

#SPJ12

8 0
2 years ago
Steam enters a turbine in a Rankine cycle power plant at 200 psia and 500 °F. a) Calculate the isentropic thermal efficiency if
Aleks04 [339]

Answer:

η=0.19=19% for p=14.7psi

η=0.3=30% for p=1psi

Explanation:

enthalpy before the turbine, state: superheated steam

h1(p=200psi,t=500F)=2951.9KJ/kg

s1=6.8kJ/kgK

Entalpy after the turbine

h2(p=14.7psia, s=6.8)=2469KJ/Kg

Entalpy  before the boiler

h3=(p=14.7psia,x=0)=419KJ/Kg

Learn to pronounce

the efficiency for a simple rankine cycle is

η=\frac{h1-h2}{h1-h3}

η=(2951.9KJ/kg-2469KJ/Kg)/(2951.9KJ/kg-419KJ/Kg)

η=0.19=19%

second part

h2(p=1psia, s=6.8)=2110

h3(p=1psia, x=0)=162.1

η=(2951.9KJ/kg-2110KJ/Kg)/(2951.9KJ/kg-162.1KJ/Kg)

η=0.3=30%

7 0
3 years ago
Other questions:
  • To operate a vehicle in Florida, you must
    10·2 answers
  • Which sentence about the technology design process is true
    12·1 answer
  • You are an engineer working in a auto crash test lab. Some members of your team have raised objections against the use of cadave
    10·1 answer
  • If a ball is dropped from a height its velocity will increase until it hits the ground, assuming that aerodynamic drag due to th
    6·1 answer
  • 6-What is the difference between the critical point and the triple point?
    15·2 answers
  • Which type of Bridge is considered the strongest in both compression and tension?
    11·2 answers
  • Your sprayer has a 60-foot wide boom with 36 nozzles along this 60-foot length. Your spray speed is 4.5 miles per hour and you w
    15·1 answer
  • We have a tube with a diameter of 5 inches that is 1 foot long. The tube then reduces the diameter to 3 inches. According to the
    8·2 answers
  • Name eight safety electrical devices including their functions and effects if not present.​
    15·1 answer
  • What is photosynthesis​
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!