Weighted Interval Scheduling & Dynamic Programming (Knapsack, Edit Distance) Suppose you are in the middle of a pandemic. Given a list of daily case counts to analyze, one would like to identify...



Weighted Interval Scheduling & Dynamic Programming (Knapsack, Edit Distance)


Suppose you are in the middle of a pandemic.


Given a list of daily case counts to analyze, one would like to identify periods of high growth in the cases.


One way to do is to look at the change in new cases from day to day. For example, suppose we have the following data: (picture)



We would like to identify the period of maximal growth. In the case above, such a period would be from Days 3 through 6, which has net growth of 47 cases.



Give an algorithm in pseudocode that, when given a list of daily "changes" in case rates, identifies the period of maximal growth. Give proofs of correctness and running time for your algorithm.


Day<br>1<br>2<br>4<br>5<br>6<br>7<br>Cases<br>98<br>112 67<br>84 95 91<br>114 108<br>Change (Start) 14<br>-45 17 11<br>-4 23<br>-6<br>3.<br>

Extracted text: Day 1 2 4 5 6 7 Cases 98 112 67 84 95 91 114 108 Change (Start) 14 -45 17 11 -4 23 -6 3.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here