1 / 25

Semester-end Blues: Scheduling Tasks and Term Paper

This lecture covers topics such as scheduling tasks to minimize lateness, writing a term paper, and organizing exam study parties to overcome the end-of-semester blues.

ceceliah
Download Presentation

Semester-end Blues: Scheduling Tasks and Term Paper

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 20 CSE 331 Oct 12, 2018

  2. Mid-term-I Monday In class 8:00am-8:50am sharp Eight 2 part True/False with justification Qs

  3. Graded Quiz 1

  4. Graded HW4 Hopefully by tonight

  5. Short review session “Post mortem” of Quiz 1

  6. HW5 Solutions At the end of the lecture

  7. Extra Office Hours today

  8. Questions?

  9. The “real” end of Semester blues There are deadlines and durations of tasks Write up a term paper Party! Exam study 331 HW Project Monday Tuesday Wednesday Thursday Friday

  10. The “real” end of Semester blues There are deadlines and durations of tasks Write up a term paper Exam study Party! 331 HW Project Monday Tuesday Wednesday Thursday Friday

  11. The algorithmic task YOU decide when to start each task Write up a term paper Exam study You have to do ALL the tasks Party! 331 HW Project Monday Tuesday Wednesday Thursday Friday

  12. Scheduling to minimize lateness All the tasks have to be scheduled GOAL: minimize maximum lateness Write up a term paper Exam study Party! 331 HW Project Monday Tuesday Wednesday Thursday Friday

  13. One possible schedule All the tasks have to be scheduled GOAL: minimize maximum lateness Lateness = 0 Lateness = 2 Exam study Party! 331 HW Write up a term paper Monday Tuesday Wednesday Thursday Friday

  14. Scheduling to minimize lateness n jobs: ith job (ti,di) At most one job at any time start time: s Schedule the n jobs: ith job gets interval [s(i),f(i)=s(i)+ti) Not the sum Algo picks s(i) GOAL: Minimize MAXIMUM lateness Lateness of job i, li = max(0,f(i)-di)

  15. Questions?

  16. The Greedy Algorithm (Assume jobs sorted by deadline: d1≤ d2≤ ….. ≤ dn) f=s n iterations For every i in 1..n do Schedule job i from s(i)=f to f(i)=f+ti O(1) per iteration f=f+ti O(n) overall. O(n log n) if deadlines are not sorted.

  17. Solving end of Semester blues Term paper Exam study Party! 331 HW Max lateness = 2 Project 2 0 0 0 0 Exam study Term paper Project 331 HW Party! Monday Tuesday Wednesday Thursday Friday

  18. Questions?

  19. Quiz 1 review Solution 1 Solution 2 For any x, y, (2x)y= 2x*y 2f(n)= 2 c*g(n)= (2g(n))c 2f(n)= 2 c*g(n)= (2g(n))c A re-statement of what needs to be proven This argues why the 2nd equality is true

  20. Q1 (a): part 2 Solution 1 Not EXACTLY the same problem Solution 2 This was proven in T/F #4 When re-using, make sure you add in whatever “extra” is needed

  21. Q 1(b): part 2 The Q is asking about specific inputs and not general inputs Solution 1 FALSE In class we saw GS runs in O(n2) time Linear time for GS is O(n2) Solution 2 TRUE In class we saw GS is a linear time algorithm

  22. Some other reminders Re-use as much as possible (remember Q3(a) on HW 3! If you do everything from scratch you will NOT be able to finish on time Make sure your references are precise! Review all HWs, recitation notes, piazza T/F Qs, Quiz 1

  23. All this and much more…

  24. More detailed feedback response later If something is not clear, please ask for help/clarification Kept pre mid-term material “easy”. More chances to come back

  25. Q3 (b) are supposed to hard for groups

More Related