The quicksort is an example of a divide and conquer algorithm in that it divides the sorting problem into smaller problems by dividing the list of items to be sorted into smaller subsets. The pivot is the mechanism that is used to segment the list. Describe how the quicksort works including a discussion of the pivot, how it is selected, and why the pivot is important to the quicksort.

Answers

Answer 1

Answer:

The quicksort pivot is an arbitrary element within the collection that is being sorted.  Using the pivot point, the collection of elements is partitioned into two smaller lists of elements.  Using some logic, the smaller elements are placed left of the pivot point, and larger elements are placed to the right of the pivot point.  Ideally, you would prefer you pivot point to be a median of your dataset to optimize the creation of the two sublists into a balanced state.

Cheers.

Answer 2

The pivot of a quicksort algorithm ought to always be the element in the middle. Some algorithms will choose the item in the center as the pivot, while others will choose the first or last element.

What is quicksort algorithm?

Quicksort is a sorting method that operates in-place. It was created by British computer scientist Tony Hoare and is still a widely used sorting algorithm.

When properly implemented, it can be slightly faster than merge sort and two or three times faster than heapsort.

The quicksort pivot can be any element in the collection being sorted. The collection of elements is divided into two smaller lists of elements using the pivot point.

Smaller elements are placed to the left of the pivot point, while larger elements are placed to the right of the pivot point.

To optimize the creation of the two sub-lists into a balanced state, you would prefer your pivot point to be the median of your dataset.

Thus, this way quicksort works.

For more details regarding quicksort algorithm, visit:

https://brainly.com/question/13257594

#SPJ2


Related Questions

what's the answer to this​

Answers

Answer:

S

Explanation:

The index operator will address individual characters in the string.

15 points please help!!!!


David works at a company that provides financial solutions. He wants to create an interactive presentation for his company. Which interactive platforms can David use for this presentation?

David can use an interactive or a for his presentation.

Answers

Answer:

Powerpoint presentation

Explanation:

Powerpoint presentation is a part of Microsoft office that is established by Microsoft. PowerPoint. It is used to present the company visions, missions, key points in a short and in an attractive way by using the various designs, pictures, audio clips, etc

Here David wants to create an interactive presentation so he should use the powerpoint presentations so that he could present the company visions, objectives, etc

How a student can use computer to improve academic performance?

Answers

Answer:

k Nishant

Explanation:

he can learn many things internet by using computer he change his self by learning about many things

Answer:

A student can use it by searching up things with his/her computer.

Browse for different new things everyday that gives knowledge.

Ask questions.

Do new things everyday.

A computer can easily input grades and send data.

Explanation:

Okay.

Discuss three ways in which errors can arise in developing and executing linear optimization models in business situations, and indicate some of the business consequences of such errors. Explain how analytics professionals can help to prevent such errors.

Answers

Answer:

The following are the three-way, in which errors arise and, the process to solve them.

Explanation:

The mistake is something you did, that could not be incorrect. It may consider errors when creating and implementing simulation models in business situations because of some procedure problems. It is not because of bemusement and a few of the other error types were also acceptable even though the correction is affordable.

Type 1 error:  This type of error arises due to limited accuracy issues, in this the gadgets or devices used for the simulation study, quantitative measurements. These errors Often simplified in expectations. It is a concept for analysis, in which experts firstly understand this kind of mistake.  Type 2 error:  These errors may occur due to inaccuracy. If another analytic method behaves differently for two analysts. It tends to cause errors, that are unrecognized by no pre-defined methods for fixing those errors. Type 3 error:  These issues can be reduced by the improper selection of software, and in the implementation period, it can consider this sort of error due to the failure of system integration tools.

What type of camera is a cell phone camera? A.) DSLR B.) manual C.) compact D.) zoom

Answers

Answer:

The correct option is;

D.) Zoom

Explanation:

The six types of camera found on smart phones includes the monochrome, macro camera, ultra-wide camera, periscope zoom camera, the main phone camera, and the depth sensor camera

The zoom cameras on smart phones can be found mainly in the top range models of smart phones due to the costs of the camera components including the sensor.

Smart phones also have digital zooming that make use of the high mega pixels that come with the phone.

An IP subnetting design requires 200 subnets and 120 hosts/subnet for the largest subnets, and requires that a single mask be used throughout the one private IP network that will be used. The design also requires planning for 20 percent growth in the number of subnets and number of hosts/subnet in the largest subnet. Which of the following answers lists a private IP network and mask that, if chosen, would meet the requirements?a. 10.0.0.0/25b. 10.0.0.0/22c. 172.16.0.0/23d. 192.168.7.0/24

Answers

Answer:

b. 10.0.0.0/22

Explanation:

Variable length subnet masking is a concept in networking that helps minimize wasting of Ipv4 ( IP version 4) network addressing. It takes a networking address and splits it to variable length.

The question above requires 120 hosts and a future host update of 20%, which is 144 hosts and a subnet of the same address of 200 to 240 in update. The host octet of the network address is totally used, which gives 254 hosts, that is extract 110 hosts. This can be further subnetted.

The two bits from the third octet is used for subnetting to give over 240 subnet mask.

Which function will add a grade to a student's list of grades in Python? add() append() print() sort()

Answers

Answer:

It will be add()

Answer:

A

Explanation:

write a python program to calculate the compound interest

Answers

Answer:

initialPrincipal = float(input("Please enter your initial principal:"))

interestRate = float(input("Please enter your interest rate:"))

timePeriod = float(input("Please enter your number of times interest applied per time period:"))

elapsedPeriod = float(input("Please enter your number of time period elapsed:"))

finalAmount = initialPrincipal*(1 + interestRate/timePeriod)^(timePeriod*elapsedPeriod)

print("Your final amount would be:", finalAmount)

Upon running the ifconfig command, the IP address is listed along with the subnet mask in dotted decimal notation listed as 255.255.255.224. You have installed a remote access software that has an address field that requires the address to be configured in CIDR notation. Which of the following is the equivalent CIDR notation for the subnet mask listed?a. /23b. /24c. /27d. /28

Answers

Answer:

The answer is "Option c"

Explanation:

In the given question only option c is correct because "/27" is the IP "255.255.255.224" is the same as "/27" in the terminology in CIDR, in which it uses the compact IP address as well as corresponding prefix expression and it terminology consists of an IP with a slash ('/') or a decimal number. Its count of 1-bit proceeding to the mask traditionally referred to it as the network mask.

What purpose does the underlined portion of this excerpt

serve in the argument that Americans should agree to pay

more taxes to raise money for entering the war?

Answers

Answer:

The below mentioned portion is missing from the question

A part of the sacrifice means the payment of more money in taxes. In my Budget Message I shall recommend that a greater portion of this great defense program be paid for from taxation than we are paying today. No person should try, or be allowed, to get rich out of this program; and the principle of tax payments in accordance with ability to pay should be constantly before our eyes to guide our legislation.

The passage provides the reason why extra taxes must be collected should America decide to join the war  or it introduces the claim that patriotic Americans should be willing to sacrifice and pay extra taxes.

Website reputation is an important part of page quality (PQ) rating. Reputation can justify the Highest rating and the Lowest rating.

Answers

Answer:

The given statement is false.

Explanation:

A Website reputation seems to be a built-in feature or tool. It retains knowledge about users, through visiting pages. The committed resources for this site depending on either the website as well as the basic details about its design. The reputation including its Website has been used to strengthen the safety of phishing attacks or malicious content.

Therefore the solution given above is the right one.

What steps are needed for word to create an index

Answers

Answer:

Do this:

Position the insertion pointer where you want the index to appear. If you want the index to start on a new page, create a new page in Word. ...

Click the References tab.

In the Index group, click the Insert Index button. The Index dialog box appears. ...

Click the OK button to insert the index into your document.

Answer:

Position the insertion pointer where you want the index to appear.

(the insertion point is the point where the next characters typed from the keyboard will appear)

If you want the index to start on a new page, create a new page in the program you're using

Then you click the References tab.

In the Index group, click the Insert Index button.

When the Index dialog box appears, click the OK button to insert the index into your document.

________ means that IT capacity can be easily scaled up or down as needed,which essentially requires cloud computing. A) agility B) flexibility C) responsiveness D) IT consumerization

Answers

Answer:

The correct option is;

A) Agility

Explanation:

Business agility is a measure of the responsiveness of business to business opportunities that is the time lapse between the emergence of a business opportunity and the the business formerly responding to the opportunity.

By similar analogy, IT agility is about the responsiveness of an organizations IT infrastructure to external stimuli. As such IT agility measures the systems adaptability to change (which may involve scaling down) or how easily it is for the IT system to be able to produce new transferable opportunities which involves scaling up as needed.

What is the key function of a sales team?
A. to maintain customer-retailer interaction
B. to create appealing advertisements
C. to maintain fan–developer communication
D. to develop customer–fan relationships

Answers

Answer:

A. to maintain customer-retailer interaction

Explanation:

A sales team is a subdivision in a company that is dedicated to making sales for the company and they are responsible for meeting the growth goals of that company.

The key function of a sales team is to maintain a healthy customer-retailer relationship or interaction because it is from this good relationship that goods and services are sold.

List out analog computer​

Answers

Answer:

1. Wall clocks.

2. Analog watches

3. Measuring instruments with callibration

Explanation:

Joshua needs to store all of his music (over 2 GB), his movies (4GB), and his pictures (1GB). He wants to be able to access his media wherever he goes. He needs a cheap storage solution. Which type of storage would be best for Joshua?

Answers

Answer:Cloud storage

Explanation:I think that the cloud storage would be his best choice, because there are free cloud storages for use and all you need is access to the internet to upload or download files from them.

What tends to happen to the accuracy of our savings goals as our investment horizon becomes longer? A. It is not useful to have long-term savings goals. B. We are less able to accurately estimate the amount we will need. C. We can estimate the amount we need more accurately. D. The accuracy of our savings goals doesn't change.

Answers

Answer:

The answer is "Option B".

Explanation:

The Secured Goals are a part of your account, which is configured to just save your cash and also save it, and all the differences are good dividend savings accounts to shield this from accidental expenses. While opening the protected savings fund, the saving goal would be automatically created or loan rates invested only at the end of each month, that's why in this question "option B" is correct.

The less able to the accurate estimate of the amount we will require. Thus the option B is correct.

What is the saving goals of investment?

The saving or the secured Goal is a part of the account, it tells how to adjust and configure your save. When opening the protected saving fund the dating goal would be automatically to create the loan and rate the investment at the end of the month. Thus we can accurately estimate the amount we need.

Find out more information about the saving goals.

brainly.com/question/6903609

Declare an array of int values westboundHollandTunnelTraffic that can store the number of vehicles going westbound through the Holland Tunnel - on a particular hour (numbered 0 through 23) - on a particular day (numbered 0 through 6) - on a particular week (numbered 0 through 51) - over the last ten years (numbered 0 through 9). The innermost dimension should be years, with the next being weeks, and so on.

Answers

Answer:

Following are the declaration of the array:

int westboundHollandTunnelTraffic [10] [52] [7] [24];  //defining an integer array  that holds days, week, hour, and year value

Explanation:

In the above-given code, an array that's name is " westboundHollandTunnelTraffic " is declared and the type of the storing elements in the array is an integer.

In this array, it first stores the year's value, and in second, it stores week values, in third, it stores day value, and the last it stores hours value.    

i will mark brainalist! ​

Answers

Answer:

I would say

1) Weather Station

2) (word missing)

3) Robot perihen devices

4) Bit

5) Primary Key

6) Algorithim

7) Flow Chart

8) Table Wizard

9) Design View

10) SIMS

Answer:

i think it would be 1) Weather Station

2) (word missing)

3) Robot perihen devices

4) Bit

5) Primary Key

6) Algorithim

7) Flow Chart

8) Table Wizard

9) Design View

10) SIMS

Explanation:

client, Warren, reports CMOS mismatch errors at startup. Further conversation with Warren reveals that he had forgotten the startup password he assigned in CMOS, and he had to clear all CMOS settings for his computer to complete a successful startup. Although he can now start his computer, he continues to observe CMOS errors each time he starts the computer. He replaced the CMOS battery, but the problem continues. Which component should you investigate first to resolve the problem

Answers

Answer:

The answer is "The system board jumper settings "

Explanation:

It must first look only at jumpers configurations of its computer motherboard, especially that runner used it to clear the CMOS configuration.

This Jumper is a couple of connecting points positioned also on computer CPU socket or connector card, electric contacts. It placed to jump on the pads, which completes a contact, once they set a jumper. It acts as a switch if an electrical grid is closed or opened.

How do I make my mobile number appears switched off to a specific number not with truecaller app...(vivo user)​

Answers

Answer:

Hello, there is no way you can make your mobile number appear switched off to a particular number unless you really switch it off.

However, you can set your phone to "Call Forwarding" on your Android device. What it would do is that when the person calls your number, he gets the message that you are unreachable.

Explanation:

Here's how to set Call Forwarding on your android

Open your phone dialerGo to your Phone Settings Click on Call SettingsSelect Call Forwarding (in some Androids, you'll have to select 'Calling Accounts' first)Select 'Always Forward', 'When Busy', 'When Unanswered' or 'When Unreachable'After selecting your preferred option, you can set the forwarding numberEnable the settings or click 'Ok'

An agile team used planning poker to estimate user stories. After all team members read a user story, the facilitator asks everyone to choose a card with estimated number of ideal days to complete a user story and then reveal the card. If estimates were widely different, the facilitator would immediately ask for re-estimates until all the estimates converge. What did the facilitator do wrong?
A. Participants used ideal days as the unit for the estimates.
B. Participants re-estimated immediately after everyone revealed their cards.
C. Cards were revealed when the process should have been anonymous.
D. The facilitator did nothing wrong and played by the rules.

Answers

Answer:

The answer is "Option B"

Explanation:

In the given-choices, the only option B is correct because by reassessing instantly, the team loses is its advantage of debating its projections and how it chose those assessments, and the wrong choice can be defined as follows:

In choice A, Mostly as a unit for the projections, respondents should not use the ideal days.  In choice C, Whenever the procedure should've been anonymous, no cards were released. In choice D, Its mediator was incorrect and the laws were followed.

learn to accept your mistakes even when you have done your ​

Answers

Answer:

besttttttttttttttttttttttt

Answer: done your best :)

Select the correct answer. In which area is composing for games similar to composing for movies?
A. royalties earned
B. success of song-based soundtracks
C. usage of audio software for mixing and editing
D. spotting sessions

Answers

I believe the answer is c, hope this helps

Answer:

c

Explanation:

cuz im jus right

A user has multiple web pages open and is using email. Which layer of the Transmission Control Protocol/Internet Protocol (TCP/IP) model is responsible for sorting the data to send email and web pages to the appropriate location

Answers

Answer: Transport layer

Explanation: The Transmission Control Protocol / Internet Protocol both combine to aid aod transmission of data through the internet. While the Transmission control protocol handles the establishment and Maintainace of network connection through applications , the Internet Protocol handles how the established data is being sent. The Transmission Control Protocol is forms a part of the transport layer which aids in the data transmission m ensuring that data is sent to the correct source. The transport layer is able to avoid errors as it ensures that established c is nnectio is maintained until data exchange is complete.

(Rocks Mineral
When limestone undergoes several changes, it forms
2
(marblelse
PA
For
the
are underground natural resources.
3. Metals are extracted from their
4. Molten rock inside the earth is called
5.
is used in making glass.
L
(magmalla
(Limestone/Sla
Yo
# Science-5​

Answers

Answer:

TENDRIAS QUE PONER LA PREGUNTA MEJOR

Explanation:

You find a list of websites that relate to your chosen topic and click on the first one. You ask yourself the three questions presented in this lesson to see if this site is reliable: 1) Who wrote it? There isn't an author listed anywhere that you can find. 2) What type of site is it? The site name ends in . 3) How current is the information? You see the site was updated yesterday. Is this website reliable and worth examining further? True or False?

Answers

Answer:

False

Explanation:

Information reliability is essential in production. sourcing information from a reliable source is base on several criteria. They are; the author of the resource file, the type of media platform holding the information, the frequent revision of the information, additional support or collaboration to publish public information, etc.

A government website ( with the site-address ending with a '.gov' ) which is concurrently revised by the institute, gives a piece genuine and reliable information, whereas a commercial website with no author and just recently revised or published, would be judged as an unreliable source of information

What are responsibilities of entrepreneurs? Check all of the boxes that apply.
to own businesses
to work for companies
to be responsible for employees
to be responsible to stakeholders

Answers

to own businesses and to be responsible for employees

The application layer process that sends mail uses __________. When a client sends email, the client process connects with a server process on well-known port __________. A client retrieves email, however, using one of two application layer protocols: ________ or ________. With ________, mail is downloaded from the server to the client and then deleted on the server. The server starts the __________ service by passively listening on TCP port __________ for client connection requests. However, when a client connects to ta server running __________, copies of the messages are downloaded to the client applications. The original messages are kept on the server until they are manually deleted.

Answers

Answer:

1. SMTP.

2. 25.

3. POP.

4. IMAP.

5. POP.

6. POP.

7. 110.

8. IMAP-capable server.

Explanation:

The application layer process that sends mail uses Simple Mail Transfer Protocol (SMTP). When a client sends email, the client process connects with a server process on well-known port 25. A client retrieves email, however, using one of two application layer protocols: Post Office Protocol (POP) or Internet Message Access Protocol (IMAP). With POP, mail is downloaded from the server to the client and then deleted on the server. The server starts the POP service by passively listening on TCP port 110 for client connection requests. However, when a client connects to a server running IMAP, copies of the messages are downloaded to the client applications. The original messages are kept on the server until they are manually deleted.

You administer your company's 100BaseTX Ethernet network. TCP/IP is the networking protocol used on the network. You want the routers on the network to send you notices when they have exceeded specified performance thresholds. Which protocol should you use to enable the routers to send the notices

Answers

Complete Question:

You administer your company's 100BaseTX Ethernet network. TCP/IP is the networking protocol used on the network. You want the routers on the network to send you notices when they have exceeded specified performance thresholds. Which protocol should you use to enable the routers to send the notices?

Group of answer choices

A. ARP

B. SMTP

C. SNMP

D. Telnet

Answer:

C. SNMP.

Explanation:

In this scenario, you administer your company's 100BaseTX Ethernet network. TCP/IP is the networking protocol used on the network. Also, you want the routers on the network to send you notices when they have exceeded specified performance thresholds. Hence, you should use the SNMP to enable the routers to send the notices.

SNMP is an acronym for simple network management protocol, which is a standardized application-layer protocol that is used for monitoring and organizing management information about network devices on either a wide area network (WAN) or local area network (LAN).

Basically, the SNMP helps to provide a common language for network devices such as switches, routers, printers, servers etc to share information with a network management system.

A simple network management protocol (SNMP) is part of the Transmission Control Protocol and Internet Protocol (TCP⁄IP) suite.

Other Questions
In Marigolds, what do the following lines from the passage mainly reveal about Lizabeth? Suddenly I was ashamed, and I did not like being ashamed. The child in me sulked and said it was all in fun, but the woman in me flinched at the thought of the malicious attack that I had led. Question 11 options: a) Lizabeth knows she is maturing because she is aware of the consequences of her actions. b) Lizabeth wishes that she and the neighborhood kids had gotten the chance to kill all of Miss Lotties marigolds. c) Getting older meant that now Lizabeth realizes what poverty her family lives in. d) Lizabeth feels more like a woman because she is bored by summer and ready to go back to school. Uniformitarianism means:________. a. neither the scientific past nor the future can be predicted because physical laws change over time. b. earth's surface, including the oceans and continents, has always been the same and will always remain unchanged. c. geologic processes on Earth all operate at roughly the same speed, which has not changed over time. d. geologic processes that operate today operated in the past at about the same speed. write the slope- intercept form of the equation for the liney=-8/7x-3/2y=7/8x-3/2y=-7/8x-3/2y=-3/2x+7/8 An insect 1.1 mm tall is placed 1.0 mm beyond the focal point of the objective lens of a compound microscope. The objective lens has a focal length of 14 mm , the eyepiece a focal length of 21 mm . A) Where is the image formed by the objective lens? Give your answer as the distance from the image to the lens. Express your answer using two significant figures. B) How tall is the image mentioned in part A? Express your answer using two significant figures. C) If you want to place the eyepiece so that the image it produces is at infinity, how far should this lens be from the image produced by the objective lens? Express your answer using two significant figures. D) Under the conditions of part C, find the overall magnification of the microscope. Express your answer using two significant figures. ABC issued callable bonds on January 1, 2018. ABC's accountant has projected the following amortization schedule from issuance until maturity: Date Cash Paid Interest Expense Increase in Carrying Value Carrying Value 1/1/2018 $194,758 6/30/2018 $7,000 $7,790 $790 195,548 12/31/2018 7,000 7,822 822 196,370 6/30/2019 7,000 7,855 855 197,225 12/31/2019 7,000 7,889 889 198,114 6/30/2020 7,000 7,925 925 199,039 12/31/2020 7,000 7,961 961 200,000 ABC buys back the bonds for $196,000 immediately after the interest payment on 12/31/2018 and retires them. What gain or loss, if any, would ABC record on this date (use a minus sign in front of the number if it is a loss)? Given that p=x^2-y^2/x^2+xy I. Express p in the simplest formii. Find the value of p, if x=-4 and y=-6 Match each excerpt from Emily Dickinson's "Because I Could Not Stop for Death" to the type of rhyme used. The fish will not quit flapping its skinny fins. The Dews drew quivering and chill Because I could not stop for Death He kindly stopped for me The Carriage held but just Ourselves And Immortality. Which of these means of assessing candidates generally has the lowest correlation with subsequent performance?A. Cognitive ability tests. B. Job knowledge tests. C. Unstructured interviews. Help please and thanks Find the mode for the data set 18 24 24 24 25 37 37 46 please help me answer this in variable terms and constant terms -5.6x + 7 + 24y - 9 Para comer dulces en mi fiesta es necesario _____. abrir regalos romper la piata tomar fotos cuantos son 4 elevado a 4??? When the orientations of individuals and a social movement organization connect in a way that there is a complementary set of interests, beliefs, goals, activities, and ideologies in the movement, we have what David Snow calls The literature value for the Ksp of Ca(OH)2 at 25 C is 4.68E6. Imagine you ran the experiment and got a calculated value for Ksp which was too high. Select all of the possible circumstances which would cause this result. A. The HCl was more concentrated than the labeled molarity (0.0500 M). B. The Ca[OH]2 solution may have been supersaturated. C. The HCl was less concentrated than the labeled molarity (0.0500 M). D. The Ca[OH]2 solution may have been unsaturated. E. The titration flask may have not been clean and had a residue of a basic solution. F. The titration flask may have not been clean and had a residue of an acidic solution. Pharoah Company had the following two transactions related to its delivery truck. 1. Paid $280 for an oil change. 2. Paid $600 to install a special gear unit, which increases the operating efficiency of the truck.Required:Prepare Pharoah's journal entries to record these two transactions. Last year, Leila had $30,000 to invest. She invested some of it in an account that paid 6% simple interest per year, and she invested the rest in an account that paid 5% simple interest per year. After one year, she received a total of $1580 in interest. How much did she invest in each account? Cloning to produce embryonic stem cells is called A) regenerative cloning. B) transplantational cloning. C) reproductive cloning. D) therapeutic cloning. E) dedifferentiation. Allison bought jelly beans to share with her friends. She bought pounds of blueberry jelly beans and pounds of lemon jelly beans. If she gave pounds of jelly beans away to her friends, how many pounds of jelly beans does Allison have left? 12. What does this sign mean? A. Slow down, be ready to stop if needed to let cross traffic pass before you proceed. B. Stop and let traffic behind you go first. C. Yield the right-of-way to traffic making left turns at the intersection. D. All of the above