Cryptology - I: Exercise 1 - Image Algebra Notation

Instructors: R.E. Newman-Wolfe and M.S. Schmalz


In this class, we use image algebra notation to simplify the expression of various algorithms. The summary of image algebra notation can be found in Summary of Symbols and Notation.

In Class #2 (Wed 28 Aug 96), we concluded our brief review of image algebra notation. Here follow a few exercises that we strongly recommend you work through. Answers will be given in class, and problems like this might appear on a homework assignment or exam.

Problem 1. Pointwise unary and binary arithmetic operations:

Problem 2. Can you add images a = (1,2,4) and b = (4,6,8,10)? If not, why not?
[Hint: Ask yourself if the image domains are equal...]

Answer: No, because the image domains must be equal for images to be added pointwise. Here, |domain(a)| = 3 and |domain(b)| = 4. That is, the domain sizes are unequal. Hence the domains are unequal and the images cannot be operated upon by a binary pointwise operation.

Problem 3. Unary image operations: