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.
In a right triangle, the sides are in the ratio 3:4:5. A circle is inscribed in the triangle. What is the area of the triangle covered by the circle?Â
A is 60% as efficient as B, and C is 50% as efficient as A. If A, B, and C working together can finish a task in 15 days, how many days will it take for...
Which of the following graphical models represents the relationships between entity sets in a database?
One-fifth of a number is equal to two-fifths of 25% of another number. Determine the ratio of the two numbers.
If log₂(x) + log₄(x) + log₈(x) = 11, with x > 0, then the value of x is:
A rectangular park is 120 m long and 80 m wide. A path of uniform width is constructed inside the park. If the area of the path is 3600 m², find the wi...
A and B initiated a business by investing Rs. 6,000 and Rs. 3,000, respectively. Their investments were made for 8 months and 'm'...
The average score of 24 students in a class is 78. If the top 4 scores are removed, the new average score of the remaining students drops by 2 points, w...
? = (3.89 × 64.83 ÷ 12.96) 1.98 + 15.08% of 499.81