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
A PMOS device with VT P = −1.2 V has a drain current iD = 0.5 mA when vSG = 3 V and vSD = 5 V. Calculate the drain current when:
Ksju [112]
The answer is b ! Hope I helped
7 0
3 years ago
one number is 11 more than another number. find the two number if three times the larger number exceeds four times the smaller n
vaieri [72.5K]

Answer:

a = 40

b = 29

Explanation:

Give a place holder for the numbers that we don't know.

Lets call the two numbers a and b.

From the given info, we can write an expression and solve it:

"one number is 11 more than another number"

a = 11 + b

from this, we know that a > b.

''three times the larger number exceeds four times the smaller number by 4"

3a = 4b + 4

Now we have 2 equations, we can use them to solve using whatever method you want.

a = 11 + b

3a = 4b + 4

I will be using matrices RREF to solve for this.

a - b = 11

3a - 4b = 4

\begin{bmatrix}1 & -1  & 11\\3 & -4 & 4 \end{bmatrix}

\begin{bmatrix}1 & 0  & 40\\0 & 1 & 29 \end{bmatrix}

a = 40

b = 29

6 0
3 years ago
A 1 m wide continuous footing is designed to support an axial column load of 250 kN per meter of wall length. The footing is pla
creativ13 [48]

Answer:

correct option is (A) 0.5

Explanation:

given data

axial column load = 250 kN per meter

footing placed =  0.5 m

cohesion = 25 kPa

internal friction angle =  5°

solution

we know angle of internal friction is 5° that is near to 0°

so it means the soil is almost cohesive soil.

and for  a pure cohesive soil

N_{\gamma } = 0

and we know formula for N_{\gamma } is

N_{\gamma } = (Nq - 1 ) × tan(Ф)   ..................1

so here Ф is very less  N_{\gamma } should be nearest to zero

and its value can be 0.5

so correct option is (A) 0.5

7 0
3 years ago
What must engineers keep in mind so that their solutions will be appropriate?
vekshin1

Answer:

Context

Explanation:

It is of great value for an engineer to keep the context of his/her experiment in mind.

7 0
3 years ago
In RSA Digital Signature, Suppose Bob wants to send a signed message (x = 4) to Alice. The first steps are exactly t eps are exa
Luda [366]

Answer:

what r u on

Explanation:

4 0
3 years ago
Other questions:
  • At a certain elevation, the pilot of a balloon has a mass of 120 lb and a weight of 119 lbf. What is the local acceleration of g
    6·1 answer
  • 1. Which type of fit implies that a piece will never fit? a. interference fit b. construction fit c. transition fit d. impeding
    8·1 answer
  • A flame ionization detector, which is often used in gas chromatography, responds to a change in
    12·1 answer
  • If 3 varies inversely as x and y=2 when x=25, find x when y=40
    7·1 answer
  • A moving-coil instrument, which gives full-scale deflection with 0.015 A has a copper coil having resistance of 1.5 Ohm at 15°C
    7·1 answer
  • Consider coaxial, parallel, black disks separated a distance of 0.20 m. The lower disk of diameter 0.40 m is maintained at 500 K
    13·1 answer
  • True or false for the 4 questions?
    8·1 answer
  • Two basic types of mechanical fuel injector systems?​
    13·2 answers
  • How might a field like philosophy of history help scientists​
    14·1 answer
  • Sometimes we need to create heat, such as in circuit breakers and rear window
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!