SlideShare a Scribd company logo
0/1 Knapsack Problem and Optimal
merge pattern
The Problem:
We have a knapsack to be filled with enlisted
objects of given weight and benefit ,total weight=7
find the optimal merge pattern to do so .
WEIGHT: 1 3 4 5
BENEFIT: 1 4 5 7
Approaches to solve the problem
● The Greedy approach:Make the locally optimal choice
at each stage with the hope of finding a global
optimum.
● The brute-force approach:It is a trial and error method
used to find global optimum.(i.e Compute all possible
combinations and search for optimal)
● The Dynamic Programming approach:Formula is to
break a large problem down into small sub steps so
that, at any given stage, optimal solutions are known
to sub-problems.
● The 4th approach: Discussed at the end of
presentation.
Benefit Weight 0 1 2 3 4 5 6 7
1 1
4 3
5 4
7 5
If total weight is zero , no matter what i have the max benefit would still be zero.
Benefit Weight 0 1 2 3 4 5 6 7
1 1 0
4 3 0
5 4 0
7 5 0
Even though the total weight is high all i
have is 1 item so max is 1
Benefit Weight 0 1 2 3 4 5 6 7
1 1 0 1 1 1 1 1 1 1
4 3 0
5 4 0
7 5 0
Max(4+1 or 1),hence 5 max(4+0 or 1), hence 4
Benefit Weight 0 1 2 3 4 5 6 7
1 1 0 1 1 1 1 1 1 1
4 3 0 1 1 4 5 5 5 5
5 4 0 1 1 4
7 5 0
Max(5+4 or 5), hence 9 max(7+1 or 6),hence 8
Max(7+1 or 9),hence 9
Benefit Weight 0 1 2 3 4 5 6 7
1 1 0 1 1 1 1 1 1 1
4 3 0 1 1 4 5 5 5 5
5 4 0 1 1 4 5 6 6 9
7 5 0 1 1 4 5 7 8 9
The 4th approach :solves problem through machine
learning(i.e)study of pattern recognition and
computational learning theory.
Benefit Weight 0 1 2 3 4 5 6 7
1 1 0 1 1 1 1 1 1 1
4 3 0 1 1 4 5 5 5 5
5 4 0 1 1 4 5 6 6 9
7 5 0 1 1 4 5 7 8 9
Thank you !

More Related Content

Similar to 0/1Knapsack

Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptGreedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.ppt
Ruchika Sinha
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
Md. Shafiuzzaman Hira
 
Fractional knapsack problem
Fractional knapsack problemFractional knapsack problem
Fractional knapsack problem
Learning Courses Online
 
Absolute Value
Absolute ValueAbsolute Value
Absolute Value
DC Marie Lagura
 
Introduction to Optimization revised.ppt
Introduction to Optimization revised.pptIntroduction to Optimization revised.ppt
Introduction to Optimization revised.ppt
JahnaviGautam
 
April 12
April 12April 12
April 12
khyps13
 
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
International Islamic University
 
Lessons 1 8 review packet
Lessons 1 8 review packetLessons 1 8 review packet
Lessons 1 8 review packet
mlabuski
 
7_Genetic_knapsack.ppt
7_Genetic_knapsack.ppt7_Genetic_knapsack.ppt
7_Genetic_knapsack.ppt
ImXaib
 
Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...
Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...
Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...
Codiax
 
12 Greeddy Method
12 Greeddy Method12 Greeddy Method
12 Greeddy Method
Andres Mendez-Vazquez
 
G6 m4-a-lesson 4-t
G6 m4-a-lesson 4-tG6 m4-a-lesson 4-t
G6 m4-a-lesson 4-t
mlabuski
 
Poscat seminar 6
Poscat seminar 6Poscat seminar 6
Poscat seminar 6
Hyungyu Shin
 
greedy method.pdf
greedy method.pdfgreedy method.pdf
greedy method.pdf
deepakjoshi29912
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
sandeep54552
 
Assure
AssureAssure
Module 3_DAA (2).pptx
Module 3_DAA (2).pptxModule 3_DAA (2).pptx
Module 3_DAA (2).pptx
AnkitaVerma776806
 
Assignment
AssignmentAssignment
Assignment
Neha Gupta
 
Math Lit Lessons 2.5 & 2.6
Math Lit Lessons 2.5 & 2.6Math Lit Lessons 2.5 & 2.6
Math Lit Lessons 2.5 & 2.6
kathleenalmy
 
Mat102 20140826 - solving 2-step linear inequations
Mat102   20140826 - solving 2-step linear inequationsMat102   20140826 - solving 2-step linear inequations
Mat102 20140826 - solving 2-step linear inequations
cheeky88
 

Similar to 0/1Knapsack (20)

Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptGreedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.ppt
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Fractional knapsack problem
Fractional knapsack problemFractional knapsack problem
Fractional knapsack problem
 
Absolute Value
Absolute ValueAbsolute Value
Absolute Value
 
Introduction to Optimization revised.ppt
Introduction to Optimization revised.pptIntroduction to Optimization revised.ppt
Introduction to Optimization revised.ppt
 
April 12
April 12April 12
April 12
 
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
 
Lessons 1 8 review packet
Lessons 1 8 review packetLessons 1 8 review packet
Lessons 1 8 review packet
 
7_Genetic_knapsack.ppt
7_Genetic_knapsack.ppt7_Genetic_knapsack.ppt
7_Genetic_knapsack.ppt
 
Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...
Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...
Sean Holden (University of Cambridge) - Proving Theorems_ Still A Major Test ...
 
12 Greeddy Method
12 Greeddy Method12 Greeddy Method
12 Greeddy Method
 
G6 m4-a-lesson 4-t
G6 m4-a-lesson 4-tG6 m4-a-lesson 4-t
G6 m4-a-lesson 4-t
 
Poscat seminar 6
Poscat seminar 6Poscat seminar 6
Poscat seminar 6
 
greedy method.pdf
greedy method.pdfgreedy method.pdf
greedy method.pdf
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Assure
AssureAssure
Assure
 
Module 3_DAA (2).pptx
Module 3_DAA (2).pptxModule 3_DAA (2).pptx
Module 3_DAA (2).pptx
 
Assignment
AssignmentAssignment
Assignment
 
Math Lit Lessons 2.5 & 2.6
Math Lit Lessons 2.5 & 2.6Math Lit Lessons 2.5 & 2.6
Math Lit Lessons 2.5 & 2.6
 
Mat102 20140826 - solving 2-step linear inequations
Mat102   20140826 - solving 2-step linear inequationsMat102   20140826 - solving 2-step linear inequations
Mat102 20140826 - solving 2-step linear inequations
 

More from Pradhan Rishi Sharma

JAVA Threads explained
JAVA Threads explained JAVA Threads explained
JAVA Threads explained
Pradhan Rishi Sharma
 
JAVA Collection and generics
JAVA Collection and genericsJAVA Collection and generics
JAVA Collection and generics
Pradhan Rishi Sharma
 
Plasma TFT
Plasma TFTPlasma TFT
Inheritance
InheritanceInheritance
Inheritance
InheritanceInheritance
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
Pradhan Rishi Sharma
 
Aids Awareness , Nss , Healthcare !
Aids Awareness , Nss , Healthcare !Aids Awareness , Nss , Healthcare !
Aids Awareness , Nss , Healthcare !
Pradhan Rishi Sharma
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
Pradhan Rishi Sharma
 
Optical fiber
Optical fiberOptical fiber
Optical fiber
Pradhan Rishi Sharma
 
Optical Fiber
Optical Fiber Optical Fiber
Optical Fiber
Pradhan Rishi Sharma
 
Algorithms
AlgorithmsAlgorithms
Algorithms
AlgorithmsAlgorithms
Algorithms
AlgorithmsAlgorithms
Algorithms
AlgorithmsAlgorithms
Lasers
Lasers Lasers
Solar Energy
Solar Energy Solar Energy
Solar Energy
Pradhan Rishi Sharma
 
Solar Energy
Solar EnergySolar Energy
Solar Energy
Pradhan Rishi Sharma
 
Solar Energy
Solar Energy Solar Energy
Solar Energy
Pradhan Rishi Sharma
 
Beam , support and reaction
Beam , support and reaction Beam , support and reaction
Beam , support and reaction
Pradhan Rishi Sharma
 
Beam , support and reaction
Beam , support and reaction Beam , support and reaction
Beam , support and reaction
Pradhan Rishi Sharma
 

More from Pradhan Rishi Sharma (20)

JAVA Threads explained
JAVA Threads explained JAVA Threads explained
JAVA Threads explained
 
JAVA Collection and generics
JAVA Collection and genericsJAVA Collection and generics
JAVA Collection and generics
 
Plasma TFT
Plasma TFTPlasma TFT
Plasma TFT
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Aids Awareness , Nss , Healthcare !
Aids Awareness , Nss , Healthcare !Aids Awareness , Nss , Healthcare !
Aids Awareness , Nss , Healthcare !
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Optical fiber
Optical fiberOptical fiber
Optical fiber
 
Optical Fiber
Optical Fiber Optical Fiber
Optical Fiber
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Lasers
Lasers Lasers
Lasers
 
Solar Energy
Solar Energy Solar Energy
Solar Energy
 
Solar Energy
Solar EnergySolar Energy
Solar Energy
 
Solar Energy
Solar Energy Solar Energy
Solar Energy
 
Beam , support and reaction
Beam , support and reaction Beam , support and reaction
Beam , support and reaction
 
Beam , support and reaction
Beam , support and reaction Beam , support and reaction
Beam , support and reaction
 

Recently uploaded

Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 

Recently uploaded (20)

Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 

0/1Knapsack

  • 1. 0/1 Knapsack Problem and Optimal merge pattern
  • 2. The Problem: We have a knapsack to be filled with enlisted objects of given weight and benefit ,total weight=7 find the optimal merge pattern to do so . WEIGHT: 1 3 4 5 BENEFIT: 1 4 5 7
  • 3. Approaches to solve the problem ● The Greedy approach:Make the locally optimal choice at each stage with the hope of finding a global optimum. ● The brute-force approach:It is a trial and error method used to find global optimum.(i.e Compute all possible combinations and search for optimal) ● The Dynamic Programming approach:Formula is to break a large problem down into small sub steps so that, at any given stage, optimal solutions are known to sub-problems. ● The 4th approach: Discussed at the end of presentation.
  • 4. Benefit Weight 0 1 2 3 4 5 6 7 1 1 4 3 5 4 7 5
  • 5. If total weight is zero , no matter what i have the max benefit would still be zero. Benefit Weight 0 1 2 3 4 5 6 7 1 1 0 4 3 0 5 4 0 7 5 0
  • 6. Even though the total weight is high all i have is 1 item so max is 1 Benefit Weight 0 1 2 3 4 5 6 7 1 1 0 1 1 1 1 1 1 1 4 3 0 5 4 0 7 5 0
  • 7. Max(4+1 or 1),hence 5 max(4+0 or 1), hence 4 Benefit Weight 0 1 2 3 4 5 6 7 1 1 0 1 1 1 1 1 1 1 4 3 0 1 1 4 5 5 5 5 5 4 0 1 1 4 7 5 0
  • 8. Max(5+4 or 5), hence 9 max(7+1 or 6),hence 8 Max(7+1 or 9),hence 9 Benefit Weight 0 1 2 3 4 5 6 7 1 1 0 1 1 1 1 1 1 1 4 3 0 1 1 4 5 5 5 5 5 4 0 1 1 4 5 6 6 9 7 5 0 1 1 4 5 7 8 9
  • 9. The 4th approach :solves problem through machine learning(i.e)study of pattern recognition and computational learning theory. Benefit Weight 0 1 2 3 4 5 6 7 1 1 0 1 1 1 1 1 1 1 4 3 0 1 1 4 5 5 5 5 5 4 0 1 1 4 5 6 6 9 7 5 0 1 1 4 5 7 8 9