Choose the correct answer from the options below:
Answer: 4) B and C only
When developing a dynamic programming algorithm, the sequence of steps followed is:
Choose the correct answer from the options given below:
Answer: (4) C, B, D, A
Explanation:
The standard steps for designing a dynamic programming algorithm are:
Hence, the correct order is C → B → D → A.
Why: The LCS length for the two sequences is $4$. $2,3,2,1$ is a subsequence of both: $\{1,\underline{2},3,\underline{2},4,1,\underline{2}\}$ and $\{\underline{2},4,\underline{3},1,\underline{2},\underline{1}\}$. Option (4) has length $5$ (too long), and (1), (2) are not subsequences of both.
| List I | List II |
|---|---|
| A. Circular Queue | III. Dijkstra algorithm |
| B. Priority Queue | II. CPU Scheduling |
| C. Double Ended Queue | I. Print Queue |
| D. Simple Queue | IV. Palindrome checking |
Choose the correct answer from the options given below:
| List I (Hashing Collision Handling Method) | List II (Strategy) |
|---|---|
| A. Chaining | I. Check next slot |
| B. Linear Probing | II. Use second hash function |
| C. Quadratic Probing | III. Linked list at index |
| D. Double Hashing | IV. Skip slots using quadratic step |
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.