Open Access iconOpen Access

ARTICLE

Efficient OpenMP Based Z-curve Encoding and Decoding Algorithms

by Zicheng Zhou1, Shaowen Sun2, Teng Liang3, Mengjuan Li4,*, Fengling Xia5,*

1 School of Electronic Science and Engineering, University of Electronic Science and Technology of China, Chengdu, 611731, China
2 Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming, 650500, China
3 School of Communications Information Engineering, Yunnan Communications Vocational and Technical College, Kunming, 650500, China
4 Library, Yunnan Normal University, Kunming, 650500, China
5 Faculty of Civil Aviation and Aeronautics, Kunming University of Science and Technology, Kunming, 650500, China

* Corresponding Authors: Mengjuan Li. Email: email; Fengling Xia. Email: email

Computers, Materials & Continua 2025, 82(1), 1313-1327. https://doi.org/10.32604/cmc.2024.056880

Abstract

Z-curve’s encoding and decoding algorithms are primely important in many Z-curve-based applications. The bit interleaving algorithm is the current state-of-the-art algorithm for encoding and decoding Z-curve. Although simple, its efficiency is hindered by the step-by-step coordinate shifting and bitwise operations. To tackle this problem, we first propose the efficient encoding algorithm LTFe and the corresponding decoding algorithm LTFd, which adopt two optimization methods to boost the algorithm’s efficiency: 1) we design efficient lookup tables (LT) that convert encoding and decoding operations into table-lookup operations; 2) we design a bit detection mechanism that skips partial order of a coordinate or a Z-value with consecutive 0s in the front, avoiding unnecessary iterative computations. We propose order-parallel and point-parallel OpenMP-based algorithms to exploit the modern multi-core hardware. Experimental results on discrete, skewed, and real datasets indicate that our point-parallel algorithms can be up to 12.6× faster than the existing algorithms.

Keywords


Cite This Article

APA Style
Zhou, Z., Sun, S., Liang, T., Li, M., Xia, F. (2025). Efficient openmp based z-curve encoding and decoding algorithms. Computers, Materials & Continua, 82(1), 1313-1327. https://doi.org/10.32604/cmc.2024.056880
Vancouver Style
Zhou Z, Sun S, Liang T, Li M, Xia F. Efficient openmp based z-curve encoding and decoding algorithms. Comput Mater Contin. 2025;82(1):1313-1327 https://doi.org/10.32604/cmc.2024.056880
IEEE Style
Z. Zhou, S. Sun, T. Liang, M. Li, and F. Xia, “Efficient OpenMP Based Z-curve Encoding and Decoding Algorithms,” Comput. Mater. Contin., vol. 82, no. 1, pp. 1313-1327, 2025. https://doi.org/10.32604/cmc.2024.056880



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 293

    View

  • 97

    Download

  • 0

    Like

Share Link