
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!

Spring 2004 CMSC 858: Homework 8 William Gasarch
Due Friday April 21
COURSE WEBSITE: www.cs.umd.edu/∼gasarch/858/858.html
(a) Write down a Boolean Formula φ(x 1 , x 2 , y 1 , y 2 ) such that φ(a, b, c, d) is true iff (a, b) (c, d) where is the lex ordering. (b) Give an algorithm that will, given n, construct a Boolean Formula φ(x 1 ,... , xn, y 1 ,... , yn) such that φ(a 1 ,... , an, b 1 ,... , bn) is true iff (a 1 ,... , an) (b 1 ,... , bn). Your al- gorithm should run in time p(n) for some polynomial n.