Category PYQ’s

Write an algorithm to solve knapsack problem using greedy technique.

Write an algorithm to solve the knapsack problem using greedy technique. Find the optimal solution to the knapsack instance n=7, m=15.             (P1, P2, ………,P7) = (10,5,15,7,6,18,3)             (W1,W2,…….,W7)=(2,3,5,7,1,4,1) Answer:-…

Programming in C++ Multiple Choice Questions 

Programming in C++ Multiple Choice Questions  1. What is C++? a)            C++ is an object oriented programming language b)            C++ is a procedural programming language c)            C++ supports both procedural…