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
ddd [48]
3 years ago
6

Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the arr

ay looking like this: 2 5 1 7 9 12 11 10, which statement is correct?
a. The pivot could be 7, but it is not 9.
b. The pivot could be 9 but not 7.
c. The pivot could be either 7 or 9.
d. Neither 7 nor 9 is the pivot.
Computers and Technology
1 answer:
Mila [183]3 years ago
6 0

Answer:

c. The pivot could be either 7 or 9.

Explanation:

Since we are trying to sort an array of eight integers using quick sort, from the first partitioning it shows that the pivot or the central point can either be 7 or 9. When you look at the array, it is only 7 and 9 that are placed correctly in the sorted array. Every element to the left of 7 and 9 are smaller and every element on the right of 7 and 9 are integers higher than them. Hence this shows that the pivot lies between 7 or 9.

You might be interested in
What is Game Theory?
AleksandrR [38]

Answer:

the branch of mathematics concerned with the analysis of strategies for dealing with competitive situations where the outcome of a participant's choice of action depends critically on the actions of other participants

Explanation:

In simple terms Game theory is the study of how and why people make decisions.

8 0
3 years ago
A website sells illegal and counterfeited materials. According to which law can the US Attorney General seek a court order to re
RideAnS [48]
The answer is SOPA or Stop Online Piracy Act. This bill was introduced by Lamar Smith a representative in US. Lamar passed this bill in the United states to enforce the law to combat online copyright, online trafficking, and other cyber crimes. There are many provisions on this bill including the court orders to request ISP (Internet Service Provided) to block access to that website.
3 0
3 years ago
Read 2 more answers
Label some of the main service provided by the internet.using the picture​.. please...
Natasha_Volkova [10]

Answer:

Social media

Laptops

Phones

Emails

Please give brainliest

8 0
3 years ago
Write a function named printtriangle that receives a parameter that holds a non-negative integer value and prints a triangle of
NemiM [27]
Static void PrintTriangle(int n){    for(;n>0;n--) {                Console.WriteLine(new String('*', n));    }}
5 0
3 years ago
Write a program to generate the 1,8,27,64,125,226,343,512,729,1000 series.​
ehidna [41]

Answer:

class series

{

public static void[]

main[string args[]]

{

into, I, n=4;

for(i=1;i<=n;i++)

{

d=i*i*i;

system. out. print(d+",");

}

}

}

Explanation:

java?

4 0
3 years ago
Other questions:
  • The key invention that enabled computers to go into every home and office is
    7·1 answer
  • While a hard drive is running, even a slight bump against the computer may cause the
    9·2 answers
  • Which of the following are reasons why it is important to properly recycle electronic equipment? Select all that apply.
    14·2 answers
  • Can a msi b450 tomahawk motherboard fit into a darkflash dlm21 mesh micro atx tower
    13·1 answer
  • Variables set equal to patterns are said to be:_______.
    7·1 answer
  • 80billion +2 TRILLION . PLEASE AWNSER
    7·1 answer
  • The enhanced for loop _____ Group of answer choices reduces the number of iterations necessary to visit all elements of an array
    12·1 answer
  • The Excel application is used to create
    7·1 answer
  • Six security issues and six descriptions are shown below.
    11·1 answer
  • Computers and their input and output devices require power to work and may have many power cords. What is the safest way to orga
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!