

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!


CS 5150/6150: Graduate Algorithms Aug 20, 2007
DUE DATE: Aug 27, 2007
Order the following list of functions in increasing asymptotic value. In other words, if f (n) = O(g(n)), then f (n) must be placed before g(n) in the ordering. You need not show detailed proofs of the ordering.
2 n
2 , log^100 n, n^2.^5 , 100 n,
2 n, 10 n, n^2 log n, nlog^ n, 22 n
The Christmas carol, ’The Twelve Days of Christmas’, starts like this:
On the first day of Christmas, my true love gave to me, A partridge in a pear tree. On the second day of Christmas, my true love gave to me, Two purple doves, and a partridge in a pear tree. On the third day of Christmas, my true love gave to me, Three french hens, Two purple doves, and a partridge in a pear tree.
...
Suppose our lucky protagonist’s true love starts giving gifts on the nth^ day of Christmas (we will assume that there are always n different kinds of gifts to give). How many gifts do they receive?
A coloring of a graph G = (V, E) is an assignment of colors to vertices such that no edge is monochromatic (is assigned the same color on both of its endpoints). We know (or will know
Assignment 0: Aug 20, 2007 0-
soon!) that finding the minimum number of colors required to color a graph is NP-hard.
Suppose we’re cut some slack, and are told that we don’t have to make sure that all edges are bichromatic (have different colors on the two endpoints). Show how we can randomly color a graph with three colors and ensure that in expectation, at least two-thirds of the edges are bichromatic.
Suppose we’re given n butterfly specimens, and we believe that each comes from one of two species (call them black and white). We have a number of experts who come in and classify the specimens, in the following manner. They take two specimens, and declare them to be either same or different.
This is done m times. At the end of this process, we have a collection of classification of pairs. We’d like to check whether this classification is consistent i.e, is there a way of assigning speci- mens to species in such a way that no pair of specimens from the same species was declared to be different, and no pair of specimens declared different were from the same species.
Present an algorithm to check consistency that runs in time O(m + n).
HINT: Read Chapter 3.
Researchers from the University of Alberta recently announced that they had cracked the game of checkers, determining that it always ends in a draw. In this assignment, we’re going to solve a much simpler problem on a checkerboard.
A variant of checkers (where all pieces are “kings”) works as follows: On an 8 × 8 board, white and black pieces are placed in the configuration given below.
A move consists of one of the following options: