The Extraction of Maximal-Sum Principal Submatrix and Its Applications

Yizheng Zhang, Liuhong Luo, Hongjun LiAlgorithms 2023 · DOI

TL;DR

This paper introduces a novel "fusion row update accelerated algorithm" (MSPS-RU) to efficiently extract the maximal-sum principal submatrix (MSPS), a problem crucial for various applications like color selection and portfolio optimization. The MSPS-RU algorithm significantly speeds up computation by reducing redundant calculations, demonstrating substantial efficiency gains over existing methods.

What Problem Does This Paper Address?

The core problem addressed is the efficient extraction of a k-order maximal-sum principal submatrix (MSPS) from an n-order real matrix. This is an NP-hard combinatorial optimization problem, meaning that finding an exact solution becomes computationally infeasible as the matrix size (n) and the desired submatrix order (k) increase. Traditional methods for finding maximal-sum submatrices (MSS) often don't constrain the submatrix to be "principal" (i.e., having the same set of row and column indices), which is a critical requirement for many real-world applications. The paper highlights that existing MSS algorithms are not directly applicable to the MSPS problem due to fundamental differences in their mathematical formulations and solution formats. The computational complexity of brute-force approaches, involving checking all possible combinations of k rows and k columns, grows factorially with n and k, making it impractical for large datasets.

Methods

The paper proposes a new algorithm called the "fusion row update accelerated algorithm" (MSPS-RU). The key innovation lies in leveraging a property of principal submatrices: adjacent principal submatrices (differing by only one row and one column) share a significant overlap. The MSPS-RU algorithm exploits this by developing a formula (Property 1, Equation 5) to efficiently update the sum of elements when moving from one principal submatrix to the next. Instead of re-calculating the sum of all k² elements from scratch for each submatrix, it uses the sum of the previous submatrix and adds/subtracts only a few elements. This significantly reduces the number of addition operations from O(k²) to O(k) per submatrix update. The algorithm's flowchart and pseudocode are provided, detailing how it systematically traverses potential principal submatrices and updates the maximum sum found so far. A naive enumeration algorithm (Enum) is used as a baseline for comparison.

Datasets

The paper does not introduce new datasets but utilizes existing data for its applications:

  • Color Combination Selection: The RGB color space is used, with colors represented by (r, g, b) values. The distance matrix is constructed based on Euclidean distance between colors.
  • Stock Investment Portfolio Construction: Weekly return rates of 50 stocks from the Shanghai Stock Exchange over three years (April 2020 - March 2023) were collected from the Sohu website. After removing incomplete data, a dataset of 46 companies was used.

Key Insights and Ideas

  • The Power of Incremental Updates: The core insight is that by recognizing the overlap between adjacent principal submatrices, we can avoid redundant computations. This "row update" strategy dramatically improves efficiency.
  • MSPS vs. MSS: The paper clearly distinguishes the Maximal-Sum Principal Submatrix (MSPS) problem from the more general Maximal-Sum Submatrix (MSS) problem, highlighting why existing MSS solutions are insufficient.
  • Bridging Theory and Practice: The MSPS problem, while abstract, has direct implications for practical problems like selecting visually distinct colors or constructing diversified investment portfolios.
  • Efficiency Gains are Significant: The proposed algorithm offers substantial speedups, especially as the size of the submatrix (k) and the overall matrix (n) grow.

Key Results

The MSPS-RU algorithm demonstrated significant efficiency improvements over the naive enumeration (Enum) method across various experimental settings:

  • Parameter n Variable, k Fixed: For extracting 5-order and 10-order MSPS, the MSPS-RU algorithm achieved relative improvement degrees (η) of over 20%, with η increasing substantially as n grew. For instance, when extracting a 10-order MSPS from a 60-order matrix, η reached over 130%.
  • Parameter k Variable, n Fixed: For a 30-order matrix, the MSPS-RU algorithm was significantly more time-efficient than Enum, especially for k values up to 20. A statistical hypothesis test confirmed the significant time-saving advantage.
  • Parameters n and k as Linear Functions: When n = 3k, the MSPS-RU algorithm showed a substantial improvement in efficiency, with η reaching over 93% for the largest tested case (n=39, k=13).
  • Applications:
    • Color Combination: The MSPS-RU algorithm was used to select colors that maximize color difference, leading to more visually distinct and readable stacked graphs compared to other methods.
  • Stock Portfolio: The algorithm identified optimal portfolios with minimum correlation degrees, resulting in higher investment returns and lower volatility compared to random portfolios. For a k=3 portfolio, the "Ours" method achieved a higher return (1.0332 vs. max 1.0564 for random, but with higher volatility) and lower standard deviation (0.0278 vs. min 0.0133 for random, but with lower return) compared to random selections.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Further Efficiency Improvements: While the MSPS-RU algorithm reduces the number of element summations, further efficiency gains could be achieved by reducing the number of principal submatrices that need to be calculated, potentially through pruning techniques.
  • Color Combination Aesthetics: The current color selection prioritizes maximal color difference. Future work could incorporate aesthetic preferences and habits into the color combination selection process.
  • Broader Applications: The paper suggests that more application problems could be modeled by extracting the maximum sum principal submatrix from raw data matrices, opening avenues for further research.

Summary updated

BibTeX
@article{zhang2023extraction,
  author = {Yizheng Zhang and Liuhong Luo and Hongjun Li},
  title = {{The Extraction of Maximal-Sum Principal Submatrix and Its Applications}},
  journal = {Algorithms},
  year = {2023},
  doi = {10.3390/a16070314},
}
Figure