Exercises
- Which of the following options will be correct when a top-down approach of dynamic programming will be applied to solve a given problem related to the space and time complexity?
- It will increase both time and space complexity.
- It will increase the time complexity, and decrease the space complexity
- It will increase the space complexity, and decrease the time complexity
- It will decrease both time and space complexities.
- Dijkstra’s single shortest path algorithm is applied on edge weighted directed graph shown in Figure 3.17. What will be the order of the nodes for the shortest path distance path (Assume A as source) ?
Figure 3.17: An edge-weighted directed graph
- Consider the weights and values of the items listed in Table 3.8. Note that there is only one unit of each item.
Item
...