Find the keys for the second round.
6) a) Considering the bytes 10001001 and 10101010 as elements of the field , where g(X) is the polynomial X8 + X4 + X3 + X + 1, find their product and quotient.
Decrypt the ciphertext 101000111001 which was encrypted with the Toy block cipher once using the key 101010010. Show all the steps.
b) A 64 bit key for the DES is given below 11000111
10000101
11110111
11000001
11111011
10101011
10011101
10010001
i) Check whether the key is error free using the parity bits.
In this exercise, we introduce you to Hill cipher. In this cipher, we convert our message to numbers, just as in affine cipher. However, instead of encrypting character by character, we encrypt pairs of characters by multiplying them with an invertible matrix with co-efficients in Z26.
Here is an example: Suppose we want to ENCRYPT "ALLISWELL". Since we require the plaintext to have even number of characters, we pad the message with the character ‘X’. We break up the message into pairs of characters AL, LI, SW, EL and LX. We convert each pair of characters into a pair elements in Z26 as follows:
">
Next, we choose an invertible matrix with coefficients in
, for example,
.
This matrix has determinant and
is a unit in
with inverse
. We write each pair of elements in
as a column vector and multiply it by A:
We then convert each pair of numbers to a pair of characters and write them down. In this example, we get the cipher text "LSPFYGXUEN" corresponding to the plain text "ALLWELL". To decrypt, we convert pairs of characters to pairs of numbers and multiply by and we have
Decrypt the text "TWDXHUJLUENN" which was encrypted using the Hill’s cipher with the matrix as the encryption matrix.
Use Miller-Rabin test to check whether 75521 is a strong pseuodprime to the base 2.
See Answer →Decrypt each of the following cipher texts:
i) Text: "CBBGYAEBBFZCFEPXYAEBB", encrypted with affine cipher with key (7,2).
ii) Text:"KSTYZKESLNZUV", encrypted with Vigenère cipher with key "RESULT".
b) Another version of the columnar transposition cipher is the cipher using a key word. In this cipher, we encrypt as follows: Given a key word, we remove all the duplicate characters in the key word. For example, if the key word is ‘SECRET’, we remove the second ‘E’ and use ‘SECRT’ as the key word. To encrypt, we form a table as follows: In the first row, we write down the key word. In the following rows, we write the plaintext. Suppose we want to encrypt the text ‘ATTACKATDAWN’. We make a table as follows:
| S | E | C | R | T |
| A | T | T | A | C |
| K | A | T | D | A |
| W | N | X | X | X |
Then we read off the columns in alphabetical order. We first read the column under ‘C’, followed by the columns under ‘E’, ‘R’, ‘S’ and ‘T’. We get the cipher text TTX TAN ADX AKW CAX. To decrypt, we reverse the process. Note that, since we know the length of the keyword, we can find the length of the columns by dividing the length of the message by the length of the keyword.
Given the ciphertext ‘HNDWUEOESSRORUTXLARFASUXTINOOGFNEGASTORX’ and the key word ‘LANCE’, find the plaintext.
See Answer →) Let . We represent the field
by
. Let us write
. The table of values is given below:
|
|
| Vector |
|
| Vector |
| 0 |
|
| 8 |
|
|
| 1 |
|
| 9 |
|
|
| 2 |
|
| 10 |
|
|
| 3 |
|
| 11 |
|
|
| 4 |
|
| 12 |
|
|
| 5 |
|
| 13 |
|
|
| 6 |
|
| 14 |
|
|
| 7 |
|
|
i) Prepare logarithm and antilogarithm tables as given in page 23 of block 1.
ii) Compute and
using the logarithm and antilogarithm tables
Let . Find the product of x2 + 2x + 1 + (f(x)) and x2 + 3x - 1 + (f(x)) using the algorithm in page 23, block 1. You should show all the steps as in example 11, page 22, block 1.
For married couples living in a certain locality, the probability that the husband will vote in a school board election is 0.21, the probability that they both will vote is 0.15. What is the probability that
i) at least one of them will vote?
ii) neither of them will vote?
See Answer →
) Let X be a gamma variable with parameters αand λ, having E(X ) = 6 and Var(X ) = .3 Find αand λ. Also, find the m.g.f. of a gamma variable, and hence verify that mean of X is 6 and variance of X is 3 using m.g.f.
See Answer →The mean and standard deviation of 20 items is found to be 10 and 2 respectively. At the time of checking it was found that one item having value 8 was incorrect. Calculate the mean and standard deviation if the wrong item is omitted.
See Answer →) Let X1 be an observation from an exponential distribution with the p.d.f.
Test the null hypothesis that the mean of the distribution is against the alternative hypothesis that is
. The null hypothesis is accepted if and only if the observed value of the random variable is less than 3. Find the probabilities of type-I and type-II errors.
The probability that a card will have a flat tyre while crossing a certain bridge is 0.00005. Find the probability that, among 10,000 cars crossing the bridge, i) exactly two cars will have a flat tyre.
ii) at most two cards will have a flat tyre.
For a mesokurtic distribution with standard deviation 5, find fourth central moment m4.
See Answer →Let E1, E2, E3 and E4 be arbitrary events. Write the following events in set notations: i) not more than one of E1, E2, E3, E4.
ii) one and only one of E1, E2, E3, E4.
iii) E1 and at least one of E2, E3, E4.
iv) none of E2, E3 and E4 using E1.
b) Let the probability density function of r.v. X be
and if
and
, find Cov(u, v). Also check the independence of u and v.
The mean and standard deviation of a variable x are m and respectively. Obtain the mean and standard deviation of
, where a, b and c are constants.
b) If X is a random variable such that
and
, determine a lower bound for P(-2 < X < 8).
. Consider the joint probability density function
Are both x and y regressions linear? Give reasons for your answer.
A die is thrown 60 times with the following results:
| Face of die | 1 | 2 | 3 | 4 | 5 | 6 |
| Frequency | 8 | 7 | 12 | 8 | 14 | 11 |
Test that the die is unbiased at level of significance. Given that at 5, 6 and 7 d.f. the value of
are 11.070, 15.592 and 14.067 respectively.
6 observations on (X, Y) yielded the following data:
i) Determine the correlation coefficient between X and Y.
ii) Given , what will be the predicted value of Y?
iii) Given , what will be the predicted value of X?
The mean I.Q. of a large number of children of age 14 was 100 and standard deviation 16. Assuming that the distribution was normal, findi) the percentage of children having I.Q. under 80.
ii) the limits in which the I.Q. of the middle 40% of the children will lie.You may like to use the following values: