tea.mathoverflow.net - Discussion Feed (Spreadsheet programming for combinatorics- Tips and tricks/Reference request.) Sun, 04 Nov 2018 23:15:54 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9409#Comment_9409 Tue, 05 Oct 2010 14:35:04 -0700 Dan Moore
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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9229#Comment_9229 Fri, 24 Sep 2010 00:54:45 -0700 VP 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9227#Comment_9227 Fri, 24 Sep 2010 00:34:26 -0700 Mariano 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9224#Comment_9224 Thu, 23 Sep 2010 18:50:46 -0700 Ryan Budney 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9223#Comment_9223 Thu, 23 Sep 2010 18:02:46 -0700 Dougy
- 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9170#Comment_9170 Mon, 20 Sep 2010 04:42:27 -0700 Mariano 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9169#Comment_9169 Mon, 20 Sep 2010 02:56:03 -0700 Sonia Balagopalan
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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9151#Comment_9151 Sun, 19 Sep 2010 08:47:14 -0700 Ryan Budney
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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9149#Comment_9149 Sat, 18 Sep 2010 23:47:35 -0700 Yemon Choi 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9148#Comment_9148 Sat, 18 Sep 2010 22:32:36 -0700 Ryan Budney 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9147#Comment_9147 Sat, 18 Sep 2010 22:26:05 -0700 Andy Putman 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9146#Comment_9146 Sat, 18 Sep 2010 22:17:21 -0700 Ryan Budney 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9145#Comment_9145 Sat, 18 Sep 2010 22:14:33 -0700 Michael Lugo 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9144#Comment_9144 Sat, 18 Sep 2010 21:32:05 -0700 Yemon Choi 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9140#Comment_9140 Sat, 18 Sep 2010 17:57:57 -0700 Ryan Budney 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9139#Comment_9139 Sat, 18 Sep 2010 17:41:12 -0700 Alexander Woo
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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9131#Comment_9131 Sat, 18 Sep 2010 10:40:00 -0700 Mariano 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9103#Comment_9103 Fri, 17 Sep 2010 03:20:18 -0700 Sonia Balagopalan
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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9094#Comment_9094 Thu, 16 Sep 2010 11:41:56 -0700 Scott Morrison 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 http://mathoverflow.tqft.net/discussion/674/spreadsheet-programming-for-combinatorics-tips-and-tricksreference-request/?Focus=9093#Comment_9093 Thu, 16 Sep 2010 10:48:46 -0700 Sonia Balagopalan
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? ]]>