tea.mathoverflow.net - Discussion Feed (Spreadsheet programming for combinatorics- Tips and tricks/Reference request.) 2018-11-04T23:15:54-08:00 http://mathoverflow.tqft.net/ Lussumo Vanilla & Feed Publisher Dan Moore comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9409) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9409#Comment_9409 2010-10-05T14:35:04-07:00 2018-11-04T23:15:54-08:00 Dan Moore http://mathoverflow.tqft.net/account/381/ I use Excel to investigate lower dimensional members of some families of polytopes I'm interested in. Starting with the vertex-facet incidence matrix of polytope P, I create a sheet that has one row ...
I use Filter to select only the rows having a 1 in a selection of vertex columns (representing the face lattice of an element of P*), or starting from the bottom (where there are rows corresponding to the facets of P, and vertices of P*), to select only the rows containing a selection of all the blanks of a facet of P (representing the face lattice of a facet of P).

Using a spreadsheet is not the fastest way to do the computations, of course. But I enjoy it, and also, I'm mainly investigating - I don't always know what I'm looking for.]]>
VP comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9229) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9229#Comment_9229 2010-09-24T00:54:45-07:00 2018-11-04T23:15:54-08:00 VP http://mathoverflow.tqft.net/account/238/ In view of many interesting (and unexpected) comments on this thread, I think that it would make perfect sense if Sonia goes ahead and posts her question! It also appears to me that with increasing ... In view of many interesting (and unexpected) comments on this thread, I think that it would make perfect sense if Sonia goes ahead and posts her question! It also appears to me that with increasing frequency, meta discussions become ersatzes for the proper Q & A at the main site. Surely this was never intended.

]]>
Mariano comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9227) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9227#Comment_9227 2010-09-24T00:34:26-07:00 2018-11-04T23:15:54-08:00 Mariano http://mathoverflow.tqft.net/account/61/ What parts of Excel as useful in constructing Latin squares? I imagine the built in table is probably useful, but does any other spreadsheet facility come into play? For example, would MS Paint and a ... What parts of Excel as useful in constructing Latin squares? I imagine the built in table is probably useful, but does any other spreadsheet facility come into play? For example, would MS Paint and a mouse comfortable enough that you can write with it also do?

]]>
Ryan Budney comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9224) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9224#Comment_9224 2010-09-23T18:50:46-07:00 2018-11-04T23:15:54-08:00 Ryan Budney http://mathoverflow.tqft.net/account/107/ Dougy, one of my points was you could very easily write software that produces an environment similar to Excel for the purposes of studying Latin squares. Then you could build whatever additional ... Dougy comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9223) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9223#Comment_9223 2010-09-23T18:02:46-07:00 2018-11-04T23:15:54-08:00 Dougy http://mathoverflow.tqft.net/account/166/ My research is in design theory (in particular Latin squares) and I use Excel (or variants) quite often when I need to construct an example of Latin square "by hand". There's a ...
- Often I do (I personally use GAP), but some of the constructions are quite intricate so I need to check each line of code with an explicit example (which I draw in Excel).
- Sometimes the Latin square I want to construct is mentally ill-defined, but drawing it by hand will give me an idea of what conditions I need. If I later find that I actually wanted some other conditions, I might have to completely re-write the code. Moreover, Excel will point out errors along the way (whereas in GAP, I'll have to write the code, Read(...) it and test it).
- Sometimes the Latin square I am trying to construct does not actually exist, whence the program would tell me it does not exist (but how can I know if my code is correct?). Working it out by hand gives me insight into why it doesn't exist (and typically an idea of how _not_ to prove it's non-existence, because a partial construction exists).

There are, of course, numerous and significant advantages of writing code instead of using Excel in a range of applications (but this is the other side of the coin).]]>
Mariano comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9170) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9170#Comment_9170 2010-09-20T04:42:27-07:00 2018-11-04T23:15:54-08:00 Mariano http://mathoverflow.tqft.net/account/61/ There was no need to defend Sonia! :) Sonia, python is not the only good alternative: I usually use Mathematica or Haskell to do enumerations of combinatorial things, but I prefer the first if I am ... There was no need to defend Sonia! :)

Sonia, python is not the only good alternative: I usually use Mathematica or Haskell to do enumerations of combinatorial things, but I prefer the first if I am going to do pictures. Also, Mathematica can, with a bit of wrapping your head around its philosophy, be made to make quite nice pictures of anything: its graphical language is rather straightforward; but apart from simple interactive manipulations (like changing parameters in 7.0's Manipulate construct---you'll find tons of examples of this in Wolfram's Demonstration Project online) I have not managed to manipulate graphically the output in a way that is useful to me---I imagine it is possible, though.

]]>
Sonia Balagopalan comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9169) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9169#Comment_9169 2010-09-20T02:56:03-07:00 2018-11-04T23:15:54-08:00 Sonia Balagopalan http://mathoverflow.tqft.net/account/15/ So to sum up, my original question may not attract very many useful answers, and has a real chance of attracting some minor controversy.Guess I really should get around to learning python.
Guess I really should get around to learning python.]]>
Ryan Budney comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9151) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9151#Comment_9151 2010-09-19T08:47:14-07:00 2018-11-04T23:15:54-08:00 Ryan Budney http://mathoverflow.tqft.net/account/107/ Yemon, I'm somewhat on the opposite road. When I was a child (like, grade 9,10, etc) I wrote software for hospitals, engineering companies and wrote video games for my own amusement. I was very ...
When I was a child (like, grade 9,10, etc) I wrote software for hospitals, engineering companies and wrote video games for my own amusement. I was very much a hacker that took the shortest route to the end result with no thought towards re-use, or other people looking at the code.

Now I'm on the other side and I'm trying to re-use other people's code. :) So I'm tightening up my standards.]]>
Yemon Choi comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9149) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9149#Comment_9149 2010-09-18T23:47:35-07:00 2018-11-04T23:15:54-08:00 Yemon Choi http://mathoverflow.tqft.net/account/81/ Ryan, my impression is that the spreadsheet was being used like a sketchpad. Sometimes you just want to use the ingredients or implements at hand, rather than go out and buy a new skillet and Kobe ... Ryan, my impression is that the spreadsheet was being used like a sketchpad. Sometimes you just want to use the ingredients or implements at hand, rather than go out and buy a new skillet and Kobe beef.

I guess, having also spent some time as a grad student with people who evangelized the right way of doing computer-based things, I am perhaps being needlessly touchy.

]]>
Ryan Budney comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9148) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9148#Comment_9148 2010-09-18T22:32:36-07:00 2018-11-04T23:15:54-08:00 Ryan Budney http://mathoverflow.tqft.net/account/107/ @Andy, one of the nice things about Python is that if you've ever learned any high-level language, Python is a very quick adaptation -- I've been coding in C++ for 16 years almost exclusively, and I ... Andy Putman comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9147) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9147#Comment_9147 2010-09-18T22:26:05-07:00 2018-11-04T23:15:54-08:00 Andy Putman http://mathoverflow.tqft.net/account/113/ @Ryan : That would involve learning Python, etc. I'm pretty good with C and C++, but I would have to have a VERY good reason to spend some time learning a new language. If a spreadsheet did what I ... Ryan Budney comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9146) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9146#Comment_9146 2010-09-18T22:17:21-07:00 2018-11-04T23:15:54-08:00 Ryan Budney http://mathoverflow.tqft.net/account/107/ @Yemon, I'm not sure I see the tone the way you do. I agree with Mariano in large part -- languages like Python are so feature-rich, portable and extensible that I expect you could do anything ... Michael Lugo comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9145) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9145#Comment_9145 2010-09-18T22:14:33-07:00 2018-11-04T23:15:54-08:00 Michael Lugo http://mathoverflow.tqft.net/account/37/ I'd like to second Yemon's comment. (I also use spreadsheets in this way.) I'd like to second Yemon's comment. (I also use spreadsheets in this way.)

]]>
Yemon Choi comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9144) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9144#Comment_9144 2010-09-18T21:32:05-07:00 2018-11-04T23:15:54-08:00 Yemon Choi http://mathoverflow.tqft.net/account/81/ Chacune à son goût? It seems that Sonia is using an easy tool at hand to aid visualization (if Alexander's comments are on the mark) and so I don't quite "get" the tone of some of the ... Chacune à son goût? It seems that Sonia is using an easy tool at hand to aid visualization (if Alexander's comments are on the mark) and so I don't quite "get" the tone of some of the responses.

]]>
Ryan Budney comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9140) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9140#Comment_9140 2010-09-18T17:57:57-07:00 2018-11-04T23:15:54-08:00 Ryan Budney http://mathoverflow.tqft.net/account/107/ I'm not seeing what is particular to a spreadsheet that makes it suitable for the job, Alexander. It seems like the main thing you're interested in is the layout -- the way the data is presented. ... Alexander Woo comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9139) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9139#Comment_9139 2010-09-18T17:41:12-07:00 2018-11-04T23:15:54-08:00 Alexander Woo http://mathoverflow.tqft.net/account/299/ Let me defend and Sonia and say that I can certainly see that a spreadsheet might be a good way to make a list of all the small examples of something (or all the small examples and non-examples) of ...
For example, if you want to find a bijection between two Catalan sets, it can be helpful to look all 42 objects "of weight 5" of each set simultaneously and start matching.

I think the current generation of grad students is the first generation that would naturally think of doing this on a spreadsheet. I handle these sorts of things with 50 or more square feet of blackboard. If I need a bit more permanence and don't have a large board on which I can leave things for long periods, I use a few sheets of paper and photocopy them (so I can scribble all over them and throw them away).]]>
Mariano comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9131) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9131#Comment_9131 2010-09-18T10:40:00-07:00 2018-11-04T23:15:54-08:00 Mariano http://mathoverflow.tqft.net/account/61/ Excel, OpenOffice Calc or any other such thing are quite not fit for enumerating anything! If you are into that sort of things, I assure you that the (very short) time needed to be usefully fluent ... Excel, OpenOffice Calc or any other such thing are quite not fit for enumerating anything!

If you are into that sort of things, I assure you that the (very short) time needed to be usefully fluent in python, say, is the very best investment you can do.

]]>
Sonia Balagopalan comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9103) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9103#Comment_9103 2010-09-17T03:20:18-07:00 2018-11-04T23:15:54-08:00 Sonia Balagopalan http://mathoverflow.tqft.net/account/15/ Scott, To answer your question, mainly drag'n'drop, colour-coding and Ctrl+Z. Since all I'm looking for is something to stare at and play around with.I hadn't thought of the possibility that _nobody_ ...
To answer your question, mainly drag'n'drop, colour-coding and Ctrl+Z. Since all I'm looking for is something to stare at and play around with.

I hadn't thought of the possibility that _nobody_ uses spreadsheets for that kind of thing. Maybe I should ask people what they use.]]>
Scott Morrison comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9094) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9094#Comment_9094 2010-09-16T11:41:56-07:00 2018-11-04T23:15:54-08:00 Scott Morrison http://mathoverflow.tqft.net/account/3/ It seems weird to be using a spreadsheet for anything mathematical. Why not a CAS? Probably any such question should somehow explicit address this. It seems weird to be using a spreadsheet for anything mathematical. Why not a CAS? Probably any such question should somehow explicit address this.

]]>
Sonia Balagopalan comments on "Spreadsheet programming for combinatorics- Tips and tricks/Reference request." (9093) http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9093#Comment_9093 2010-09-16T10:48:46-07:00 2018-11-04T23:15:54-08:00 Sonia Balagopalan http://mathoverflow.tqft.net/account/15/ I have recently realised how handy spreadsheets can be for working with examples in combinatorics, e.g. in constructing a family of subsets of a given set satisfying certain properties. Searching for ...
I'm thinking along the lines of asking as [soft-question], [big-list], [reference-request] and maintaining a consolidated comm.wiki answer. But I'll wiki-fy the whole thing if the folks on meta think that's better. So, is this question appropriate?]]>