On the Use of Gray Codes for Solving 0-1 Combinatorial Problems of Optimization in Environmental and Economic Systems

Author:

Trofymchuk Oleksandr1ORCID,Vasyanin Volodymyr1ORCID,Sokolov Volodymyr2ORCID,Chikrii Arkadii3ORCID,Ushakova Liudmyla1ORCID

Affiliation:

1. Institute of Telecommunications and Global Information Space of the NAS of Ukraine, Kyiv

2. Borys Grinchenko Kyiv University, Ukraine

3. V.M.Glushkov Institute of Cybernetics of the NAS of Ukraine, Kyiv

Abstract

Introduction. The application of binary-reflected (mirror, reflexive) Gray codes for solving combinatorial problems with pseudo-Boolean functions (polynomials from Boolean variables) is considered. A recursive Ehrlich algorithm is given for generating a sequence of lines n-bit Gray codes, in which each subsequent line differs from the previous one by only one digit (bit). As an example of the effectiveness of the use of these codes, the solution of two combinatorial problems with Boolean variables with a complete enumeration of solutions is considered, and it is shown how these codes can be used to efficiently calculate the values of the objective function and constraints. The results of an experimental study are presented, which show that Gray codes can be practically applied in branching schemes, for example, in the branch and bound method, when the number of variables in the branching nodes of the decision algorithm does not exceed 35. Purpose. The purpose of the article is to show the developers of algorithms and programs how to apply Gray codes in various branching schemes of the decision algorithm, for example, in the branch and bound method, when the number of binary (Boolean) variables at the nodes of the tree is small (less than 35). The technique. The research methodology is based on a computational experiment for solving the 0-1 knapsack problem with the proposed algorithm of exhaustive search the solution with partial and full recalculation of the values of objective function and constraint of the problem. During the experiment, the accuracy of solving the problem by a “greedy” heuristic algorithm with time complexity O(n2) was also checked. Results. As a result of the experiment, it was found that the algorithm with a partial recalculation of the objective function and restrictions can be used for practical calculations in branching schemes, when the number of variables in the nodes of the branching tree does not exceed 35. The algorithm with partial recalculation is faster than the algorithm with full recalculation on average by 7 times. The heuristic "greedy" algorithm can be applied in practice to solve the 0-1 problem of a knapsack of large dimension (more than 10,000 items), when need to obtain an approximate value of the objective function at the limited computing resources. Scientific novelty and practical significance. The novelty of the work lies in the proposed approach to solving combinatorial optimization problems with pseudo-Boolean functions using Gray codes. The efficiency of the proposed algorithm with a partial recalculation of the values of the objective function and constraints is shown, and its can be applied in practice in various branching schemes of the decision algorithm. Keywords: Gray codes, combinatorial optimization problems, problem solving time.

Publisher

V.M. Glushkov Institute of Cybernetics

Subject

General Medicine

Reference27 articles.

1. Martello S., Toth P. Knapsack problems: algorithms and computer implementations. John Wiley & Sons, Inc., 1990.

2. Drezner Z. Facility Location. A Survey of Applications and Methods. Springer, 1995.

3. Nemhauser G.L., Wolsey L.A. Integer and combinatorial optimization. John Wiley & Sons, Inc., 1999.

4. Schrijver. Combinatorial optimization. Polyhedra and efficiency. Berlin: Springer, 2003.

5. Kellerer H., Pferschy U., Pisinger D. Knapsack problems. Springer-Verlag Berlin Heidelberg, 2004. https://doi.org/10.1007/978-3-540-24777-7

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Exact and Approximate Solution Problem of Managing the Reserve of Capacity of Arcs a Communication Network;2023 5th International Conference on Problems of Cybernetics and Informatics (PCI);2023-08-28

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3