SlideShare a Scribd company logo
Solving 0-1 knapsack problems 
based on amoeboid organism 
algorithm 
Xiaoge Zhang, Shiyan Huang, Yong Hu, Yajuan 
Zhang, Sankaran Mahadevan, Yong Deng 
Juan José Miramontes Sandoval 
Modelos de Sistemas de Software 
1
Tabla de Contenido 
• 0-1 Knapsack problem 
• Amoeboid organism 
• Proposed method 
▫ Example with 4 items 
▫ Example with 8 items 
• Experimental results 
• Conclusiones 
2
0-1 Knapsack Problem 
Given a set of items, each with 
a weight and a value, determine 
the count of each item to 
include in a collection so that 
the total weight is less than or 
equal to a given limit and the 
total value is as large as 
possible. 
3 
K. Pepper. Nakagaki. (2007). Knapsack Taken from: 
http://en.wikipedia.org/wiki/Knapsack_problem 
Combinatorial optimization problem
0-1 Knapsack Problem 
Mathematical model: 
4
0-1 Knapsack Problem 
This model is widely used in real-life applications: 
• Capital budgeting problems 
• Loading problems 
• Resource allocation 
• Project selection problems 
and can be found as a sub problem of other more 
general models 
5
Amoeboid organism 
6 
P. Monzon. Alimentación Ameba. Taken 
from: http://vidadeamebas.blogspot.mx/ 
• Is a type of cell or organism 
which has the ability to alter 
its shape. 
• Lacking cell wall. 
• Capture food through 
movement.
Proposed method 
• Recently, it is shown that an 
amoeboid organism can find the 
shortest path between two 
selected points in a labyrinth. 
A new method using the amoeboid organism 
model is propose to solve the 0-1 knapsack 
problem 
7 
T. Nakagaki. (2001). Tracking 
the shortest path in a maze by 
the plasmodium. 
Effective method to solve optimization problems
Proposed method 
8
Proposed method 
Example: 
Knapsack capacity: W = 6 
vj is the value of item j 
wj is the weight of item j 
9 
j 1 2 3 4 
vj 40 15 20 10 
wj 4 2 3 1
Proposed method 
1.- Converting the 0-1 
knapsack problem as the 
longest path problem: 
10
2.- Transforming the longest path problem into 
the shortest path problem: 
11 
Proposed method
Proposed method 
2.- Transforming the longest 
path problem into the 
shortest path problem: 
12
3.- Finding the shortest path based on the amoeboid 
organism algorithm: 
Step 1. Remove the edges with conductivity equal to zero. 
Step 2. Calculate the pressure of each node using each node’s 
current conductivity and length. 
Step 3. Use the pressure of each node obtained from step 2 to 
calculate each node’s conductivity. 
Step 4. Judge whether each edge’s conductivity is 1, if not, go to 
step 5; otherwise go to step 7. 
Step 5. According to the current flux and conductivity, calculate 
the flux and conductivity next time. 
Step 6. Return to step 1. 
Step 7. Get the result and the algorithm is over. 
13 
Proposed method
• According to the network converting algorithm 
shown previously, there are 퐖 + ퟏ ∗ 풏 + ퟐ 
items in the converted network. 
• For the amoeboid organism algorithm, 
regardless of the algorithm’s outer iterations, its 
main time is spent on solving the linear 
equations and its complexity is 푶(풏ퟑ) 
Then, the complexity of the of the proposed 
method is: 퐎 ( 푾 + ퟏ ∗ 풏 + ퟐ)ퟑ = 푶(풏ퟑ) 
14 
Complexity of the proposed method
Proposed method 
Example with 8 items: 
Knapsack capacity: W = 8 
vj is the value of item j 
wj is the weight of item j 
15 
j 1 2 3 4 5 6 7 8 
vj 83 14 54 79 72 52 48 62 
wj 3 2 3 2 1 2 2 3
1.- Converting the 0-1 
knapsack problem as the 
longest path problem: 
16
17 
2.- Transforming the 
longest path problem into 
the shortest path problem:
18 
3.- Applying the 
amoeboid organism 
algorithm:
Experimental results 
19 
Result of knapsack problem with 8 Items: 
J 1 2 3 4 5 6 7 8 
vj 83 14 54 79 72 52 48 62 
wj 3 2 3 2 1 2 2 3 
    
Six test problems with different dimensions are used to study 
the performance of the proposed method:
Conclusions 
20 
• Based on amoeboid organism algorithm and the 
network converting algorithm, a new method is 
proposed to solve classical 0-1 knapsack 
problems. 
• Using benchmark problems to test the amoeboid 
organism algorithm, the computational results 
demonstrate the efficiency of the presented 
approach.
References 
• Zhang, X., Huang, S., Hu, Y., Zhang, Y., Mahadevan, S., 
& Deng, Y. (2013). Solving 0-1 knapsack problems based 
on amoeboid organism algorithm. Applied Mathematics 
and Computation, 219(19), 9959–9970. 
doi:10.1016/j.amc.2013.04.023 
21

More Related Content

PDF
Adaptive Resonance Theory (ART)
PPT
Artificial neural network
PDF
Artificial Neural Networks Lect3: Neural Network Learning rules
PDF
Introduction to batch normalization
PPTX
META-LEARNING.pptx
PPTX
PPTX
Ensemble Method (Bagging Boosting)
PPTX
03 Single layer Perception Classifier
Adaptive Resonance Theory (ART)
Artificial neural network
Artificial Neural Networks Lect3: Neural Network Learning rules
Introduction to batch normalization
META-LEARNING.pptx
Ensemble Method (Bagging Boosting)
03 Single layer Perception Classifier

What's hot (20)

PPTX
Feed forward ,back propagation,gradient descent
PPTX
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
PPT
Counterpropagation NETWORK
PPTX
Machine learning clustering
PPTX
Presentation on K-Means Clustering
PDF
Quantum Computing and Quantum Supremacy at Google
PDF
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
PDF
Linear models for classification
PPTX
Meta-Learning Presentation
PDF
Performance Metrics for Machine Learning Algorithms
PDF
L2. Evaluating Machine Learning Algorithms I
PPSX
Perceptron (neural network)
PPT
Quantum artificial intelligence
PPT
Intro to Deep learning - Autoencoders
PPTX
Hierarchical clustering.pptx
PDF
Optimization for Deep Learning
PPTX
HOPFIELD NETWORK
PPTX
Ensemble methods in machine learning
PDF
Classification Based Machine Learning Algorithms
PPTX
CNN Tutorial
Feed forward ,back propagation,gradient descent
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
Counterpropagation NETWORK
Machine learning clustering
Presentation on K-Means Clustering
Quantum Computing and Quantum Supremacy at Google
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Linear models for classification
Meta-Learning Presentation
Performance Metrics for Machine Learning Algorithms
L2. Evaluating Machine Learning Algorithms I
Perceptron (neural network)
Quantum artificial intelligence
Intro to Deep learning - Autoencoders
Hierarchical clustering.pptx
Optimization for Deep Learning
HOPFIELD NETWORK
Ensemble methods in machine learning
Classification Based Machine Learning Algorithms
CNN Tutorial
Ad

Similar to Solving 0-1 knapsack problems based on amoeboid organism algorithm (20)

PPTX
Knapsack problem using greedy approach
PPTX
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
PPT
Greedy with Task Scheduling Algorithm.ppt
PPT
Greedy with Task Scheduling Algorithm.ppt
PPT
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
PPT
Knapsack problem using fixed tuple
PPTX
Knapsack Problem (DP & GREEDY)
PPTX
Mba i qt unit-1.2_transportation, assignment and transshipment problems
PPT
Greedy
PPTX
Applied Algorithms Introduction to Algorithms.pptx
PDF
module3_Greedymethod_2022.pdf
PPTX
Dynamic programming
PDF
12 Greeddy Method
PDF
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
PPT
Knapsack prooblem using greedy based algoithm
PPT
Elak1 greedy presentation for design and analysis of algorithms.ppt
PPTX
Transportation technique
PPTX
07. Transportation Problem.pptx
PDF
New approach for wolfe’s modified simplex method to solve quadratic programmi...
PDF
B04430609
Knapsack problem using greedy approach
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.ppt
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Knapsack problem using fixed tuple
Knapsack Problem (DP & GREEDY)
Mba i qt unit-1.2_transportation, assignment and transshipment problems
Greedy
Applied Algorithms Introduction to Algorithms.pptx
module3_Greedymethod_2022.pdf
Dynamic programming
12 Greeddy Method
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Knapsack prooblem using greedy based algoithm
Elak1 greedy presentation for design and analysis of algorithms.ppt
Transportation technique
07. Transportation Problem.pptx
New approach for wolfe’s modified simplex method to solve quadratic programmi...
B04430609
Ad

Recently uploaded (20)

PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
August Patch Tuesday
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Mushroom cultivation and it's methods.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
WOOl fibre morphology and structure.pdf for textiles
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Getting Started with Data Integration: FME Form 101
TLE Review Electricity (Electricity).pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
1 - Historical Antecedents, Social Consideration.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Programs and apps: productivity, graphics, security and other tools
August Patch Tuesday
Heart disease approach using modified random forest and particle swarm optimi...
Hindi spoken digit analysis for native and non-native speakers
NewMind AI Weekly Chronicles - August'25-Week II
cloud_computing_Infrastucture_as_cloud_p
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
A comparative analysis of optical character recognition models for extracting...
Mushroom cultivation and it's methods.pdf
Enhancing emotion recognition model for a student engagement use case through...
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
WOOl fibre morphology and structure.pdf for textiles

Solving 0-1 knapsack problems based on amoeboid organism algorithm

  • 1. Solving 0-1 knapsack problems based on amoeboid organism algorithm Xiaoge Zhang, Shiyan Huang, Yong Hu, Yajuan Zhang, Sankaran Mahadevan, Yong Deng Juan José Miramontes Sandoval Modelos de Sistemas de Software 1
  • 2. Tabla de Contenido • 0-1 Knapsack problem • Amoeboid organism • Proposed method ▫ Example with 4 items ▫ Example with 8 items • Experimental results • Conclusiones 2
  • 3. 0-1 Knapsack Problem Given a set of items, each with a weight and a value, determine the count of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. 3 K. Pepper. Nakagaki. (2007). Knapsack Taken from: http://en.wikipedia.org/wiki/Knapsack_problem Combinatorial optimization problem
  • 4. 0-1 Knapsack Problem Mathematical model: 4
  • 5. 0-1 Knapsack Problem This model is widely used in real-life applications: • Capital budgeting problems • Loading problems • Resource allocation • Project selection problems and can be found as a sub problem of other more general models 5
  • 6. Amoeboid organism 6 P. Monzon. Alimentación Ameba. Taken from: http://vidadeamebas.blogspot.mx/ • Is a type of cell or organism which has the ability to alter its shape. • Lacking cell wall. • Capture food through movement.
  • 7. Proposed method • Recently, it is shown that an amoeboid organism can find the shortest path between two selected points in a labyrinth. A new method using the amoeboid organism model is propose to solve the 0-1 knapsack problem 7 T. Nakagaki. (2001). Tracking the shortest path in a maze by the plasmodium. Effective method to solve optimization problems
  • 9. Proposed method Example: Knapsack capacity: W = 6 vj is the value of item j wj is the weight of item j 9 j 1 2 3 4 vj 40 15 20 10 wj 4 2 3 1
  • 10. Proposed method 1.- Converting the 0-1 knapsack problem as the longest path problem: 10
  • 11. 2.- Transforming the longest path problem into the shortest path problem: 11 Proposed method
  • 12. Proposed method 2.- Transforming the longest path problem into the shortest path problem: 12
  • 13. 3.- Finding the shortest path based on the amoeboid organism algorithm: Step 1. Remove the edges with conductivity equal to zero. Step 2. Calculate the pressure of each node using each node’s current conductivity and length. Step 3. Use the pressure of each node obtained from step 2 to calculate each node’s conductivity. Step 4. Judge whether each edge’s conductivity is 1, if not, go to step 5; otherwise go to step 7. Step 5. According to the current flux and conductivity, calculate the flux and conductivity next time. Step 6. Return to step 1. Step 7. Get the result and the algorithm is over. 13 Proposed method
  • 14. • According to the network converting algorithm shown previously, there are 퐖 + ퟏ ∗ 풏 + ퟐ items in the converted network. • For the amoeboid organism algorithm, regardless of the algorithm’s outer iterations, its main time is spent on solving the linear equations and its complexity is 푶(풏ퟑ) Then, the complexity of the of the proposed method is: 퐎 ( 푾 + ퟏ ∗ 풏 + ퟐ)ퟑ = 푶(풏ퟑ) 14 Complexity of the proposed method
  • 15. Proposed method Example with 8 items: Knapsack capacity: W = 8 vj is the value of item j wj is the weight of item j 15 j 1 2 3 4 5 6 7 8 vj 83 14 54 79 72 52 48 62 wj 3 2 3 2 1 2 2 3
  • 16. 1.- Converting the 0-1 knapsack problem as the longest path problem: 16
  • 17. 17 2.- Transforming the longest path problem into the shortest path problem:
  • 18. 18 3.- Applying the amoeboid organism algorithm:
  • 19. Experimental results 19 Result of knapsack problem with 8 Items: J 1 2 3 4 5 6 7 8 vj 83 14 54 79 72 52 48 62 wj 3 2 3 2 1 2 2 3     Six test problems with different dimensions are used to study the performance of the proposed method:
  • 20. Conclusions 20 • Based on amoeboid organism algorithm and the network converting algorithm, a new method is proposed to solve classical 0-1 knapsack problems. • Using benchmark problems to test the amoeboid organism algorithm, the computational results demonstrate the efficiency of the presented approach.
  • 21. References • Zhang, X., Huang, S., Hu, Y., Zhang, Y., Mahadevan, S., & Deng, Y. (2013). Solving 0-1 knapsack problems based on amoeboid organism algorithm. Applied Mathematics and Computation, 219(19), 9959–9970. doi:10.1016/j.amc.2013.04.023 21

Editor's Notes

  • #11: Red aciclica -> Grafo dirigido
  • #12: Red aciclica -> Grafo dirigido
  • #13: Red aciclica -> Grafo dirigido
  • #14: Red aciclica -> Grafo dirigido
  • #15: Red aciclica -> Grafo dirigido
  • #17: Red aciclica -> Grafo dirigido
  • #18: Red aciclica -> Grafo dirigido
  • #19: Red aciclica -> Grafo dirigido