Φ = t(H) + 2 m(H)where t(H) is the number of trees in the root list of H and m(H) is the number of marked nodes in H.
DS = { (G, k) | G=(V, E) is an undirected graph such that ∃ V' ⊆ V with |V'| ≤ k such that ∀ u ∈ V − V' ∃ v ∈ V' such that (u, v) ∈ E.}Intuitively, if V' is a dominating set, then every vertex in G is either in V' or is adjacent to a vertex in V'. Show that Dominating Set is NP-complete.
Suppose that there are n bidders and n is a value known to the seller beforehand. Furthermore, assume that each bid bi is a distinct positive integer and that the ordering of the bidders is uniformly random (as in the previous question). Devise a randomized algorithm for the seller so that the seller has a 1/4 chance of accepting the highest bid.
Note: your algorithm cannot depend on future bids. The only information available to the algorithm in stage i is the value n and the bids b1, ... bi. Using this information, your algorithm must decide whether to accept or reject the ith bid.
Devise a randomized algorithm that selects k vertices from V so that the expected number of edges in the subgraph induced by the selected vertices is at least m k (k − 1) / [n (n − 1)].
Note: This question is harder than you might think. The difficulty is when there is an odd number of inputs. You cannot just use the Half-Cleaner in the textbook. That requires an even number of input lines. Also note that Figure 27.8 only shows half the cases, inputs of the form 1...10...01...1 are also considered bitonic.
Hint: Consider the input lines with odd index and the input lines with even index separately. Think recursively. How many more 0's can the odd inputs have compared to the even inputs? what about vice versa?
to Spring 2008 CMSC 641 Homepage