当前位置:网站首页>Discrete mathematics single shot, full shot and double shot
Discrete mathematics single shot, full shot and double shot
2022-06-28 17:04:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Contents of this article
1、 What is mapping ?
We consider this relationship : about aggregate X Every element in , There are The only one belongs to the set Y The elements in Be pointed at by it , We call this relationship mapping ( Britain :mapping, Japan : mapping (しゃぞう)). This is a very popular language to explain the definition of mapping , And I believe we are all required in high school mathematics 1 I learned it inside , The concept of mapping must be familiar to us ! From this definition , Can you get To what information ? ①“X In the collection every last Elements ”: If there are collections X The element of does not correspond to the set Y Of an element of , Is not a mapping . ②“ There are Unique Y With the corresponding ”: If there are collections X The element of also points to the collection Y Of two or more elements in , Is not a mapping .
therefore , To get into today's topic —— Single shot 、 The distinction between surjection and bijection , First you have to judge , Is it a collection X All elements in point to , And only points to the set Y One of the elements ? Only if( The result of the judgment ==true) when , Only then can we make the next step of distinguishing and judging ;else, It's not even a mapping , What else to judge ? This is like comparison. , If you are a senior three student , You don't even belong to grade one , I have to ask if you are a senior one (7) Ben ?
Summary : If the pointing relationship between the elements of two sets satisfies the following two conditions , It is a mapping relationship . Only then can we further judge , What kind of mapping is it . (1) aggregate X All elements in point to a collection Y Some element in , And no one does not point to ; (2) aggregate X All elements in point only to collections Y An element in , And no one points to two or more .
2、 Classification of mappings
2.1 Single shot
All being X The elements in point to Y Elements in , All are Only by one X The element of the Of , Not by two or more X The element of the , Then this mapping relationship is called Single shot ( Britain :injection, Japan : Shooting (たんしゃ)). Single shot does not consider whether or not Y All the elements in it are X The element of points to . There can be Y The element of is not defined by any X The element of the , It doesn't affect that it is a single shot .
for instance .
For example, watching movies . Yes “ The audience ”(X) and “ seat ”(Y) Two sets . Now we know that , Every audience must sit in one seat , And he only sits in one seat , So this correspondence is first of all a mapping . And because each seat can only be matched by one audience , It is impossible for two people to sit in one seat , And not all seats must have corresponding audience , There may also be vacant seats , So this correspondence is a kind of Single shot Relationship .
Audience and cinema seats ( Single shot ): ① Or no one is sitting ; ② Or just one person sitting . ( Or not be pointed at by any audience , Or be pointed at by only one audience )
2.2 Full shot
Y In the assembly All elements are X The element in the points to , aggregate Y There is no element in that is not collected X The element of the , Then this mapping relationship is called Full shot ( Britain :surjection, Japan : All shot (ぜんしゃ)). The surjection does not consider pointing to the same Y How many X. As long as all Y Are pointed to , Is a full shot .
Another example .
For example, the class is divided into groups . At least one person in each group , Otherwise, it will not form a group ( It doesn't exist ). that , Each student belongs to only one group , This starts with mapping . And because each group must contain at least one student , There may also be multiple students , therefore ,“ Student ” aggregate (X) And “ team ” aggregate (Y) The relationship between , It's a kind of Full shot Relationship .
Students and groups ( Full shot ): ① Or the group does not exist ; ② As long as this group exists , It must be pointed to by one or more students .
2.3 Double shot
It's a single shot , It's a volley again Mapping , It's called Double shot ( Britain :bijection, Japan : Full shot (ぜんたんしゃ)). “ all Y All the elements in are X The element in points to , And only by X An element of the . There is nothing that is not pointed to , And not by two or more X The element of the .”
for instance .
Most typical ,“ Student ”(X) With its “ Student ID number ”(Y). Every student must have and only have one student ID number , So this is the mapping first . Again because , Every student ID number must be pointed to by only one student , There is no student ID number that is not pointed to by any student ( It is a full shot ), There is no student ID number pointed to by multiple students at the same time ( It is also a single shot ), therefore , This mapping relationship is a kind of Double shot Relationship .
Student and student ID number ( Double shot ): One-to-one correspondence , Each other has only one element corresponding to itself in each other's set .
2.4 It is neither simple nor surjective , But mapping
There is also a mapping relationship , It is neither a single shot nor a full shot .Y There are elements in that have not been X The element of the , And pointed to Y The elements of , Not all of them are just one X The element points to ( There are many X The element points to ).
for instance .
For example, go game . Yes “ chess player ”(X) and “ The board ”(Y) Two sets . A chess player plays chess on and only on one board , There are two players on a chessboard . however , Not all chessboards have players . such as , Yes 3 A chessboard , only 4 A chess player , that , There must be an empty chessboard , Not pointed by any player . Each player points to and only points to one board , This is a mapping . however , Not every chessboard has to be pointed by a chess player , Not every chess board is pointed to by only one player without exception , So this mapping relationship , Both It's not a volley , also It's not a single shot .
3、 Have you got it ?
Did you stop learning ? Come on , Come on , Come on , Take out your little notebook and pen , Do two questions to practice !
There are six questions . Write whether there is a mapping relationship between two sets , If there is , Write what kind of mapping relationship it is . requirement : from “ Single shot rather than full shot ”、“ Full shot rather than single shot ”、“ Double shot ”、“ Not a single shot nor a full shot ”、“ Not a mapping ” Choose the right words to answer .
The answers will be posted in the comments section .
4、 Experience
I heard the question I often heard at school :“ I know what this is for ? Do I need it to buy vegetables ?” Um. , Of course you don't use it when you buy vegetables , You won't tell the stall owner , What is the mapping relationship between your dish and your people . however , for instance , When you design the database , You can discuss with your partners in the same group ,“ This field should be the primary key . Because the set of its values is bijective with the set of records in this table .” Not like this : “emmm…… ah ?? Primary key , I think it may be this attribute . Why? ? because …… I can't say , Probably , Because of that , It's the only one . Ah No , It can uniquely identify a person ……emmm, A person has only one such attribute , This attribute only corresponds to one person ……emmmm, Maybe that's it , I'm not sure , I'm not sure , Think it over for yourself !”
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/132776.html Link to the original text :https://javaforall.cn
边栏推荐
- Fs2k face sketch attribute recognition
- Five solutions that give consideration to enterprise anti epidemic and development, from IBM
- 12 SQL optimization schemes summarized by old drivers (very practical)
- China energy integration and Tianyi cloud create an "energy brain"
- 2019 CSP J2 entry group csp-s2 improvement group round 2 video and question solution
- 视比特“AI+3D视觉”产品系列 | 上料装配工作站
- NOIP普及组2006-2018初赛 2019 CSP-J1 2020 CSP-J1 完善程序题
- 3. caller service call - dapr
- Subscription publishing mode bus in JS
- 天翼云Web应用防火墙(边缘云版)通过首批可信认证
猜你喜欢

MySQL中的日志管理 日志备份与恢复

知乎热问:一个程序员的水平能差到什么程度?

AUTOSAR software development training

ICML 2022 | 基于解耦梯度优化的可迁移模仿学习方法

Flex layout

PotPlayer播放百度雲盤視頻

This simple little function saves 213 hours for our production research team in half a year

这个简单的小功能,半年为我们产研团队省下213个小时

Cardinality sorting - common sorting method (2/8)

基于DataWorks的时效仿真平台|得物技术
随机推荐
【TcaplusDB知识库】查看业务密码
这个简单的小功能,半年为我们产研团队省下213个小时
【TcaplusDB知识库】WebClient用户如何读取和修改数据
[tcapulusdb knowledge base] Introduction to tcapulusdb restrictions
VirtualBox中克隆了一个虚拟系统出现IP问题
[force button] 977 Square of ordered array
天翼云Web应用防火墙(边缘云版)通过首批可信认证
It's completely cold! Tencent's well-known software was taken off the shelves, and netizens were all sobbing...
Noip1998-2018 popularization group csp-j2 2019 2020 problem solving report and video
55. 连续子数组的最大和
Cross cluster deployment of helm applications using karmada
【每日3题(2)】最大升序子数组和
小新黑苹果声卡ID注入
How to query the last data according to multiple indexes to achieve the effect of SQL order by desc limit 1?
免费、强大、高颜值的笔记软件评测: OneNote、Heptabase、氢图、FlowUs
China energy integration and Tianyi cloud create an "energy brain"
【TcaplusDB知识库】TcaplusDB限制条件介绍
The first WordPress plug-in you are taught to make step by step
高并发、高可用、弹性扩展,天翼云护航企业云上业务
How to log in to your WordPress admin dashboard