SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
4. GreEdy Algorithms. The rational knapsack problem can be framed as a container that can
hold a weight capacity C together with a list of provisions pi,i=0,,n to be placed in the container.
Each provision has a corresponding weight wi and value vi. The provisions are to be placed into
the container without exceeding the capacity C and such that the sum of values is maximized. (a)
(5 pts) Describe a greedy heuristics that could be used to fill the container. (b) ( 5 pts) Assume
that fractional amounts 0f1 of each provision can be used. Describe an optimal filling strategy
and its time complexity. (c) (5 pts) Now assume an all or nothing (0 or 1) approach must be used.
Describe an algorithm, and its complexity, that is guaranteed to find the maximum sum of values
without exceeding the capacity C.

Contenu connexe

Plus de amberteleshoppe

4. Inflation and interest rates The following table shows the avenge .pdf
 4. Inflation and interest rates The following table shows the avenge .pdf 4. Inflation and interest rates The following table shows the avenge .pdf
4. Inflation and interest rates The following table shows the avenge .pdfamberteleshoppe
 
4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
 4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf 4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdfamberteleshoppe
 
4. Implement a class, Car, which represents a car and can simulate it.pdf
 4. Implement a class, Car, which represents a car and can simulate it.pdf 4. Implement a class, Car, which represents a car and can simulate it.pdf
4. Implement a class, Car, which represents a car and can simulate it.pdfamberteleshoppe
 
4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
 4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf 4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdfamberteleshoppe
 
4. If there were n arrivals of a Poisson process with Sn being th.pdf
 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf
4. If there were n arrivals of a Poisson process with Sn being th.pdfamberteleshoppe
 
4. How do you go back to the standardcanonical form for a LP when a.pdf
 4. How do you go back to the standardcanonical form for a LP when a.pdf 4. How do you go back to the standardcanonical form for a LP when a.pdf
4. How do you go back to the standardcanonical form for a LP when a.pdfamberteleshoppe
 
4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
 4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf 4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdfamberteleshoppe
 
4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
 4. If we wanted to store Bill Gates net worth accurately to the penn.pdf 4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
4. If we wanted to store Bill Gates net worth accurately to the penn.pdfamberteleshoppe
 
4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
 4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf 4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdfamberteleshoppe
 
4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
 4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf 4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdfamberteleshoppe
 
4. Find the dimension and a basis representation of the subspace H=sp.pdf
 4. Find the dimension and a basis representation of the subspace H=sp.pdf 4. Find the dimension and a basis representation of the subspace H=sp.pdf
4. Find the dimension and a basis representation of the subspace H=sp.pdfamberteleshoppe
 
4. Explain how salt regulation is related to water regulation. How do.pdf
 4. Explain how salt regulation is related to water regulation. How do.pdf 4. Explain how salt regulation is related to water regulation. How do.pdf
4. Explain how salt regulation is related to water regulation. How do.pdfamberteleshoppe
 
4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
 4. Fill in the blanks with one of the following terms Deletion; Inve.pdf 4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
4. Fill in the blanks with one of the following terms Deletion; Inve.pdfamberteleshoppe
 
4. Details about shareholders equity and dilutive securities CHAP.pdf
 4. Details about shareholders equity and dilutive securities CHAP.pdf 4. Details about shareholders equity and dilutive securities CHAP.pdf
4. Details about shareholders equity and dilutive securities CHAP.pdfamberteleshoppe
 
4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
 4. Consider two unitary transformations II and UCNOT. What is the hig.pdf 4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
4. Consider two unitary transformations II and UCNOT. What is the hig.pdfamberteleshoppe
 
4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
 4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf 4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdfamberteleshoppe
 
4. Consider a finite set X and a rational preference relation on X. .pdf
 4. Consider a finite set X and a rational preference relation  on X. .pdf 4. Consider a finite set X and a rational preference relation  on X. .pdf
4. Consider a finite set X and a rational preference relation on X. .pdfamberteleshoppe
 
4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
 4. Consider two qubit states 0 and =(01)2 generated with probability.pdf 4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
4. Consider two qubit states 0 and =(01)2 generated with probability.pdfamberteleshoppe
 
4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
 4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf 4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdfamberteleshoppe
 
4. Case study. - As part of a formal risk assessment of the main file.pdf
 4. Case study. - As part of a formal risk assessment of the main file.pdf 4. Case study. - As part of a formal risk assessment of the main file.pdf
4. Case study. - As part of a formal risk assessment of the main file.pdfamberteleshoppe
 

Plus de amberteleshoppe (20)

4. Inflation and interest rates The following table shows the avenge .pdf
 4. Inflation and interest rates The following table shows the avenge .pdf 4. Inflation and interest rates The following table shows the avenge .pdf
4. Inflation and interest rates The following table shows the avenge .pdf
 
4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
 4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf 4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
 
4. Implement a class, Car, which represents a car and can simulate it.pdf
 4. Implement a class, Car, which represents a car and can simulate it.pdf 4. Implement a class, Car, which represents a car and can simulate it.pdf
4. Implement a class, Car, which represents a car and can simulate it.pdf
 
4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
 4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf 4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
 
4. If there were n arrivals of a Poisson process with Sn being th.pdf
 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf
4. If there were n arrivals of a Poisson process with Sn being th.pdf
 
4. How do you go back to the standardcanonical form for a LP when a.pdf
 4. How do you go back to the standardcanonical form for a LP when a.pdf 4. How do you go back to the standardcanonical form for a LP when a.pdf
4. How do you go back to the standardcanonical form for a LP when a.pdf
 
4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
 4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf 4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
 
4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
 4. If we wanted to store Bill Gates net worth accurately to the penn.pdf 4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
 
4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
 4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf 4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
 
4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
 4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf 4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
 
4. Find the dimension and a basis representation of the subspace H=sp.pdf
 4. Find the dimension and a basis representation of the subspace H=sp.pdf 4. Find the dimension and a basis representation of the subspace H=sp.pdf
4. Find the dimension and a basis representation of the subspace H=sp.pdf
 
4. Explain how salt regulation is related to water regulation. How do.pdf
 4. Explain how salt regulation is related to water regulation. How do.pdf 4. Explain how salt regulation is related to water regulation. How do.pdf
4. Explain how salt regulation is related to water regulation. How do.pdf
 
4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
 4. Fill in the blanks with one of the following terms Deletion; Inve.pdf 4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
 
4. Details about shareholders equity and dilutive securities CHAP.pdf
 4. Details about shareholders equity and dilutive securities CHAP.pdf 4. Details about shareholders equity and dilutive securities CHAP.pdf
4. Details about shareholders equity and dilutive securities CHAP.pdf
 
4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
 4. Consider two unitary transformations II and UCNOT. What is the hig.pdf 4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
 
4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
 4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf 4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
 
4. Consider a finite set X and a rational preference relation on X. .pdf
 4. Consider a finite set X and a rational preference relation  on X. .pdf 4. Consider a finite set X and a rational preference relation  on X. .pdf
4. Consider a finite set X and a rational preference relation on X. .pdf
 
4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
 4. Consider two qubit states 0 and =(01)2 generated with probability.pdf 4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
 
4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
 4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf 4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
 
4. Case study. - As part of a formal risk assessment of the main file.pdf
 4. Case study. - As part of a formal risk assessment of the main file.pdf 4. Case study. - As part of a formal risk assessment of the main file.pdf
4. Case study. - As part of a formal risk assessment of the main file.pdf
 

Dernier

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Dernier (20)

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 

4. GreEdy Algorithms. The rational knapsack problem can be framed as .pdf

  • 1. 4. GreEdy Algorithms. The rational knapsack problem can be framed as a container that can hold a weight capacity C together with a list of provisions pi,i=0,,n to be placed in the container. Each provision has a corresponding weight wi and value vi. The provisions are to be placed into the container without exceeding the capacity C and such that the sum of values is maximized. (a) (5 pts) Describe a greedy heuristics that could be used to fill the container. (b) ( 5 pts) Assume that fractional amounts 0f1 of each provision can be used. Describe an optimal filling strategy and its time complexity. (c) (5 pts) Now assume an all or nothing (0 or 1) approach must be used. Describe an algorithm, and its complexity, that is guaranteed to find the maximum sum of values without exceeding the capacity C.