Journal of Dali University ›› 2023, Vol. 8 ›› Issue (6): 33-37.

Previous Articles     Next Articles

Backtracking Algorithms for Solving Set Subsets Based on Binary Tree and Variable Length Sub-ree

Zhao QinyiZhao Yuqin   

  1. College of Mathematics and Computer Dali University DaliYunnan 671003China
  • Received:2022-08-02 Revised:2022-09-09 Online:2023-06-15 Published:2023-06-26

Abstract:

The backtracking algorithm adopts the depth-first search strategy and prunes when constraint condition dissatisfied which is suitable for solving problems with large combinations. Two backtracking algorithms based on binary tree and variable length sub-tree are proposed to solve the set subsets and the design of two algorithms uses compatibility technology and pruning is not required in the search process. All set subsets can be solved. The time complexity of the two algorithms is ideal and the operation efficiency of the algorithms is high. The complexity of the backtracking algorithm for solving set subsets based on variable length sub-tree is O 2n and the algorithm efficiency is higher when the scale of problem solving increases.

Key words: font-family:", ">backtracking algorithmfont-family:宋体, ">, font-family:", "> binary treefont-family:宋体, ">, font-family:", "> variable length sub-tree

CLC Number: