Question: Problem 5 : ( 1 5 points ) Given a list of integers, design an algorithm to form the largest possible number. Example: given array

Problem 5: (15 points) Given a list of integers, design an algorithm to form the largest
possible number. Example: given array {12,4,6,89,15}, the largest integer that can be
formed is 89641512.
1.(5 points) Describe a greedy algorithm.
2.(5 points) State and prove the greedy choice property of your greedy algorithm. (2
points for the statement, and 3 points for a proof)
3.(5 points) State and prove the optimal substructure property of your greedy algorithm.
(2 points for the statement, and 3 points for a proof)

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 Programming Questions!