Question
Divide and conquer partition a problem into independent
smaller sub problems, whereas dynamic programming partition a problem into overlapping sub-problem.Solution
Divide & Conqure Dynamic Programming Partition a problem into independent smaller sub problems Partition a problem into overlapping smaller sub problems Doesnt store solution of sub-problems.(identical sub-problems may arisse-results in the same computations are performed repeatedly.) stores solution of sub-problems : thus avoids calculations of same quantity twice Top down alogithms : which logically progresses from the initial instance down to the smallest sub- instances. Bottom up algorithms : in which the smallest sub-problems are explicity solved first and the results of the used to construct solutions to progressively larger sub-instances.
'рд╕реГрд╖реНрдЯрд┐' рдХрд╛ рд╡рд┐рд▓реЛрдо рд╢рдмреНрдж рд╣реИ
рд╕рдорд╛рд╕ рдЬрд┐рд╕рдореЗрдВ рдХреЛрдИ рдкрдж рдкреНрд░рдзрд╛рди рдирд╣реАрдВ рд╣реЛрддрд╛ рд╣реИ, рдЙрд╕реЗ ____________рд╕рдорд╛рд╕ рдХрд╣рддреЗ я┐╜...
рдШреЛреЬрд╛ рдХрд╛ рдкрд░реНрдпрд╛рдпрд╡рд╛рдЪреА рд╣реИ ?
рд╢реБрджреНрдз рд╡рд░реНрддрдиреА рд╣реИ
рдЦрд╛рд▓реА рд╕реНрдерд╛рди рднрд░реЗрдВ-
рдЕрдХреНрд╖рдп рдХреА рдорд╛рддрд╛рдЬреА рдХрд╛ рдмрдирд╛рдпрд╛ рдорд┐рд░реНрдЪ я┐╜...
рдЖрдИрдирд╛тАЩ рд╢рдмреНрдж рдХреНрдпрд╛ рд╣реИ :
рдХреМрди-рд╕рд╛ рд╢рдмреНрдж 'рдШреЛрдбрд╝рд╛' рдХрд╛ рдкрд░реНрдпрд╛рдпрд╡рд╛рдЪреА рдирд╣реАрдВ рд╣реИ?┬а
рд░рд╛рдзрд╛ ( 1) рд╣реИ ( 2) рддреЗрдЬрд╝ ( 3) рджреМрдбрд╝рддреА ( 4) ред рдкреНрд░рд╕реНрддреБрдд рдЦрдВрдбрд┐рдд рд╡рд╛рдХреНрдп рдореЗрдВ...
'рдирд┐рд╢рд╛рдЪрд░' рдХрд╛ рдЕрд░реНрде рд╕рдорд╛рд╣рд┐рдд рдирд╣реАрдВ рд╣реИ
рд╡рд┐рджреНрдпрд╛ рдХреА рдЪрд╛рд╣ рд░рдЦрдиреЗ рд╡рд╛рд▓рд╛ тАЬ рдХреЗ рд▓рд┐рдП рдПрдХ рд╢рдмреНрдж рд╣реИ-