文件名称:13348.-Multi-key-Sorting

  • 所属分类:
  • Windows编程
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2014-12-30
  • 文件大小:
  • 2kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 6465*****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。

介绍说明--下载内容均来自于网络,请自行研究使用

考虑与行和列的表。列编号从1到C为简便起见,在表中的项目是由小写字母串。

您被授予这样的表操作排序(K):排序(k)在(而列的顺序不会改变)在k列的值的顺序排序表中的行。排序是稳定的,即,具有相同的值在k列的行,则保持原来的顺序。例如,应用排序(2),以表1产率表2。

我们感兴趣的是这样的排序操作的顺序。这些操作被依次施加到相同的表。例如,在施加顺序排序(2) 排序(1)表1产率表3中。

排序操作的两个序列被称为等价的,如果,对任何的表,它们具有相同的效果。例如,排序(2) 排序(2) 排序(1)等同于排序(2) 排序(1)。然而,它不等于排序(1) 排序(2)中,因为在表1中的效果是不同的。

任务

定的排序操作的序列,确定的最短等效序列。-Consider a table with rows and columns. The columns are numbered 1 to C. For simplicity s sake, the items in the table are strings consisting of lower case letters.

You are given the operation Sort(k) on such tables: Sort(k) sorts the rows of a table in the order of the values in column k (while the order of the columns does not change). The sort is stable, that is, rows that have equal values in column k, remain in their original order. For example, applying Sort(2) to Table 1 yields Table 2.

We are interested in sequences of such sort operations. These operations are successively applied to the same table. For example, applying the sequence Sort(2) Sort(1) to Table 1 yields Table 3.

Two sequences of sort operations are called equivalent if, for any table, they have the same effect. For example, Sort(2) Sort(2) Sort(1) is equivalent to Sort(2) Sort(1). However, it is not equivalent to Sort(1) Sort(2), because the effect on Table 1 is different.

Task

Given a sequence of sort
(系统自动生成,下载前可以参看下载内容)

下载文件列表





13348. Multi-key Sorting\13348. Multi-key Sorting - 副本 (2).cpp

........................\13348. Multi-key Sorting - 副本 (3).cpp

........................\13348. Multi-key Sorting - 副本.cpp

........................\13348. Multi-key Sorting.cpp

13348. Multi-key Sorting

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org