DNA has been utilized as a versatile nanomaterial for synthesizing various functional nanostructures. Various DNA nanostructures synthesized based on the principle of symmetry have demonstrated significant potential for applications. However, designing and synthesizing of these structures in a simple and efficient manner still pose challenges. To address these issues, we have developed a MATLAB algorithm based on binary operations to screen configurations with minimal DNA components. Furthermore, we have analyzed the conversion mechanisms between different configurations, providing theoretical guidance for targeted regulatory in chemistry. The results indicate that this concise algorithm allows us to identify all possible target configurations without laborious calculations, saving time and expanding the pool of potential candidates for DNA tetrahedra, cubes synthesis.