【CSCI 4116 Cryptography】MATH/CSCI 4116
Cryptography
Assignment 5
- We know that ?(ab) = ?(a)?(b) whenever gcd(a, b) = 1. Give
an example that shows that this identity is, in general, not true when
gcd(a, b) 6= 1. - Use the stream cipher discused in class (Section 2.6), with n = 7
and c0 = c1 = 1, c2 = c3 = 0, c4 = c5 = c6 = 1. Encrypt w = - 1110001 1010001 using the key k = 1010011.
- Find the sample space and probability distribution that model flipping
two coins. Describe the event “at least one coin comes up heads”
formally and compute its probability. - We throw two dice. Determine the probability that they both show
different numbers under the condition that the sum of both numbers is
even. - (a) Determine the integer n such that the probability for two of n
people having the same birthday is at least 9/10.
(b) Suppose the 4-digit PINs are randomly distributed. How many people
must be in a room such that the probability that two of them have
the same PIN is at least 1/2? (Here “4 digits” means that the PIN
cannot start with a 0.)
Note: Pay special attention to the direction of the inequality in the
formula(s) used for this question.
Due: Thursday, February 25, 2021, 11:30 pm
推荐阅读
- Python学习|Python 使用穷举法求两个数的最大公约数。
- CSCI 2122 队列,二叉树
- c语言|C语言——指针
- c语言|C语言初阶——2.函数
- 学习笔记|【Kafka|常用CLI】Topic管理
- EECS 4412 Data Mining
- python|Python 学生信息管理系统------文章中源码100%真实有效-----如何将类、初始化属性、模块、循环判断、静态方法等一系列知识点结合起来做一个项目
- JavaWeb|基于Java开发的CMS内容管理系统
- 校招面试有感