Midterm2-2010

Midterm2-2010 - CS 140 Midterm 2 3 March 2010 Name Perm...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 140 Midterm 2 -- 3 March 2010 Name Perm# Problem 1 [20 points total] This problem is about maximal independent sets in the graph shown at right, which has 12 vertices connected in a cycle with 12 edges. For each part, you are to first identify a particular maximal independent set (or MIS), and then label the vertices to show how one of the algorithms we studied in class could find that particular MIS. (1a) [5 points] On the copy of the graph below, identify a largest possible maximal independent set by coloring in the vertices of that set. (1b) [5 points] On the same graph below, label the vertices with the integers 1, 2, …, 12 in such a way that the sequential MIS algorithm would find the same MIS you’ve colored in. (1c) [5 points] On the copy of the graph below, identify a smallest possible maximal independent set by coloring in the vertices of that set. (1d) [5 points] On the same graph below, label the vertices with 2-digit numbers (like 3.1, 2.7, 1.9) in such a way that, if the randomized parallel MIS algorithm happened to choose those random numbers, it would take just one round to find the same MIS you’ve colored in.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Name Perm# Problem 2 [20 points total] Recall that we have two ways to measure communication cost: (1) Communication volume v counts the total number of data words that move from any processor
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/27/2011 for the course CMPSC 140 taught by Professor Gilbert during the Fall '11 term at UCSB.

Page1 / 4

Midterm2-2010 - CS 140 Midterm 2 3 March 2010 Name Perm...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online