Question: Suppose that lines 1 5 and 1 6 in algorithm 3 ( Fig . 2 . 7 ) are replaced by 1 5 int maxLeftSum

Suppose that lines 15 and 16 in algorithm 3(Fig.2.7) are replaced by
15 int maxLeftSum = maxSumRec( a, left, center -1);
16 int maxRightSum = maxSumRec( a, center, right );
Would the routine still work?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!