逻辑学中异或 同或 离散数学中逻辑部分中有一道题:Determine whether an inclusive or or exclusive or is intended:A password must have at least three digit or be at least eight characters long.我觉得这貌似既不是异或也
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/03 12:36:42
![逻辑学中异或 同或 离散数学中逻辑部分中有一道题:Determine whether an inclusive or or exclusive or is intended:A password must have at least three digit or be at least eight characters long.我觉得这貌似既不是异或也](/uploads/image/z/8736766-70-6.jpg?t=%E9%80%BB%E8%BE%91%E5%AD%A6%E4%B8%AD%E5%BC%82%E6%88%96+%E5%90%8C%E6%88%96+%E7%A6%BB%E6%95%A3%E6%95%B0%E5%AD%A6%E4%B8%AD%E9%80%BB%E8%BE%91%E9%83%A8%E5%88%86%E4%B8%AD%E6%9C%89%E4%B8%80%E9%81%93%E9%A2%98%EF%BC%9ADetermine+whether+an+inclusive+or+or+exclusive+or+is+intended%3AA+password+must+have+at+least+three+digit+or+be+at+least+eight+characters+long.%E6%88%91%E8%A7%89%E5%BE%97%E8%BF%99%E8%B2%8C%E4%BC%BC%E6%97%A2%E4%B8%8D%E6%98%AF%E5%BC%82%E6%88%96%E4%B9%9F)
逻辑学中异或 同或 离散数学中逻辑部分中有一道题:Determine whether an inclusive or or exclusive or is intended:A password must have at least three digit or be at least eight characters long.我觉得这貌似既不是异或也
逻辑学中异或 同或
离散数学中逻辑部分中有一道题:
Determine whether an inclusive or or exclusive or is intended:A password must have at least three digit or be at least eight characters long.我觉得这貌似既不是异或也不是同或,我觉得是disjunction(或).答案给的是异或,解释是“长密码可以任意组合”.学渣表示不能理解,
逻辑学中异或 同或 离散数学中逻辑部分中有一道题:Determine whether an inclusive or or exclusive or is intended:A password must have at least three digit or be at least eight characters long.我觉得这貌似既不是异或也
我想是异或.
设 A 密码必须有3个以上数字, A逆 密码可能有三个以下的数字;
B 密码必须有8个以上字符, B逆 密码可能有八个以下的字符.
1. A 异或 B 出现几种情况. 关键是判断 A真 B真时, A异或B的值是不是假.
A真 说明密码一定包含了 3 个以上数字,即密码不可能只包含三个以下数字;
B真 说明密码一定包含了 八个以上字符,即密码不可能只有八个以下的字符.
A,B同时为真,即 密码包含的数字个数不可能低于3,且密码包含的字符数不可能低于8.而这个命题是假的.
比如,21abcdefg,只有两个数字; 2133ab只有6个字符.但都是符合题目要求的密码.
2. 假设是 A与B是或关系,当且仅当其两个变量的真值都为假时,其结果为假. 而 密码可能有三个以下数字且可能有八个以下字符的话,是真.故不为或关系.