This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
Against Expectations: A Simple Greedy Heuristic Outperforms Advanced Methods in Bitmap Decomposition
by
Ville Pitkäkangas
Ville Pitkäkangas
Ville Pitkäkangas received his Bachelor's degree in Information Technology from the Centria of a [...]
Ville Pitkäkangas received his Bachelor's degree in Information Technology from the Centria University of Applied Sciences in 2012. He worked as a Project Engineer at the University of Oulu (2012–2014). In 2018, he moved to Centria University of Applied Sciences and was promoted to RDI Expert in 2024. His research topics mainly include Artificial Intelligence, Robotics, and Image Processing.
Vierimaantie Campus, Centria University of Applied Sciences, Vierimaantie 7, 84100 Ylivieska, Finland
Electronics 2025, 14(13), 2615; https://doi.org/10.3390/electronics14132615 (registering DOI)
Submission received: 27 May 2025
/
Revised: 24 June 2025
/
Accepted: 26 June 2025
/
Published: 28 June 2025
Abstract
Partitioning rectangular and rectilinear shapes in n-dimensional binary images into the smallest set of axis-aligned n-cuboids is a fundamental problem in image analysis, pattern recognition, and computational geometry, with applications in object detection, shape simplification, and data compression. This paper introduces and evaluates four deterministic decomposition methods: pure greedy selection, greedy with backtracking, greedy with a priority queue, and an iterative integer linear programming (IILP) approach. These methods are benchmarked against three established baseline techniques across 13 diverse 1D–4D images (up to 8 × 8 × 8 × 8 elements), featuring holes, concavities, and varying orientations. Surprisingly, the simplest approach—a purely greedy heuristic selecting the largest unvisited region at each step—consistently achieved optimal or near-optimal decompositions, even for complex images, and maintained optimality under rotation without post-processing. By contrast, the more sophisticated methods (backtracking, prioritization, and IILP) exhibited trade-offs between speed and quality, with IILP adding overhead without superior results. Runtime testing showed IILP was on average ~37× slower than the fastest greedy method (ranging from ~3× to 100× slower). These findings highlight that a well-designed greedy strategy can outperform more complex algorithms for practical binary shape decomposition, offering a compelling balance between computational efficiency and solution quality in pattern recognition and image analysis.
Share and Cite
MDPI and ACS Style
Pitkäkangas, V.
Against Expectations: A Simple Greedy Heuristic Outperforms Advanced Methods in Bitmap Decomposition. Electronics 2025, 14, 2615.
https://doi.org/10.3390/electronics14132615
AMA Style
Pitkäkangas V.
Against Expectations: A Simple Greedy Heuristic Outperforms Advanced Methods in Bitmap Decomposition. Electronics. 2025; 14(13):2615.
https://doi.org/10.3390/electronics14132615
Chicago/Turabian Style
Pitkäkangas, Ville.
2025. "Against Expectations: A Simple Greedy Heuristic Outperforms Advanced Methods in Bitmap Decomposition" Electronics 14, no. 13: 2615.
https://doi.org/10.3390/electronics14132615
APA Style
Pitkäkangas, V.
(2025). Against Expectations: A Simple Greedy Heuristic Outperforms Advanced Methods in Bitmap Decomposition. Electronics, 14(13), 2615.
https://doi.org/10.3390/electronics14132615
Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details
here.
Article Metrics
Article metric data becomes available approximately 24 hours after publication online.