473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need help with designing an algorithm

Hello,

Thank you for helping me with this. I need to design an algorithm for the following.

From the table below, I want to find out a set of 7 names that gives the largest sum of marks possible with keeping the total fees less than 4000.

Just to be clear, here is the problem in different words.

Desired output:
Set of 7 names (Name1,Name2,Name3,Name4,Name5,Name6,Name7)that gives the largest sum of Marks
(Marks1+Marks2+Marks3+Marks4+Marks5+Marks6+Marks7) should be the largest, satisfying the given condition.

Conditions:
Sum of Fees of 7 names is less than 4000.
Fees1+Fees2+Fees3+Fees4+Fees5+Fees6+Fees7 < 4000

Name Marks Fees
A 87 345
B 4 897
C 87 432
D 34 435
E 6 345
F 3 789
G 9 78
H 8 345
I 7 879
J 8 324
K 87 789
L 43 4536
M 65 234
N 87 897
O 65 978
P 23 324
Q 89 342
R 9 789
S 87 34
T 76 234
U 654 897
V 76 23
W 879 435
X 0 897
Y 435 54
Z 56 23


I really appreciate your response.

Regards!
Nov 7 '13 #1
0 2072

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: sasha.mal | last post by:
Hello everybody! Could anyone help with a practical graph isomorphism algorithm, coded in C++ (C would also do), to work with genus bounded graphs of a bounded degree. Currently, any...
10
by: Johnny Snead | last post by:
Hey guys, Need help with this random sort algorithm private void cmdQuestion_Click(object sender, System.EventArgs e) { Random rnd = new Random(); //initialize rnd to new random object...
6
by: Tamir Khason | last post by:
I have parent-child hashtable with more then 900K items and I have to build all pathes for this. E.G Key ParentKey 1 0 2 1 3 2 4 8 5 3 6 1 7 ...
4
by: FBM | last post by:
Hi, I am working on a program that simulates one of the elements of ATM. The simulation stores events which occurs every some milliseconds for a certain amount of time. Every time that an event...
2
by: ManDev | last post by:
Hi, We have checksum function in sql server 2000,i would like to implement same in .Net.Can some one provide checksum algorithm. Thanks ManDev.
9
by: pereges | last post by:
Hello I need some ideas for designing a recursive function for my ray tracing program. The idea behind ray tracing is to follow the electromagnetic rays from the source, as they hit the...
2
by: Bruce | last post by:
Hi I am trying to come up with an algorithm to solve the following problem. There are x components and y machines (y x) one machine can only run one component. Each component has 2 requirements...
1
by: lanfordc | last post by:
I have some question I have to answer but do not know how. I was hoping to get some help from the forums. Here are three of twenty question I have to answer. 1. Write a pseudocode algorithm for...
3
by: Van Dugall | last post by:
I writing a economic statistics program.. I need to allocate billions of dollars and I have been shown projects to consider and ith project estimates its cost to be dollars and claims to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.