简体   繁体   中英

Clustering a sparse matrix along diagonal line using row permutations only

Given the binary pattern of a square sparse matrix. How can you move all non-zero elements towards diagonal line through row permutations. One possible cost function is sum the two norm of distances between each non zero element and the diagonal line.

This is more of an algorithms question, but one simple way would be to take the greedy approach. Keep evaluating which row swap would result in maximal improvement in your cost function. Repeat until the cost function stabilizes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM