Question
Which of the following problems is typically solved
using Dynamic Programming, where items cannot be broken into smaller pieces?Solution
The 0/1 Knapsack Problem involves selecting items, each with a weight and a value, to maximize the total value within a given capacity, with the constraint that each item can either be taken entirely (1) or not at all (0). This problem exhibits optimal substructure and overlapping subproblems, making it a classic DP problem. The Fractional Knapsack Problem, where items can be broken, is solved by a greedy approach.
Which of the following is used to speed up data retrieval in a relational database?
What does the term "referential integrity" mean in a database context?
In the context of databases, what does the term sharding refer to?
Which database model is based on the mathematical set theory and is the foundation of many modern databases?
Pick the odd one out.
What is the full form of DBMS?
How many types of architecture we have in DBMS
Which of the following joins returns all rows from both tables, filling in NULL values for non-matching rows?
Which of the following is true about Information?
Which of the following storage devices is considered non-volatile?