jagomart
digital resources
picture1_Programming Pdf 183076 | Lecture14


 166x       Filetype PDF       File size 1.86 MB       Source: cs.williams.edu


File: Programming Pdf 183076 | Lecture14
dynamic programming partitioning books and edit distance dynamic programming practice suppose we have to scan through a shelf of books and this task can be split between k workers we ...

icon picture PDF Filetype PDF | Posted on 31 Jan 2023 | 2 years ago
Partial capture of text on file.
    Dynamic Programming: 

     Partitioning Books 
     and Edit Distance
    Dynamic Programming Practice
        •  Suppose we have to scan through a shelf of books, and this task 
           can be split between k workers 
        •  We do not want to reorder/rearrange the books, so instead we 
           divide the shelf into k regions 
        •  Each worker is assigned one of the regions 
        •  What is the fairest way to divide the shelf up?
                      DP: Dividing Work
        •  Suppose we have to scan through a shelf of books, and this task 
           can be split between k workers 
        •  We do not want to reorder/rearrange the books, so instead we 
           divide the shelf into k regions 
        •  Each worker is assigned one of the regions 
        •  What is the fairest way to divide the shelf up? 
        •  If the books are equal length, we can just give each worker the 
           same number of books 
        •  What if books are not equal size?  
               •  How can we find the fairest partition of work?
      The Linear Partition Problem
        •  Input.  A input arrangement S of nonnegative integers {s ,…,s } 
           and an integer k                                                    1        n
        •  Problem.  Partition S into k ranges such that the maximum sum over 
           all the ranges is minimized 
        •  Example.
           • Consider the following arrangement

               
100 200 300 400 500 600 700 800 900 
           • Suppose k = 3, where should we partition to minimize the 
               maximum sum over all ranges?

               
100 200 300 400 500 | 600 700 | 800 900
The words contained in this file might help you see if this file matches what you are looking for:

...Dynamic programming partitioning books and edit distance practice suppose we have to scan through a shelf of this task can be split between k workers do not want reorder rearrange the so instead divide into regions each worker is assigned one what fairest way up dp dividing work if are equal length just give same number size how nd partition linear problem input arrangement s nonnegative integers an integer n ranges such that maximum sum over all minimized example consider following where should minimize...

no reviews yet
Please Login to review.