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
An aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 40 . For an applied str
erma4kov [3.2K]

Answer:

B. 2.3mm

Explanation:

The correct answer for the given question is B. 2.3mm. Some aircraft are made are fabricated from aluminium which has plane stain fracture toughness. In the given scenario the plane stain toughness is

Ktc = 40 [ MPa \sqrt{(m)} ]

When the Ktc increases the fracture will appear on the aircraft. In this case the maximum crack until the fracture failure is 2.5mm.

8 0
3 years ago
Inspections may be_____ or limited to a specific area such as electrical or plumbing
Nuetrik [128]
A is the answer for the sentence
4 0
3 years ago
Jason’s Petrochems is a firm that brings in chemical intermediates such as organic fertilizers and organic solvents from differe
saul85 [17]

Answer:

an importer

Explanation:

Jason's petrochems depends on imported intermediates for its production/processing. From the question, the firm imports chemical intermediates, processes them in its laboratories before selling them. It also uses the intermediates to produce various fertilizers and solvents. Essentially its feed stocks ( inputs) are wholly imported from different countries. Hence the firm is an import dependent petrochemical complex.

6 0
3 years ago
To solve the problem, make assumptions for missing data and justify. Given:
finlep [7]

Answer:

5,4,1, this is a explication

6 0
3 years ago
Which one of these is NOT considered a skill?
Ugo [173]

Answer:

number 2 people skills

Explanation:

i think people skills does not make cense because you can not control what people think

4 0
4 years ago
Read 2 more answers
Other questions:
  • 3. An isolated system has an initial temperature of 30oC. It is then placed on top of a Bunsen burner whose temperature is 70oC
    10·1 answer
  • A cylindrical specimen of a brass alloy having a length of 60 mm (2.36 in.) must elongate only 10.8 mm (0.425 in.) when a tensil
    9·1 answer
  • The natural water content of a Boston Blue Clay soil sample was found to be 14.6% through oven drying. It has been calculated th
    8·1 answer
  • Select the correct answer.
    8·1 answer
  • In a database, a column is called a _____.<br> row<br> table<br> file<br> field
    9·2 answers
  • If you could drive one car for the rest of your life what would it be? Type in comments if you want to answer. Mine is either a
    9·1 answer
  • Do you play escape from tarkov if so do you want to play it with me​
    13·1 answer
  • engineering controls are devices such as self sheathing needles and sharps containers to block or eliminate the sharp risk. true
    9·1 answer
  • Can some one plz give me brainlys
    14·2 answers
  • A 250-pound person would use a Type 1 ladder even if he were carrying a load with him. true or false
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!