Merging two partial (jointly overdetermined) sets of ordering information

前端 未结 3 694
南旧
南旧 2021-01-06 04:34

I have a web app with data in a grid. The user can reorder the columns, and the server can change which columns exist. I would like to save the user\'s column order in a coo

3条回答
  •  时光说笑
    2021-01-06 05:20

    One definition that might be reasonable is to minimize the number of inversions relative to the server's order, subject to the constraint that the restriction to the columns in common of the two orders be equal. I don't know offhand an algorithm to minimize this objective.

提交回复
热议问题