是否有这种类型的集合/列表“换位”的名称或更多信息?手术?
以下类型的设置/列表“转置”操作是否有名称? (这里可能滥用一些正式术语,但这就是我问题的全部原因:)
我有以下包含集合的列表:
1 = {a,b,c}
2 = {a,b,d,e}
3 = {a,c,e}
然后我遍历该列表以制作以下内容,即集合中每次出现的项目的列表。您可以看到“a”位于 1、2 和 3 中,因此列出了这些,依此类推。
a = {1,2,3}
b = {1,2}
c = {1,3}
d = {2}
e = {2,3}
例如,如果我想将字母集相互比较,则以这种方式转换列表非常有用。
Is there a name for the following type of set/list "transposition" operation? (Probably abusing some formal terms here, but that's the whole reason for my question :)
I have the following list containing sets:
1 = {a,b,c}
2 = {a,b,d,e}
3 = {a,c,e}
I then go through the list to make the following, a list of each occurrence of the items that were in the sets. You can see that 'a' was in 1, 2, and 3, so those are listed, and so on.
a = {1,2,3}
b = {1,2}
c = {1,3}
d = {2}
e = {2,3}
Transforming the list in this way is useful if I want to for example, compare the lettered sets to each other.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您所做的让人想起数据库中的倒排索引。因此,也许“反转”是一个合适的名称。
What you are doing is reminiscent of an inverted index in database-speak. So, perhaps "invert" would be an appropriate name for it.