
CS 502 Fundamental of Algorithms
Assignment # 03
Spring 2012 Total Marks = 20
Deadline
Your๎assignment๎must๎be๎uploaded๎/๎submitted๎before๎or๎on๎June 11, 2012
Upload Instructions
Please๎view๎the๎assignment๎submission๎process๎document๎provided๎to๎you๎by๎the๎
Virtual๎University.๎
๎
Rules for Marking
Please๎note๎that๎your๎assignment๎will๎not๎be๎graded๎if:๎
โข It๎is๎submitted๎after๎due๎date๎
โข The๎file๎you๎uploaded๎does๎not๎open๎
โข The๎file๎you๎uploaded๎is๎copied๎from๎someone๎else๎or๎from๎internet๎
โข It๎is๎in๎some๎format๎other๎than๎.doc
Note: Material that is an exact copy from handouts or internet would be graded
Zero marks. Your solution should consist of the material found through
different sources and written in your own words.
Assignment Statements:
Question:
Suppose that instead of always selecting the first activity to finish,
we instead select the last activity to start that is compatible with all
previously selected activities. Describe how this approach is a
greedy algorithm, and prove that it yields an optimal solution.