Practice free →
HomeGATE CSEcomputerscienceAlgorithms › Bottom-up dynamic programming (tabulation) diffe…

Bottom-up dynamic programming (tabulation) differs from top-down memoisation in that

Atabulation uses no memory while memoisation needs O(n²)
Btabulation fills the table iteratively; memoisation is recursion plus a cache
Ctabulation only solves graph problems; memoisation only solves string problems
Dtabulation is exponential; memoisation is polynomial
Answer & Solution
Correct answer: B. tabulation fills the table iteratively; memoisation is recursion plus a cache
Both approaches reach the same answer in the same big-O, but they look different. Tabulation iterates over the table in dependency order with no recursion; memoisation keeps the natural recursion and adds a lookup cache. Tabulation tends to have smaller constants and no stack-depth worry; memoisation is sometimes easier to write.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions