Dynamic Programming - Typical Problems - Complexity Analysis

Download Q&A
Q. In dynamic programming, what does the term 'state' refer to?
  • A. The current value of a variable
  • B. A specific subproblem
  • C. The final solution
  • D. The input size
Q. What is the space complexity of the dynamic programming solution for the edit distance problem?
  • A. O(n)
  • B. O(m)
  • C. O(n * m)
  • D. O(1)
Q. Which of the following algorithms uses dynamic programming to solve the problem of finding the shortest path in a weighted graph?
  • A. Dijkstra's Algorithm
  • B. Bellman-Ford Algorithm
  • C. A* Search
  • D. Depth-First Search
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely