You are not logged in.
Pages: 1
Hi there, I could use help with another one of these. Thank you for all the help!!
Contraints:
Only one player from each match can be used.
There are 10 matches (A vs B, C vs D, E vs F, etc.).
5 players must be picked.
The total combined cost of the 5 picked, must be > or = to 495 and < or = to 500 (495-500)
All combinations 494 and under, or over 500 are not important.
I need to be able to generate a list of combinations, that fit this criteria, along with associated costs.
Data Set:
Match Cost
1 A 84
B 119
2 C 91
D 108
3 E 118
F 82
4 G 121
H 78
5 I 86
J 113
6 K 84
L 115
7 M 83
N 116
8 O 111
P 88
9 Q 103
R 96
10 S 117
T 82
List:
{84, 119, 91, 108, 118, 82, 121, 78, 86, 113, 84, 115, 83, 116, 111, 88, 103, 96, 117, 82}
Offline
Usually Agnishom knocks these out for me, but haven't seen him on here....
Offline
He is preparing for a chemistry test.
So, he is solving problems like this for a change:
What is the minimum volume of water required to dissolve 1g of Calcium sulphate at 298 K. For calcium, K_sp = 9.1 * 10^-6
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Good luck on your exam! That's some math I can do! lol
If you can do my problems you will do great in chemistry. I have taken general chem, organic and biochem... been a few years, but let me know if you need any help!
Offline
I wish you told me earlier. I was having trouble solving these. Thanks
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Can you help me with this?
Last edited by Agnishom (2015-02-22 13:38:21)
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Thats a tough one, like I said its been awhile...I don't think I would be much help with out digging out my old books...
To solve this I think you set up the equations by how they dissociate...then I am pretty sure you can use the Ksp to solve for the individual values...
Get the molar mass to convert to g/l...and I am lost...lol sorry
Offline
Hi;
I am getting 555 values.
My chemistry test was fine.
I am sorry for not replying sooner. I had just forgotten this thread
I was reading a programming article today, it reminded me of you
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Thanks again Agnishom! Glad your Chemistry test went well!! I have been studying for a big exam myself, and haven't been back on here in a bit. If you catch this soon I have another data set I was hoping that you could run the numbers on. But if you can't get to it within the next 24 hours (after I posted this), then I won't be able to use it. So thank you if you can post it quickly! Thank you for your past help and time with these, I need to learn how to set these up myself. How did you get started learning programming code?
{76,122,90,105,117,78,84,111,124,71,77,118,117,78,106,89,114,81}
Contraints:
Only one player from each match can be used.
There are 10 matches (A vs B, C vs D, E vs F, etc.).
5 players must be picked.
The total combined cost of the 5 picked, must be > or = to 495 and < or = to 500 (495-500)
All combinations 494 and under, or over 500 are not important.
I need to be able to generate a list of combinations, that fit this criteria, along with associated costs.
Data Set:
Match Cost
1 A 76
B 122
2 C 90
D 105
3 E 117
F 78
4 G 84
H 111
5 I 124
J 71
6 K 77
L 118
7 M 117
N 78
8 O 106
P 89
9 Q 114
R 81
Offline
I scored 77 out of 100 in the total in chemistry which is the highest in our school!
If you are interested in only this kind of problems, I have an idea. My suggestion is that everytime you need this, you can go here, fork my code, modify line 7 and 26, and run it in haskell in that website itself
Last edited by Agnishom (2015-03-13 14:18:24)
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Wow!! Congratulations! You should be very proud of that!!!! Great work!!
Thanks for your help again! I will try out that website and let you know how it goes.
Keep up the great work in Chemistry!!
Offline
Let me know what you think of my idea.
77/100 is not too good. I suspect there are guys in other schools who score 85+ in the same course
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
That website was amazing! I was able to input the numbers from the previous data set and got the matching 555!
Great thinking! This is really helpful, I really appreciate this Agnishom!
And as far as not getting 85+ on the Chemistry exam, just know you did a good job. it's always best to avoid comparing yourself to others, and know if you work hard you can get to where ever you want to be. There are lots of great quotes out there, but when it comes to comparing your performance to others, this is my favorite.
"The only person you should try to be better than is the person you were yesterday."
Keep up the good work!
Offline
Thank you for your inspiring words, Nick!
By the way, I put up one of this problems as a programming puzzle on a site I moderate.
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Anytime, thanks. Let me know if they can figure it out. You figured it out quick! I am going to try to fork a problem on my own here soon. I'll post the details and see if I get the right answer.
Offline
Around 33 people could solve it
Oh, bobbym has a mathematical formulation if you are interested
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Pages: 1