Turkish Journal of Computer and Mathematics Education
Journal license

Journal

Turkish Journal of Computer and Mathematics Education


Volume
& Issue

Volume 15, Issue 3


Published
on


Pages

301-311


DOI

Article

A Refined Classification of the Subset Sum Problem in Polynomial Time Complexity

Check for updates


Authors

B. Sinchev Affiliation:
International University of Information Technology, Almaty, Kazakhstan
, A.b. Sinchev Affiliation:
National Information Technologies JSC, Astana, Kazakhstan
and A.m. Mukhanova Affiliation:
Kainar Academy, Almaty, Kazakhstan


Abstract

The problem considered is the selection of a t least one subset from a set (array) of distinct positive integers, such that the sum of the subset's elements exactly matches a given target sum (target certificate). According to R. M. Karp, this problem belongs to the class of NP -complete problems. Diophantine equations and an auxiliary problem, which facilitates the solution of the original problem and has independent scientific interest, have been introduced. A novel method has been developed, which includes proven lemmas and theorems. These results enable the development of efficient and straightforward algorithms fo r solving the subset sum problem. The time and space complexity for selecting the required subsets do not exceed the square of the length of the original set. An analytical framework has been proposed for managing indices within the original set. These algorithms are applicable to solving problems related to the independent set of cardinality k and the k-vertex cover problem. Additionally, we present examples to confirm claimed results. It should be noted that the time complexity of sorting an array of integers is proportional to the square of the array's size, and this problem belongs to class P. Therefore, based on the newly developed method, it can be inferred that the subset sum problem, originally classified as NP -complete within the NP class, also belongs to P.


Keywords

P, NP-complete class, set, subset, time, space, algorithm, index management system


Citation

Sinchev, B., Sinchev, A., & Mukhanova, A. (2024). A refined classification of the subset sum problem in polynomial time complexity. Turkish Journal of Computer and Mathematics Education, 15(3), 301–311. https://doi.org/10.61841/turcomat.v15i3.14804

Published by: Engineering Journals

Engineering Journals Logo