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
katrin2010 [14]
4 years ago
15

divide the input array into thirds (rather than halves), recursively sort each third, and finally combine the results using a th

ree-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:
Digiron [165]4 years ago
4 0

Answer:

The answer is "nlogn".

Explanation:

  • The time complexity can only shift to 3 with the last instance.  For the 2nd case, they need one parallel. However, 2 parallels are needed to sort with splitting into 3-way frames.
  • It decreases the number of passes even after breaking the collection in 3 by increasing contrast. So, the time complexity remains the same but the log is divided into 3 bits.  
  • The complexity of time is:   T(n)=3T(\frac{n}{3})+ O(n) =  O(nlogn)_3.
You might be interested in
It is essential for a relay energized by alternating current to have
Murrr4er [49]
A key difference in an AC relay is the presence of a "shading coil". The purpose of this coil is to keep the relay on when the current drops to zero during phase change (note that in AC power the current and voltage are alternating in a sine wave around 50/60 times per second). The shading coil retains some magnetic energy and essentially holds the relay ON when the current drops to zero momentarily due to the AC waveform.
5 0
3 years ago
If totalMonths has a string value of "13", what does the code that follows display?var years = parseInt ( totalMonths / 12 );var
TEA [102]

Answer:

The answer to this question is "Option a".

Explanation:

The description of the JavaScript code as follows:

  • In the code, there is two variable defined that are "years and months". The years convert string value in number and calculate years and holds value in years variable and months variable calculate the moths and holds value in months variable.
  • Then we use conditional statements in this statement we use two if blocks. In first if block we check that years variable value is equal to 0. if this condition is true. it will print months in the alert box.
  • In second if block we check that if months variable value is equal to 0. if this condition is true. it will print years in the alert box.
  • In else block, we use an alert box that prints years and months.

6 0
3 years ago
Ask the user to enter 3 scores each representing an assignment score. Ask the user for their midterm and final exam. Store all a
GarryVolchara [31]

Answer:

#include <stdio.h>

int main()

{

   float assignmentScore, averageScore, midTerm, finalTerm, totalScore;

   

   printf("Enter first assignment score: ");

   scanf("%f",&assignmentScore);

   averageScore += assignmentScore;

   printf("Enter second assignment score: ");

   scanf("%f",&assignmentScore);

   averageScore += assignmentScore;

   printf("Enter third assignment score: ");

   scanf("%f",&assignmentScore);

   averageScore += assignmentScore;

   averageScore = averageScore / 3;

   

   printf("Enter mid term score: ");

   scanf("%f",&midTerm);

   

   printf("Enter final term score: ");

   scanf("%f",&finalTerm);

   

   totalScore = (averageScore*0.40)+(midTerm*0.30)+(finalTerm*0.30);

   

   printf("Your total score is equal to %f\n",totalScore);

   

  return 0;

}

Explanation:

  • Declare and get the assignments score, average score, mid term, final term from the user an input.
  • Calculate the average score by calculating all the scores and dividing by the total no. of assignments.
  • Calculate the total score by using the following formula:

Total Score = (average assignments)*40% + (midterm)*30% + (final exam)*30%

  • Lastly, display the total score on the console.
5 0
4 years ago
What is the speed of Android operating system?
NemiM [27]

Answer:

There isn't an exact android speed due to a variety of androids. But there are very fast like the HTC 10 or a Samsung Galaxy.

Explanation:

6 0
3 years ago
Section: Friction
djverab [1.8K]
I believe the answer is true
5 0
4 years ago
Other questions:
  • (04.01 MC)
    11·1 answer
  • If a student is looking for the degree symbol (°) and it is not found on the main drop-down of symbols, what should the student
    9·2 answers
  • Ron is the IT director at a medium-sized company and is constantly bombarded by requests from users who want to select customize
    5·1 answer
  • Which component of the Hyper-V architecture controls all communication with the physical hardware on the computer?
    8·1 answer
  • He has a new Wi-Fi router that connects wirelessly to a new desktop and two new laptops, in addition to multiple smartphones, ta
    8·1 answer
  • Thetremendous diversity of the source systems is the primary reasonfor their complexity. Do you agree
    6·1 answer
  • The Blind carbon copy (Bcc) should be used when you want to __________.
    13·2 answers
  • Which is a feature of audio editing software?
    11·2 answers
  • Select the correct text in the passage.
    15·1 answer
  • WILL GIVE A BRAINLIEST!!! PLS HELP!!!
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!