arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.02897cs.NEcs.AIcs.PF
收藏

线性遗传编程框架中位串表示的性能评估

Performance Evaluation of Bitstring Representations in a Linear Genetic Programming Framework

University of Malta(马耳他大学);Tomas Bata University in Zlín(兹林托马斯巴塔大学)

Clyde Meli, Vitezslav Nezval, Zuzana Kominkova Oplatkova, Victor Buttigieg, Anthony Spiteri Staines

AI总结:

本文在 Linear Genetic Programming 框架下比较了三种 C++ 位串实现的连接性能,发现自定义直接实现在 Linux 和 Windows 上最快,std::bitset 在 macOS 上最优,为不同平台选择位串方案提供了实用指导。

摘要:

不同的位串表示会产生不同的计算性能。本文在 C++ 中比较了三种位串实现:std::bitset、boost::dynamic_bitset 以及一种自定义直接实现。在 Linear Genetic Programming 系统中的连接操作背景下,对它们的性能进行了基准测试。基准测试在三个平台(macOS、Linux 和 Windows MSYS2)上进行,以评估平台特定的性能差异。结果表明,自定义直接实现在 Linux 和 Windows 上提供了最快的性能,而 std::bitset 在 macOS 上表现最佳。尽管 boost::dynamic_bitset 始终较慢,但它仍然是一个可行且灵活的选择。这些发现突出了编译器优化和系统架构对性能的影响,为根据平台和应用需求选择最优方法提供了实用指导。

英文摘要:

Different bitstring representations can yield varying computational performance. This work compares three bitstring implementations in C++: std::bitset, boost::dynamic_bitset, and a custom direct implementation. Their performance is benchmarked in the context of concatenation within a Linear Genetic Programming system. Benchmarks were conducted on three platforms (macOS, Linux, and Windows MSYS2) to assess platform specific performance variations. The results show that the custom direct implementation delivers the fastest performance on Linux and Windows, while std::bitset performs best on macOS. Although consistently slower, boost::dynamic_bitset remains a viable and flexible option. These findings highlight the influence of compiler optimisations and system architecture on performance, providing practical guidance for selecting the optimal method based on platform and application requirements.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑