Question
What is the difference between memoization and
tabulation in Dynamic Programming?Solution
Memoization (Top-down DP): A recursive approach where the results of function calls are stored (cached) so that if the same function call occurs again, the stored result is returned instead of recomputing. It starts from the main problem and recursively solves subproblems. Â Â Â Tabulation (Bottom-up DP): An iterative approach where a table (usually an array) is filled starting from the smallest subproblems and building up to the solution of the main problem.
Terylene is a condensation polymer of ethylene glycol and which acid?
Which chemical is also known as carbolic acid?
A radioactive substance emits?
Which of the following pairs of phenomena illustrate the particle nature of the electromagnetic radiation?
A storm is predicted if atmospheric pressure –
Alkali metals have ______.
I. low melting points
II. low densities
Absolute alcohol is prepared from rectified spirit by using the following process :
NaCl has which kind of bonds?
The chemical name of ______ is sodium hydrogen carbonate.
Compressed natural gas (CNG) primarily consists of which gas?