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
The E7018 Electrode produces a/an
julia-pushkina [17]

Answer:

Explanation:

These include the 6010, 6011, 6012, 6013, 7014, 7024 and 7018 electrodes. 6010 electrodes deliver deep penetration and have the ability to “dig” through rust, oil, paint or dirt, making them popular among pipe welders.

7 0
3 years ago
What is the basic formula for actual mechanical advantage?
slavikrds [6]

Answer:

Mechanical Advantage Formula

The efficiency of a machine is equal to the ratio of its output to its input. It is also equal to the ratio of the actual and theoretical MAs. But, it does not mean that low-efficiency machines are of limited use. An automobile jack, for example, have to overcome a great deal of friction and therefore it has low efficiency. But still, it is extremely valuable because small effort can be applied to lift a great weight.

Also, in another way the mechanical advantage is the force generated by a machine to the force applied to it which is applied in assessing the performance of the machine.

The mechanical advantage formula is:

MA = FBFA

Explanation:

MAmechanical advantageFBthe force of the object

FAthe effort to overcome the force

3 0
3 years ago
Describe, in a general form, the equation, in time domain, that tells the voltage across a inductor, L, as a function of time wh
love history [14]

Answer:

a) V(t) = Ldi(t)/dt

b) If current is constant, V = 0

Explanation:

a) The voltage, V(t), across an inductor is proportional to the rate of change of the current flowing across it with time.

If  V represents the Voltage across the inductor

and i(t) represents the current across the inductor in time, t.

V(t) ∝ di(t)/dt

Introducing a proportionality constant,L, which is the inductance of the inductor

The general equation describing the voltage across the inductor of inductance, L, as a function of time when a current flows through it is shown below.

V(t) = Ldi(t)/dt ..................................................(1)

b) If the current flowing through the inductor is constant i.e. does not vary with time

di(t)/dt = 0   and hence the general equation (1) above becomes

V(t) = 0

4 0
3 years ago
What factors are likely to promote the formation of stress corrosion cracks?
Naddika [18.5K]

Answer:

Stress corrosion cracking

Explanation:

This occurs when susceptible materials subjected to an environment that causes cracking effect by the production of folds and tensile stress. This also depends upon the nature of the corrosive environment.

Factors like high-temperature water, along with Carbonization and chlorination, static stress, and material properties.

7 0
3 years ago
Expalin the application of diesel cycle in detail.
mars1129 [50]

Explanation:

Diesel cycle:

        All diesel engine work on diesel cycle .In diesel cycle there are four process .These processes are as follows

1. Adiabatic reversible compression

2.Heat addition at constant pressure

3.Adiabatic reversible expansion

4.Constant volume heat rejection

In general compression ratio in diesel engine is high as compare to petrol engine.But the efficiency of diesel cycle is less as compare to petrol cycle for same compression ratio.

Applications of diesel cycle:

Generally diesel cycle used for heavy vehicle or equipment because heavy vehicle or equipment is required high initial torque.So this cycle have lots of applications such as in industrial machining,in trucks,power plant,in mining ,in defense or military,large motors ,compressor and pump etc.

   

5 0
3 years ago
Other questions:
  • I study to get good grades because my parents want to send me to the college of my choice.” This is an a. Intrinsic motivational
    6·2 answers
  • Which of the following is not necessary a reason to machine a brake drum?
    8·1 answer
  • Why why why why why why why
    7·2 answers
  • Technician A says that in a worm gear steering system, most excessive steering free play is usually found in the gearbox. Techni
    13·1 answer
  • An atom that gained an electron is called​
    10·2 answers
  • Which of the following is an essential component of reinforced concrete?
    9·1 answer
  • Why is there an Engineering Process?
    15·2 answers
  • Question 8 (1 point)
    5·1 answer
  • Describe two other safe driver skills a driver should use when driving in this road condition
    7·1 answer
  • What car is this? I thinks its a nissan 240sx but i dont know
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!