Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a sorted list T of n integers and an integer k , we want to partition T into k contiguous segments such that every

Given a sorted list T of n integers and an integer k, we want to partition T into k contiguous
segments such that every element of T is in a segment, and the maximum sum of elements in
any segment is minimal. For example, if T=[100,200,300,400,500] and k=2, then the best
partitioning is 100,200,300 for the first segment and 400,500 for the second segment because it
leads to a sum of 600 in the first and 900 in the second. There isn't a way to partition T so that
the sum of elements in each segment is less than 900.
(a) Find lower and upper bounds for the maximum sum of elements in a segment in any parti-
tioning of T. You may assume that every integer in T is less than some integer N.
(b) Give an algorithm which determines whether T can be partitioned into k contiguous segments
such that the sum of elements in each segment is less than some constant c.
[
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago