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
harina [27]
3 years ago
13

Consider the following modification to the Merge Sort algorithm: divide the input array into thirds (rather than halves), recurs

ively sort each third, and finally combine the results using a three-way Merge subroutine. What is the running time of this algorithm as a function of the length n of the input array, ignoring constant factors and lower-order terms
Computers and Technology
1 answer:
ehidna [41]3 years ago
7 0

Answer:

The correct answer to the following question will be "n logn".

Explanation:

  • Time Complexity should be the same as the whole last particular instance, just the log base keeps changing with three.  
  • Throughout the circumstance of separating 2 arrays, we want one correlation. however, for splitting between 3-way arrays, will require 2 comparisons to sort.
  • However, after breaking the array into 3, we can lower the number of transfers by growing the comparison. So the time complexity would then persist the same, but the log should get base 3 as we've classified into different parts.

So the time complexity will be:

⇒  T(n)=3T(\frac{n}{3})+ O(n)

⇒          =O(n \ logn) \ with \ base \ 3

You might be interested in
Why did i get blocked
sergejj [24]
Because you asked something innnapropiate
7 0
3 years ago
Read 2 more answers
An 18 year old female is preparing to go to college in the Fall. She received the 1st dose of HPV and her booster dose of Mening
Elenna [48]

Answer: No, you will not have to determine the exact vaccine that caused the fever and rash. The CDC will determine that information.

Explanation:

To report a vaccine reaction to VAERS you just have to list the symptoms and reactions that were caused after getting a vaccine. The form that is needed to fill out a VAERs can be found on the CDC website. The person filling out the form will need to know the who, when, where, and how of the injury or symptom.

After the form has been received the patient will be contacted and their symptoms will be monitored. Some of the most common reactions after getting a vaccine are;

  • swelling
  • pain
  • redness
  • rash

4 0
3 years ago
Your Twitter recommendations will improve as you:
olga nikolaevna [1]

Answer:

C

Explanation:

Your profile on twitter can boost the relevance of your opinion to a tweet. When your profile shows less information or irrelevant information people tend to ignore you.

3 0
4 years ago
Assume 151 and 214 are signed 8-bit decimal integers stored intwo’s complement format. Calculate 151 214 using saturating arithm
larisa [96]

Answer:

The result is -63

Explanation:

First, we discover the Binary value of 151 which is 10010111.

1 = most significant bit and it represents the sign as negative.

Two's compliment of 10010111, is calculated by adding 1 to one's compliment. We get 01101001 which is 105 in decimal.

Therefore the value of A (the first part) is -105.

Second, the binary value of 214 = 11010110.

1 = most significant bit and it represents the sign as negative.

Two's compliment of 11010110, is calculated by adding 1 to one's compliment. We get 00101010 which is 42 in decimal.

Therefore, the value of B (the second part) is -42.

Simplify further,

A - B = -105 - (-42)

        = -105 + 42

        =  -63

Therefore, the result is -63,

6 0
4 years ago
One reason many people enjoy having a smartphone is that it has an operating system that can run programs, also called ____.
andre [41]
It is called application or apps. These apps makes people to be entertained as they use their smart phones for these consist games, movies, music, useful systems and many more. It enables users to find it interesting and to enjoy themselves as they use their smart phones with the use of these operating systems that runs programs that has their own categories.
3 0
4 years ago
Other questions:
  • Sample Run 1 Enter your word: zebras Enter a number: 62 Password not long enough. Sample Run 2 Enter your word: newyorkcity Ente
    12·1 answer
  • Open a command prompt on pc-a and pc-b and type ipconfig /all. what are the ethernet adapter physical addresses?
    7·1 answer
  • What is the Explicit Dependencies Principle? Explain why explicit dependencies are better than implicit dependencies.
    6·1 answer
  • A rang check that could be use to validate... Date and time
    13·1 answer
  • 2) [13 points] You’ve been hired by Banker Bisons to write a C++ console application that determines the number of months to rep
    8·1 answer
  • Examine the following declarations and definitions for the array-based implementations for the Stack and Queue ADTs. Assume that
    14·1 answer
  • Define cyberstalking ?​
    6·2 answers
  • What option do you use to view your presentation?
    15·1 answer
  • Which of the following statements is true?
    9·1 answer
  • Program a substitution cipher in Python. Create 2 functions one for encryption and the other for decryption ( get the text as th
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!