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
Rosalind franklin<br> What was she famous for
liq [111]

Answer:

She was known for her work on X-ray diffraction images of DNA, which led to the discovery of the DNA double helix for which Francis Crick, James Watson, and Maurice Wilkins shared the Nobel Prize in Physiology or Medicine in 1962.

Explanation:

5 0
3 years ago
What is the difference between a single-model production line and a mixed-model production line?
Nat2105 [25]

The unique model production line is responsible for producing identical pieces. For this purpose the balancing of the assembly line is only responsible for assembling a model throughout the line.

This is a considerable difference compared to the mixed model assembly line where many models are assembled during the same production line, that is, it produces parts or products that have slight changes accommodated in them, with slight variations in their model or products of soft variety

The choice of the type of production depends on the type of company and its own demand, always prioritizing the efficiency in the operation. Generally, the mixed model tends to be chosen when demand is very large and customer demand is required to be met. In others it is considered a plant model in which half of the line is mixed and the other one is the only model in order to keep the efficiency balanced.

6 0
3 years ago
A 150-lbm astronaut took his bathroom scale (aspring scale) and a beam scale (compares masses) to themoon where the local gravit
Nonamiya [84]

Answer:

a) W = 25.5 lbf

b) W = 150 lbf

Explanation:

Given data:

Mass of astronaut = 150 lbm

local gravity = 5.48 ft/s^2

a) weight on spring scale

it can be calculated by measuring force against local gravitational force which is equal to weight of body

W = mg

W = (150 \times 5.48)\times \frac{1 lbm}{32.32 lbm. ft/s^2} = 25.5 lbf

b) As we know that beam scale calculated mass only therefore no change in mass due to variation in gravity

thus W= 150 lbf

7 0
4 years ago
Pls help me it’s due today
hichkok12 [17]

Answer:

C. 14.55

Explanation:

12 x 10 = 120

120 divded by 10 is 12

so now we do the left side

7 x 3 = 21 divded by 10 is 2

so now we have 14

and the remaning area is 0.55

so 14.55

6 0
3 years ago
No question but thx<br> reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
jeka94

Answer:

why you doin this

Explanation:

is this so we get free points?

5 0
3 years ago
Read 2 more answers
Other questions:
  • All MOS devices are subject to damage from:________
    7·1 answer
  • A 55-μF capacitor has energy ω (t) = 10 cos2 377t J and consider a positive v(t). Determine the current through the capacitor.
    12·1 answer
  • A hydrogen-filled balloon to be used in high altitude atmosphere studies will eventually be 100 ft in diameter. At 150,000 ft, t
    7·1 answer
  • Write a program that uses while loops to perform the following steps: Step a: Prompt the user to input two integers: firstNum an
    12·1 answer
  • the voltage across a 5mH inductor is 5[1-exp(-0.5t)]V. Calculate the current through the inductor and the energy stored in the i
    6·1 answer
  • *100 POINTS
    6·2 answers
  • Explain the problems and their possible solution for electricity problems ?​
    8·1 answer
  • In python, how would I randomize numbers and insert them into a file?
    7·1 answer
  • Concerning the storage battery, what category of the primary sources is voltage produced?​
    13·1 answer
  • What is the creative process that helps you overcome writer's block called?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!