SlideShare a Scribd company logo
1 of 21
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

What's hot

Linear regression with gradient descent
Linear regression with gradient descentLinear regression with gradient descent
Linear regression with gradient descentSuraj Parmar
 
Artificial Neural Networks - ANN
Artificial Neural Networks - ANNArtificial Neural Networks - ANN
Artificial Neural Networks - ANNMohamed Talaat
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Yasir Khan
 
Convolutional Neural Networks
Convolutional Neural NetworksConvolutional Neural Networks
Convolutional Neural NetworksAshray Bhandare
 
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationArtificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationMohammed Bennamoun
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principlenielsoli
 
Knapsack Problem (DP & GREEDY)
Knapsack Problem (DP & GREEDY)Knapsack Problem (DP & GREEDY)
Knapsack Problem (DP & GREEDY)Ridhima Chowdhury
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithmtaimurkhan803
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent methodSanghyuk Chun
 
Fractional Knapsack Problem
Fractional Knapsack ProblemFractional Knapsack Problem
Fractional Knapsack Problemharsh kothari
 
0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEM0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEMi i
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtrackingmandlapure
 
Feature selection
Feature selectionFeature selection
Feature selectionDong Guo
 
Reinforcement learning
Reinforcement learning Reinforcement learning
Reinforcement learning Chandra Meena
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesArtificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesMohammed Bennamoun
 

What's hot (20)

Linear regression with gradient descent
Linear regression with gradient descentLinear regression with gradient descent
Linear regression with gradient descent
 
Artificial Neural Networks - ANN
Artificial Neural Networks - ANNArtificial Neural Networks - ANN
Artificial Neural Networks - ANN
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Convolutional Neural Networks
Convolutional Neural NetworksConvolutional Neural Networks
Convolutional Neural Networks
 
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationArtificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
 
Knapsack Problem (DP & GREEDY)
Knapsack Problem (DP & GREEDY)Knapsack Problem (DP & GREEDY)
Knapsack Problem (DP & GREEDY)
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithm
 
Markov Random Field (MRF)
Markov Random Field (MRF)Markov Random Field (MRF)
Markov Random Field (MRF)
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Fractional Knapsack Problem
Fractional Knapsack ProblemFractional Knapsack Problem
Fractional Knapsack Problem
 
0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEM0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEM
 
Robotics Navigation
Robotics NavigationRobotics Navigation
Robotics Navigation
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
 
Feature selection
Feature selectionFeature selection
Feature selection
 
Reinforcement learning
Reinforcement learning Reinforcement learning
Reinforcement learning
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesArtificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rules
 
Minimum spanning Tree
Minimum spanning TreeMinimum spanning Tree
Minimum spanning Tree
 

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

Knapsack problem using greedy approach
Knapsack problem using greedy approachKnapsack problem using greedy approach
Knapsack problem using greedy approachpadmeshagrekar
 
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sGreedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sJay Patel
 
Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptGreedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptRuchika Sinha
 
Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptGreedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptRuchika Sinha
 
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
 
Mba i qt unit-1.2_transportation, assignment and transshipment problems
Mba i qt unit-1.2_transportation, assignment and transshipment problemsMba i qt unit-1.2_transportation, assignment and transshipment problems
Mba i qt unit-1.2_transportation, assignment and transshipment problemsRai University
 
module3_Greedymethod_2022.pdf
module3_Greedymethod_2022.pdfmodule3_Greedymethod_2022.pdf
module3_Greedymethod_2022.pdfShiwani Gupta
 
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...IJLT EMAS
 
New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...eSAT Journals
 
An Introduction to Water Cycle Algorithm
An Introduction to Water Cycle AlgorithmAn Introduction to Water Cycle Algorithm
An Introduction to Water Cycle AlgorithmMrinmoy Majumder
 
A Survey- Knapsack Problem Using Dynamic Programming
A Survey- Knapsack Problem Using Dynamic ProgrammingA Survey- Knapsack Problem Using Dynamic Programming
A Survey- Knapsack Problem Using Dynamic ProgrammingEditor IJCTER
 
A Branch-And-Bound Algorithm For Hard Multiple Knapsack Problems
A Branch-And-Bound Algorithm For Hard Multiple Knapsack ProblemsA Branch-And-Bound Algorithm For Hard Multiple Knapsack Problems
A Branch-And-Bound Algorithm For Hard Multiple Knapsack ProblemsFiona Phillips
 

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

Knapsack problem using greedy approach
Knapsack problem using greedy approachKnapsack problem using greedy approach
Knapsack problem using greedy approach
 
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sGreedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
 
Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptGreedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.ppt
 
Greedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.pptGreedy with Task Scheduling Algorithm.ppt
Greedy with Task Scheduling Algorithm.ppt
 
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...
 
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
 
Mba i qt unit-1.2_transportation, assignment and transshipment problems
Mba i qt unit-1.2_transportation, assignment and transshipment problemsMba i qt unit-1.2_transportation, assignment and transshipment problems
Mba i qt unit-1.2_transportation, assignment and transshipment problems
 
Greedy
GreedyGreedy
Greedy
 
module3_Greedymethod_2022.pdf
module3_Greedymethod_2022.pdfmodule3_Greedymethod_2022.pdf
module3_Greedymethod_2022.pdf
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
12 Greeddy Method
12 Greeddy Method12 Greeddy Method
12 Greeddy Method
 
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
 
Transportation technique
Transportation techniqueTransportation technique
Transportation technique
 
07. Transportation Problem.pptx
07. Transportation Problem.pptx07. Transportation Problem.pptx
07. Transportation Problem.pptx
 
New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...
 
B04430609
B04430609B04430609
B04430609
 
An Introduction to Water Cycle Algorithm
An Introduction to Water Cycle AlgorithmAn Introduction to Water Cycle Algorithm
An Introduction to Water Cycle Algorithm
 
Fractional knapsack problem
Fractional knapsack problemFractional knapsack problem
Fractional knapsack problem
 
A Survey- Knapsack Problem Using Dynamic Programming
A Survey- Knapsack Problem Using Dynamic ProgrammingA Survey- Knapsack Problem Using Dynamic Programming
A Survey- Knapsack Problem Using Dynamic Programming
 
A Branch-And-Bound Algorithm For Hard Multiple Knapsack Problems
A Branch-And-Bound Algorithm For Hard Multiple Knapsack ProblemsA Branch-And-Bound Algorithm For Hard Multiple Knapsack Problems
A Branch-And-Bound Algorithm For Hard Multiple Knapsack Problems
 

Recently uploaded

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Recently uploaded (20)

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

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

  1. Red aciclica -> Grafo dirigido
  2. Red aciclica -> Grafo dirigido
  3. Red aciclica -> Grafo dirigido
  4. Red aciclica -> Grafo dirigido
  5. Red aciclica -> Grafo dirigido
  6. Red aciclica -> Grafo dirigido
  7. Red aciclica -> Grafo dirigido
  8. Red aciclica -> Grafo dirigido