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
Let A→=(150iˆ+270jˆ) mm , B→=(300iˆ−450jˆ) mm , and C→=(−100iˆ−250jˆ) mm . Find scalars r and s, if possible, such that R→=rA→+s
ioda

Answer: r = 0.8081; s = -0.07071

Explanation:

A = (150i + 270j) mm

B = (300i - 450j) mm

C = (-100i - 250j) mm

R = rA + sB + C = 0i + 0j

R = r(150i + 270j) + s(300i - 450j) + (-100i - 250j) = 0i + 0j

R = (150r + 300s - 100)i + (270r - 450s - 250)j = 0i + 0j

Equating the i and j components;

150r + 300s - 100 = 0

270r - 450s - 250 = 0

150r + 300s = 100

270r - 450s = 250

solving simultaneously,

r = 0.8081 and s = -0.07071

QED!

5 0
3 years ago
A horizontal channel of height H has two fluids of different viscosities and densities flowing because of a pressure gradient dp
cricket20 [7]

Answer:

Given that;

Jello there, see explanstion for step by step solving.

A horizontal channel of height H has two fluids of different viscosities and densities flowing because of a pressure gradient dp/dx1. Find the velocity profiles of two fluids if the height of the flat interface is ha.

Explanation:

A horizontal channel of height H has two fluids of different viscosities and densities flowing because of a pressure gradient dp/dx1. Find the velocity profiles of two fluids if the height of the flat interface is ha.

See attachment for more clearity

6 0
3 years ago
Which of the following types of protective equipment protects workers who are passing by from stray sparks or metal while anothe
lawyer [7]

A protective equipment which protects workers who are passing by from stray sparks or metal while another worker is welding is: E. Welding Screens.

A wielder refers to an individual who is saddled with responsibility of joining two or more metals together by wielding.

During the process of wielding, sparks and minute metallic objects are produced, which are usually hazardous to both the wielder and other workers within the vicinity.

Hence, the following protective equipment are meant to be worn or used directly by a wielder (worker) who is wielding:

  • Visors.
  • Goggles.
  • Protective clothing.
  • Dark walls.

However, a protective equipment which protects other workers who are passing by from stray sparks or metallic objects while wielder (worker) is welding is referred to as welding screens.

Find more information: brainly.com/question/15442363

4 0
2 years ago
Think about how could you design, build, and test a light maze. What specific behavior of light will be essential to the success
Mrac [35]

Answer:

Reflection

Explanation:

The specific behavior of light that will be essential to ensure the success of your design is "Reflection". This is because light maze makes use of a mirror and it's the light that is reflected that we see with our eyes. Also, the manner in which light is reflected off objects will affect the colors that are reflected as well.

4 0
3 years ago
Consider a very long, cylindrical fin. The temperature of the fin at the tip and base are 25 °C and 50 °C, respectively. The dia
nekit [7.7K]

Answer:

98°C

Explanation:

Total surface area of cylindrical fin = πr² + 2πrl , r = 0.015m; l= 0.1m; π =22/7

22/7*(0.015)² + 22/7*0.015*0.1 = 7.07 X 10∧-4 + 47.1 X 10∧-4 = (54.17 X 10∧-4)m²

Temperature change, t = (50 - 25)°C = 25°C = 298K

Hence, Temperature =  150 X (54.17 X 10∧-4) X 298/123 = 242.14/124 = 2.00K =

∴ Temperature change = 2.00K

But temperature, T= (373 - 2)K = 371 K

In °C = (371 - 273)K = 98°C         

7 0
3 years ago
Other questions:
  • Consider a system with two tasks, Task1 and Task2. Task1 has a period of 200 ms, and Task2 has a period of 300 ms. All tasks ini
    5·1 answer
  • 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:
    12·1 answer
  • Que es resistencia ?
    15·1 answer
  • Which element of Miranda's character is best illustrated by this excerpt?
    15·1 answer
  • A device that helps increase field worker productivity by providing reliable location and time
    13·1 answer
  • What causes decay in the amplitudes of vibration?
    11·1 answer
  • Introduction for site visit​
    13·1 answer
  • After adjusting your seat, your___ should be as closest possible to the back rest.
    14·1 answer
  • What are difference between conic sectional and solids?
    15·1 answer
  • A wheel spins at a constant angular speed of 24rad/s.How many revolutions will the dosk go through in 5minutes?​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!