We can work on Codes by greedy Algorithms -Python

Provide 4 codes by greedy Algorithms -Python with the explanation of the codes.
If there is a delivery guy who can deliver 100 can of cola from his mart every time he go out and there is 7 orders:
1- 5cans
2- 10 cans
3- 20 cans
4- 60 cans
5- 50 cans
6- 40 cans
7- 30 cans
we gonna deliver depends on 2 options the 1st the quantity or 2nd the distance
1st : A-big quantity. B-less quantity.
2nd : A-nearest. B-far.
so if he gonna deliver depend in 1st option A so he gonna take 100 cans to number 4 first after that 6 and went back to his mart after that start from 5 – 7 – 3 and go back to his mart like this.

but if he deliver depend on 1st option B he gonna start from number 1 – 2 – 3 – 7 etc

then
if we gonna deliver depend in 2nd option A so we gonna start from 1 – 4 – 7 and he go back to the mart after that he start from 2 – 3 – 5 etc.

but if we gonna deliver depend on 2nd option B so we gonna start from 7 – 6 – 3 – 2 and he go back to the mart after that start from 5 -1 and he go back etc.

I want new coding not copy please.

Comments from Customer
The idea should be as this:
We have points (demanders) each point has an address which is (x,y), and each point demands an amount of something (for example: boxes of water). The addresses for these points are created randomly when I run the code.
The driver address is (0 , 0) and he fills the truck with boxes but the amount of boxes should be entered by the user after run the code, then driver will start delivering the boxes to the points but he will start from the lowest distance between his point and the next nearest point. After he fulfilled the first point he will again count the distance and choose the nearest point from his current place to that point, but if that point demand 200 boxes and he has 190 boxes after previous delivery, then he has to go back to point (0,0) to fill the truck (by the user) then deliver to the nearest point from his current point (0,0).
As mentioned above, addresses must be created randomly when I run the code, but I should have the option to stop creating new random addresses and use the same addresses that created on the first run when I run the code again (in case if i want so).

Check the link below that have the code on zip file, you need to check it and modify it in order to achieve the explained requirements above.
https://drive.google.com/folderview?id=1GMDfrxEQm6r8Jk5x_ucLtRQ_ZGXrGdQd

Sample Solution

Streets are “flawlessness”, individuals have honorable ethics and qualities, kids have gone through similar instruction, the houses are completely organized along the street, and the design is actually the equivalent. The entire network has a lovely nursery. Wrongdoing It appears to be a network you need to leave. The Colby people group is a lovely network as it is loaded up with satisfaction, structure and great good requirements. In any case, how would you bExpansion of the event of E. coli in the network As a human administrations head in the event of disease, I will take all essential measures to speak with youngsters, guardians and clinical staff in a convenient and powerful manner take. My main concern is to segregate illnesses however much as could be expected and to permit those effectively contaminated to get the treatment they need (Graham-Clay, 2005). In the event that illnesses, for example, Escherichia coli happen in a neighborhood secondary school, we will promptly educate the clinical staff. Escherichia coli diseases from food cause genuine ailment, which can prompt genuine ailment and once in a while passing. Since treatment is restricted, avoidance by overseeing food handling is critical to control the event of these maladies. Be that as it may, E. coli is profoundly flexible, versatile, can convey and move DNA, makes new strains and is impervious to current handling and control techniques. Further exploration is required around there before unlimited authority is acquired. Intestinal hemorrhagic E. coli is a perceived infection because of the event of a financially accessible inexpensive food burger. Side effects of bacterial contamination by E. coli incorporate extreme looseness of the bowels, typically blood, stomach agony and heaving. Youngsters younger than 4 are bound to build up this sickness. Related nourishments incorporate uncooked meat, unsterilized milk, juice. Polluted water can be brought about by fecal defilement of individuals who have microorganisms. Indeed, even disinfectants utilized in certain items will be unable to viably pulverize microorganisms. Consequently, it is suggested that individuals with handicaps in the insusceptible framework and other high-hazard bunches abstain from eating sprouts. Chloride-treated fledglings are still connected with the improvement of E. coli and Salmonella (Taormina and Beuchat 1999). Treatment incorporates steady consideration and checking of renal capacity (CDC, 2001). Much of the time, antibodies are contraindicated. The final product of kidney disappointment might be passing MRSA disease was initially restricted to emergency clinics and exceptional nursing home, particularly individuals who are feeble in the resistant framework. Since the 1980s, network type cases and pestilences have additionally been accounted for. The cases acquired in the network are cases not identified with hospitalization or dialysis, medical procedure or catheterization in the previous year. These diseases ordinarily happen in other solid individuals and are probably going to be restricted to skin contaminations. Nonetheless, over the previous decade, the expanded pathogenicity of MRSA microbes has brought about more genuine, at times lethal network contaminations. As of late, MRSA has been found in eatable creatures, and a few flare-ups are “food instigated” or foodborne. In one such flare-up, contaminated individuals created normal manifestations of foodborne sicknesses, for example, retching and stomach cramps.ecome an individual from this network? Jonas lives in a network that is considered “great”. At the end of the day, there is no war, torment, distress, outrage. So as to accomplish this “flawlessness” his locale is viewed as destructive and “overlooks” the memory of the things that put a weight on each history on his shoulder, “recipient” that was carrying on with an ideal life There was. By recording all recollections of the network, the beneficiary permits individuals to carry on with a serene life. Be that as it may, thusly, the network likewise loses all the capacity to encounter genuine feelings, including positive sentiments. It has additionally lost its capacity to develop, change and better. Individuals have lost their rich lives for quite a while, and individuals have lost the capacity to see hues and tune in to music. Basically, individuals lose all the opportunity of character and genuine bliss, however they don’t feel it. Envision a network of 2,500 km from Brisbane and 3,600 km from Canberra. How about we envision this network thinking in a totally unexpected manner in comparison to we are acclimated with and loaded with living individuals. In this network of ages back we should envision that the youngsters were detracted from their families. They are said to never talk their native language, they should do what they state. For this situation, they are rebuffed by savagery as a result of their disappointment. This people group exists in numerous networks, this is their authentic story>

Is this question part of your assignment?

Place order