Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2011, 08:02 AM   #1 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default knapsack problems


i am facing problems while solving knapsack problems using C++. Help me out.
i tried googling for it and found a page regarding it but it solved it using greed algo. but its not 100% trustworthy to produce the optimal result.
also can anyone give me an idea of how to solve these questions by trying to have every combination or brute force...

[ps - this time in zonal computing olympiad, one of the two questions was knapsack type problem. i solved the other one but failed to solve the knapsack problem which lead to my failure to enter the 2nd round. exactly same thing happened with me last year too.
i am very sad coz this was my last chance(i m in 12th) to enter the national level informatics olympiad. also i failed to register for the zonal informatics olympiad(which is quite easy and majority selection takes place through it) due to lack of examination information.]
nims11 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2