Docsity

Greedy Algorithm-Fundamentals of Algorithms-Assignment, Exercises of Algorithms and Programming

Toggle sidebar
bg1
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.
docsity.com

Partial preview of the text

Download Greedy Algorithm-Fundamentals of Algorithms-Assignment and more Exercises Algorithms and Programming in PDF only on Docsity!

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.

docsity.com