We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More



        Fundamentals of Algorithms CS502-

                     Spring 2015

              ASSIGNMENT #3


Your assignment must be uploaded/submitted at or before 24thJuly 2015 Uploading instructions Please view the assignment submission process document provided to you by the Virtual University to upload the assignment.

Rules for Marking

It should be clear that your assignment will not get any credit if:

O The assignment is submitted after due date.

O The submitted assignment does not compile or run. Or corrupt file

O The assignment is copied.

O Submit your solution in Microsoft Word document “doc/docx”


This assignment will help you to understand the concepts of Knapsack Problem and Huffman encoding.

The grip on these topics will help you to understand the cores of Dynamic Programming and Greedy paradigms and increase your confidence to apply these strategies for real world problems.


1.In order to attempt this assignment you should have full command on Lecture # 17to Lecture # 26

and also read the text book “Introduction to Algorithms” byThomaH.Cormen particularly for Huffman encoding technique for compressing the data.

2.In order to solve this assignment you have strong concepts about following topicsüKnapsack Problem(Dynamic Programming)üRadix Sort Books to read For solution Cormen, Leiserson, Rivest, and Stein (CLRS) 2001, Introduction to Algorithm, (2nd ed.) McGraw Hill.

Estimated Time

4 Hours For Question1 maximum time is 2.5 hours ,divide the time according to your ease 1.5 hour will enough to understand the logics0/1 Dynamic Programming and in 1 hour can design your problem solution according to given scenario; and for second problem focus on the radix sort and you can develop all this in 1.5 hour.

It all depends upon your sheer concentration.

Question# 1(10) Let’s assume,

You are working in Multinational Organization XYZ and your company is going to launch projects at broader level. Your Company has 140 Billion $ for investment. You area Business analyst in your company and you have to develop the strategy to maximize the earned profit following the given limits; projects Are to be launched in the year 2016.

•First project is about Research and Development of underdeveloped countries which has cost 40 billion $ and the profit earned will be54 Billion $, and

•The second project is to launch the Software Industries for security Enhancements in different countries which has cost 60 billion$ and profit earned will be 40billion $.

•The Third project is relating to Launch the Industry Plants Nano Technology design for the computing purposes the cost is 70 Billion $ giving the profit of

72 billion $


•The fourth project is to launch quality Medicine Formation

(Pharmaceutical Oriented) project to serve Humanity and has cost 76


$ and profit is 84 billion $ and

 •There is also fifth project which is relating to Chemical Industries in many countries which has cost 36 billion $ giving the profit of 40 billion $


Find out the projects to be selected to earn the maximum profit using

0-1 Knapsack you may assign explicit simple variables for your ease to proceed the calculations.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Views: 16565


Replies to This Discussion

sir ne kaha tu hai k doc/docx mein submit krni hai. mtlb k MS word ki file submit krni hai

kaha pr kaha hy dikhao mje please Dil NAwaz please

please shear cs502 assignment solution


Looking For Something? Search Below

Latest Activity

+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked + ! ! Pagal Dewani ! ! +'s discussion Ap kase roty hain ....................????
35 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked ★彡[ꜱʜʏɴᴀ]彡★'s discussion usi k naam sey jeena, usi sey merna hai
39 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked ★彡[ꜱʜʏɴᴀ]彡★'s discussion Ke Aaj Raat Chale Gi Hawa Udaasi Ki..
39 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked Omar's discussion Thanks giving
40 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ replied to +!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓'s discussion ............❤️❤️❤️ASAL Kahaniiiii❤️❤️❤️.........
41 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked ★彡[ꜱʜʏɴᴀ]彡★'s discussion Aksar
43 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked Laila kabeer's discussion !!!!!!!!!! ISHFAQ AHMED!!!!!!!!!!!!!!!!!
56 minutes ago
+!!!★彡 "Å⫶l̊⫶å⫶n̊⫶ "彡★✓ liked + + + + " Tw!nkle "'s discussion Happy HAppy birthday !! FIYA
59 minutes ago
★彡[ꜱʜʏɴᴀ]彡★ posted discussions
4 hours ago
★彡[ꜱʜʏɴᴀ]彡★ replied to + ! ! Pagal Dewani ! ! +'s discussion Ap kase roty hain ....................????
8 hours ago
+ + + + " Tw!nkle " posted a discussion
8 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion ZOO507 Principles of Animal Ecology PPTs Slides With Solved MCQs File in the group ZOO507 Principles of Animal Ecology
10 hours ago

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service