0% found this document useful (0 votes)
78 views2 pages

Sample Viva Questions Fractional Knapsack and Greedy Algorithm

Viva DAA question

Uploaded by

Pooja hande
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Sample Viva Questions Fractional Knapsack and Greedy Algorithm

Viva DAA question

Uploaded by

Pooja hande
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Fractional Knapsack and Greedy Algorithm:

1. Explain the concept of the Fractional Knapsack problem and the objectives it aims to
solve. How does the Greedy Algorithm efficiently address this problem?
2. Describe the Greedy Strategy applied to solve the Fractional Knapsack problem. What
criteria guide the selection and fractioning of items?
3. Discuss the presence of optimal substructure in the Fractional Knapsack problem. How
does the Greedy Strategy exploit this property for obtaining the optimal solution?
4. Contrast the Fractional Knapsack problem with the 0/1 Knapsack problem. How does the
Greedy Algorithm differ in its application for these two problems?
5. Analyze the time and space complexity of the Greedy Algorithm applied to solve the
Fractional Knapsack problem. How does complexity vary with the number of items and
the knapsack's capacity?
6. Discuss the performance and scalability of the Greedy Algorithm when applied to large
inputs in the Fractional Knapsack problem. How does it handle a larger number of items
efficiently?
7. Explain how the Greedy Algorithm selects the optimal set of items and fractions to
maximize the knapsack value in the Fractional Knapsack problem.
8. Discuss the significance of adaptive and non-adaptive strategies in the Greedy Algorithm
approach for the Fractional Knapsack problem. Provide examples illustrating their usage.
9. How does the Greedy Algorithm approach manage negative values or weights of items in
the Fractional Knapsack problem? Discuss potential implications and adaptations
required.
10. Explore the potential application of heuristics in enhancing the efficiency or decision-
making process of the Greedy Algorithm for the Fractional Knapsack problem.
11. Explain the selection criteria and the characteristics used by the Greedy Algorithm to
achieve an optimal solution in the Fractional Knapsack problem.
12. Illustrate real-world scenarios where problems similar to the Fractional Knapsack
problem, solved using the Greedy Algorithm, find practical applications. Provide
examples from various domains.
13. How can the Greedy Algorithm be adapted to handle modified variants of the Fractional
Knapsack problem, such as the existence of multiple knapsacks or additional constraints?
14. Discuss the trade-offs in using the Greedy Algorithm for the Fractional Knapsack
problem. Are there instances where it might not provide an optimal solution?
15. How does the Greedy Algorithm cope with scenarios where the item value-to-weight
ratio varies significantly in the Fractional Knapsack problem?
16. Explore the potential for parallelization and distributed computing to enhance the
efficiency of the Greedy Algorithm for the Fractional Knapsack problem. Discuss the
challenges and advantages associated with this approach.
17. Compare the Greedy Algorithm's performance for the Fractional Knapsack problem with
other optimization techniques or algorithms. Discuss their respective strengths and
limitations.
18. Discuss the adaptations or strategies employed in the Greedy Algorithm to handle
specific constraints or variations in the Fractional Knapsack problem.
19. Discuss the ethical considerations and social implications of using the Greedy Algorithm
to solve optimization problems like the Fractional Knapsack.
20. How can the Greedy Algorithm be extended or modified to handle multi-objective
optimization in the Fractional Knapsack problem?

You might also like