News for hackers. Stuff that matters.
Re:Chemical equation balancing: An integer programming approach by yummyfajitas on Wednesday February 10, 2016 @05:02PM (#11076431)
Amusingly, I discovered a method very similar to this in college. My method was simpler - stick a 1 in front of one chemical, then you get an n x n linear system of equations for the remaining compounds. Solve it, then figure out what to multiply by to get an int solution. I suspect that my version isn't stable, which I gather is the problem these guys are solving.

I was forbidden from using this method on the final, since it isn't the ad-hoc method that was taught.

Re:Chemical equation balancing: An integer programming approach by insaneirish on Wednesday February 10, 2016 @06:06PM (#11076945)
This reminds of my first chemistry class in high school. Everything in the beginning seemed so trivial that I tended to not pay attention at all. I had my own methods for various things (including stoichiometry like you).

Then the first test came. I seemingly had no problem with it. A few days later, the tests were returned. Everyone got theirs back except for me. I was summoned to the front of the room and the teacher asked me to explain how I did things. We went over the first problem, she understood my explanation. The second, same thing. I was continuing my explanations and she cut me off--"Forget it; I trust you." She flipped the paper over and wrote 100 on it and gave it to me.

Boy did that make me never want to do any work in that class again. Apparently I and the eventual valedictorian of our class were real pains in the asses to her. We were "punished" by being given a box of magazines (Scientific American, etc.) and told to sit in the back of the room and not talk.

I apologize, Ms. M., for being nuissance, but I think this was a fair treatment rather than being scolded for having my own ways of doing things.

Re:Chemical equation balancing: An integer programming approach by kwhitefoot on Thursday February 11, 2016 @07:43AM (#11079760)
Anecdotal evidence suggests to me that this is actually all too common. When I describe my primary and secondary schools (1970-1974, Park Senior High, etc., Swindon) where challenging teachers with difficult questions and alternative methods simply prompted the teachers to either gently shoot down your naive idea or return the challenge with something a bit more difficult I am often told "That's how it worked at your school, the rest of us didn't have it so good."
Re:Chemical equation balancing: An integer programming approach by eru on Wednesday February 10, 2016 @05:05PM (#11076457)
How are you supposed to solve it, and how would they know?
Re:Chemical equation balancing: An integer programming approach by yummyfajitas on Wednesday February 10, 2016 @05:42PM (#11076749)
Roughly speaking, this method: http://www.wikihow.com/Balance-Chemical-Equations

Showing work is required, and if work contains a matrix then they'd just mark it as zero.

Re:Chemical equation balancing: An integer programming approach by nsajko on Wednesday February 10, 2016 @05:48PM (#11076799)
> Showing work is required, and if work contains a matrix then they'd just mark it as zero.

Ugh, this makes me so angry and resentful ...

Re:Chemical equation balancing: An integer programming approach by irixusr on Wednesday February 10, 2016 @08:55PM (#11077741)
School's first objective is to make you obey.
Re:Chemical equation balancing: An integer programming approach by eru on Friday February 12, 2016 @04:12AM (#11086067)
Looks isomorphic to what you can do with matrices (including some heuristics to what rows to go for first). Of course, that doesn't make it better.
Re:Chemical equation balancing: An integer programming approach by wrong_variable on Wednesday February 10, 2016 @05:40PM (#11076734)
by placing backdoors in his technique.
Re:Chemical equation balancing: An integer programming approach by nsajko on Wednesday February 10, 2016 @05:44PM (#11076768)
Did you ask if it would be alright to use your unusual method and only then had this method disallowed, or did somebody forbid you from using it after eg. seeing you use it for homework?

I wonder if they did it purely to reduce the workload of the TAs which will be grading the finals, or did somebody think it would be wrong to have an unorthodox path to the result.

Re:Chemical equation balancing: An integer programming approach by irixusr on Wednesday February 10, 2016 @08:52PM (#11077726)
I was a TA and grading "independent" solutions is a pain.

But that's their job. And it's the university's to hire enough TAs to do a good, through, job