# 代做assignment – CSCI 3104 Spring 2022

### CSCI 3104 Spring 2022

``````CSCI 3104 Spring 2022
``````

### Midterm 2 Standard 3 – Exchange arguments

#### Contents

1 Instructions 1

2 Standard 3 – Exchange arguments 2 2.1 Problem 1………………………………………….. 2

#### 1 Instructions

• The solutionsshould be typed, using proper mathematical notation. We cannot accept hand-written solutions. Heres a short intro to LATEX.
• You should submit your work through theclass Canvas pageonly. Please submit one PDF file, compiled using this LATEX template.
• You may not need a full page for your solutions; pagebreaks are there to help Gradescope automatically find where each problem is. Even if you do not attempt every problem, please submit this document with no fewer pages than the blank template (or Gradescope has issues with it).
• Youmay not collaborate with other students.Copying from any source is an Honor Code viola- tion. Furthermore, all submissions must be in your own words and reflect your understanding of the material. If there is any confusion about this policy, it is your responsibility to clarify before the due date.
• Posting toanyservice including, but not limited to Chegg, Discord, Reddit, StackExchange, etc., for help on an assignment is a violation of the Honor Code.

#### 2 Standard 3 – Exchange arguments

##### 2.1 Problem 1

Problem 1.Consider the Interval Scheduling problem that takes as input a set of intervalsI. Each intervaliI has a start valuei.startand an end valuei.endand returns a set of non-overlapping intervals of maximal size. Prove that the greedy choice of selecting the interval that ends first will yield an optimal solution.