Sorting a binary 2D matrix?

前端 未结 6 1276
伪装坚强ぢ
伪装坚强ぢ 2021-02-09 13:06

I\'m looking for some pointers here as I don\'t quite know where to start researching this one.

I have a 2D matrix with 0 or 1 in each cell, such as:

  1         


        
6条回答
  •  臣服心动
    2021-02-09 13:49

    Look for a 1987 paper by Anna Lubiw on "Doubly Lexical Orderings of Matrices".

    There is a citation below. The ordering is not identical to what you are looking for, but is pretty close. If nothing else, you should be able to get a pretty good idea from there.

    http://dl.acm.org/citation.cfm?id=33385

提交回复
热议问题