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]
4 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]4 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 thrust F of a screw propeller is known to depend upon the diameter d,speed of advance \nu ,fluid density p, revolution per s
musickatia [10]

Answer:

<em>screw thrust = ML</em>T^{-2}<em> </em>

Explanation:

thrust of a screw propeller is given by the equation = pV^{2}D^{2} x \frac{ND}{V}Re

where,

D is diameter

V is the fluid velocity

p is the fluid density

N is the angular speed of the screw in revolution per second

Re is the Reynolds number which is equal to  puD/μ

where p is the fluid density

u is the fluid velocity, and

μ is the fluid viscosity = kg/m.s = ML^{-1}T^{-1}

<em>Reynolds number is dimensionless so it cancels out</em>

The dimensions of the variables are shown below in MLT

diameter is m = L

speed is in m/s = LT^{-1}

fluid density is in kg/m^{3} = ML^{-3}

N is in rad/s = LL^{-1}T^{-1} =

If we substitute these dimensions in their respective places in the equation, we get

thrust = ML^{-3}(LT^{-1}) ^{2}L^{2}\frac{T^{-1} L}{LT^{-1} }

= ML^{-3}L^{2}T^{-2}

<em>screw thrust = ML</em>T^{-2}<em> </em>

This is the dimension for a force which indicates that thrust is a type of force

6 0
3 years ago
You plan to install an active, liquid-based solar heating system for hot water. There are four candidate collector systems. Your
olchik [2.2K]

Solution:

The given formula,

x=F_{R} U_{L} \times \frac{P l}{F R_{1}} \times\left(T_{r e f}-\bar{T}_{a}\right) \Delta t \times \frac{A_{c}}{L}

y=F_{R}(\tau \alpha)_{n} x \frac{F_{R}^{\prime}}{F_{R}} \times \frac{(\bar{\tau} d)}{(T d)_{n}} \times \bar{H}_{T} N \times \frac{A C}{L}

\frac{x}{y}=\frac{ u_{L} \times\left(T_{x t}-\bar{T}_{a}\right) \times \Delta t}{\left(\tau_{x}\right)_{h} \times\left(\frac{\bar{\tau}_{d}}{\left.| \tau_{d}\right)_{n}}\right) \times \bar{H}+N}

From the table,

1) \(\quad x=2 \cdot 87, \quad y=0.96\)\\\(\frac{x}{y}=\frac{2187}{0.96}\)22895\\\\2) \(x=3 \cdot 466 \cdot y=6 \cdot 998\)\\\(\frac{x}{y}=\frac{3 \cdot 466}{0.898}\)\(=3 \cdot 4729\)

3\(x=3 \cdot 229, y=1 \cdot 08\)\\\(\frac{x}{x}=\frac{3 \cdot 229}{1 \cdot 08}\)\\=2.9898\)\\\\4) \(x=6.525, y=1.094\)\\\(\frac{x}{y}=\frac{5.625}{1.094}\)\\=5.0502

8 0
4 years ago
Carbon dioxide gas enters a well-insulated diffuser at 20 lbf/in.2 , 500R, with a velocity of 800 ft/s through a flow area of 1.
inessss [21]

Answer:

Exit Temperature= T2=563.6 °R

Exit Pressure= P2= 30.06 lbf/in^2

Mass Flow rate=1.276 lb/sec

Explanation:

Answer is explained in detailed way in the attached files.

4 0
3 years ago
Tom scott thinks a deal with ______ is key to take vamderbilt's place
yan [13]

Answer:

A.

Explanation:

4 0
3 years ago
A journeyman electrician with 16 years experience on-the-job was removing metal fish
RoseWind [281]

Explanation:

1. Ensure all circuits are de-energized before beginning work (29 CFR 1926.416(a)(3)).

2. Controls to be deactivated during the course of work on energized or de-energized

equipment or circuits must be tagged (29 CFR 1926.417(a)).

3. Employees must be instructed to recognize and avoid unsafe conditions associated with

their work (29 CFR 1926.21(b)(2)).

8 0
3 years ago
Other questions:
  • Consider the following class definitions: class smart class superSmart: public smart { { public: public: void print() const; voi
    6·1 answer
  • A material condition used to indicate that a specified geometric tolerance applies at each increment of size of a feature within
    15·1 answer
  • Light energy produces the only voltage in a solar cell. (a)-True(T) (b)- false(F)
    9·1 answer
  • The uniform slender rod has a mass m.
    5·1 answer
  • Consider a half-wave rectifier circuit with a triangular-wave input of LaTeX: 6V6 V peak-to-peak amplitude and zero average valu
    6·1 answer
  • A cylindrical specimen of some metal alloy having an elastic modulus of 106 GPa and an original cross-sectional diameter of 3.9
    5·1 answer
  • A hypothetical metal alloy has a grain diameter of 1.7 102 mm. After a heat treatment at 450C for 250 min, the grain diameter ha
    8·1 answer
  • Anything you want to do in Hootsuite can be found in the ________, with the main workspace in the _________?
    15·1 answer
  • Ahmed records the number of questions he has answered on DFM per day over 14 days, and puts the data in the table below.
    11·2 answers
  • Replace the black box portion of the circuit with the Norton's equivalent circuit. ______ for the load can now be calculated usi
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!