Supercharge Your Innovation With Domain-Expert AI Agents!

Prospective greedy method for solving 1-neighborhood backpack problem

A knapsack problem, knapsack technique, applied in the field of forward-looking greed

Inactive Publication Date: 2015-04-08
TIANJIN UNIV
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1-Neighborhood knapsack problem is a kind of knapsack problem with constraints, Borradaile and Heeringa et al. in Borradaile, G., B.Heeringa and G.Wilfong.The knapsack problem with neighbor constraints[J].Journal of Discrete Algorithms,2012.16 :p.224-235. In the knapsack problem with neighbor constraints, the knapsack problem with neighbor constraints is classified according to three indicators: undirected graph and directed graph; P, W take any value and P, W take Value homogenization; 1-neighborhood constraints and full-neighborhood constraints are divided into eight cases, because there is no effective solution algorithm,

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Prospective greedy method for solving 1-neighborhood backpack problem
  • Prospective greedy method for solving 1-neighborhood backpack problem
  • Prospective greedy method for solving 1-neighborhood backpack problem

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] A forward-looking greedy method for solving the 1-neighborhood knapsack problem of the present invention will be described in detail below in combination with embodiments and drawings.

[0059] A forward-looking greedy method for solving the 1-neighborhood knapsack problem of the present invention, the research object belongs to the undirected graph, the values ​​of P and W are arbitrary, and the 1-neighborhood constrained knapsack problem. Therefore, the present invention proposes a forward-looking greedy algorithm for the 1-neighborhood knapsack problem. This algorithm adds a forward-looking link on the basis of the ordinary greedy algorithm, making it easier for the algorithm to jump out of the local minimum that the traditional greedy algorithm may fall into. In the optimal solution, it becomes an effective algorithm for solving the 1-neighborhood knapsack problem.

[0060] Such as figure 1 As shown, a kind of forward-looking greedy method that solves 1-neighborhoo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A prospective greedy method for solving a 1-neighborhood backpack problem includes the steps: setting initial vertexes stored in a backpack and a set Z= {v0} of the vertexes currently selected into the backpack; respectively calculating the overall value PZ, the overall weight WZ and the residual capacity CR of the current backpack vertexes; searching a neighborhood of the set Z and placing the vertexes in the neighborhood into a set NB1; placing a neighborhood of the vertex NB1 (i) into a set NBi2; acquiring a ratio Ri (j); finding a maximum value R2 (i) in the Ri (j); keeping the univalence R1 (i) of the vertex with the weight W (i)<=CR of the vertex i unchanged; enabling the R1 (i) of the vertex with the W (i)>CR to be equal to 0; selecting a maximum value Rmax; adding m into the set Z, Z={Z, m}; judging whether the residual capacity CR is larger than the weight W (m) of the vertex m or not; calculating the overall weight WZ and the overall value PZ of the vertexes in the current backpack; exiting a loop. The prospective greedy method has the advantage of higher optimizing capacity and is more suitable for solving the high-dimensional constrained optimization problem of the 1-neighborhood backpack problem.

Description

technical field [0001] The present invention relates to a look-ahead greedy approach. In particular it concerns a look-ahead greedy approach to the 1-neighborhood knapsack problem. Background technique [0002] Sysio M M. Discrete Optimization Algorithms [M]. Englewood Cliffs, New Jersey: Prentice-Hall, 1983. The 0-1 knapsack problem proposed in: Given a knapsack with a capacity of C, N items, and its weight is W( i), the value is P(i), 1<=i<=N, the requirement: put the items into the backpack and maximize the value of the items in the bag. In the 0-1 knapsack problem, the object is either put into the knapsack, or it is not put into the knapsack, there are only two choices. Solving which items to load can maximize the value of the items in the backpack without exceeding the capacity of the backpack. [0003] 1-Neighborhood knapsack problem is a kind of knapsack problem with constraints, Borradaile and Heeringa et al. in Borradaile, G., B.Heeringa and G.Wilfong.The ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F19/00
Inventor 余贻鑫马世乾
Owner TIANJIN UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More