\documentclass[12pt,ifthen]{article} \usepackage{url} \newcommand{\lf}{\left\lfloor} \newcommand{\rf}{\right\rfloor} \newcommand{\lc}{\left\lceil} \newcommand{\rc}{\right\rceil} \newcommand{\Ceil}[1]{\left\lceil {#1}\right\rceil} \newcommand{\ceil}[1]{\left\lceil {#1}\right\rceil} \newcommand{\floor}[1]{\left\lfloor{#1}\right\rfloor} \newcommand{\bit }{\{0,1\}} \newcommand{\abit }{\hat{a}} \newcommand{\bbit }{\hat{b}} \newcommand{\bits}[1]{\{0,1\}^{{#1}}} \newcommand{\nth}{n^{th}} \newif{\ifshowsoln} \showsolntrue \newcommand{\und}{\_\_\_\_\_\_\_\_\_} \newcommand{\Z}{\mathbb{Z}} \usepackage{amsmath} \usepackage{amssymb} % for \nmid \begin{document} \centerline{\textbf{HW 12 CMSC 456. MORALLY DUE Dec 10}} \ifshowsoln \centerline{\textbf{SOLUTIONS}} \fi {\textbf{NOTE- THE HW IS FOUR PAGES LONG}} \begin{enumerate} \item (0 points) READ the syllabus- Content and Policy. What is your name? Write it clearly. What is the day of the final? READ the slides and notes on Perfect and Comp Secrecy. \centerline{\bf GOTO NEXT PAGE} \newpage \item (40 points) All of the arithmetic in this problem is mod 2. Write a program do do the following. Input $c_0,c_1,c_2,c_3\in \bit$ and do the following: \begin{enumerate} \item Let $$f(s_3,s_2,s_1,s_0) = (c_3s_3+c_2s_2+c_1s_1+c_0s_1,s_3,s_2,s_1)$$ \item For all $b_0,b_1,b_2,b_3 \in \{0,1\}$ compute $v_0=(b_3,b_2,b_1,b_0)$ $v_1=f(v_0)$ $v_2=f(v_1)$ $\vdots$ UNTIL you find $i