



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




This is a closed-book exam with 4 questions. The marks for each question are shown in parenthe- ses, and the total is 60 points. Make sure you allocate enough time to attempt all the questions. You are allowed to use the formula sheet that will be handed out with the exam. No other notes are allowed. Calculators are OK. Write all your answers in this booklet. Good Luck!
SID Number
(a) There are exactly two occurences of the substring “ab”? (b) There are exactly two occurrences of the substring “aa”? Note that the substring “aaa” counts as two occurrences.
(a) Do all the good processors reach agreement in the same round? If not, how many steps does it take? Explain briefly.
(b) Suggest a modification to the Byzantine agreement program (the pseudo-code is given on the next page) so that all the processors halt after complete (good-processor) agree- ment is reached.