Really cool class today on developing a systematic approach to problem solving - working with determining the pattern of creases in a folded strip of paper. It produces a sequence as expressed in this Wikipedia article: http://en.wikipedia.org/wiki/Regular_paperfolding_sequence - which also goes by the more dramatic name "dragon curve sequence," after its similarity to a very beautiful fractal: http://en.wikipedia.org/wiki/Dragon_curve
The problem ultimately was not about the solution but about the process of solving, in a sort of "the journey is more important than the destination" scenario, so I won't go into what the solution actually is, although read the article if you want to know. It was a bit amusing that virtually every group proceeded by the same method to finding a solution: examine small cases to establish a pattern, a method hammered in by programming and math classes over the years, and one which I often use in my day-to-day life - for instance, while trying to find a function to represent a curve in a graph, which is essentially the same problem with some slight changes (paper folding has a number of folds n which provides a pattern of two alternating variables, written as 0s and 1s in the Wikipedia article; representing a curve has a group of coordinates - usually two, x and y, but sometimes three, with z added in 3D space - which can be gathered to produce a function of how each variable changes relative to the other(s)).
It made me wonder if our reliance on this method is potentially too lazy: what happens when we come across a circumstance which can't be solved using small cases to establish a pattern? It's difficult for me to even conceive of such a problem, since it would require:
- a large sample
- cases which vary over a great area and seemingly with no pattern
But there's always got to be a pattern, right? Just thinking about something occurring with no resolvable pattern is... scary. I can't imagine we'd come up against something like that in 165, but it's interesting to think about it. How does one solve such a problem?
If there's no pattern, then there can be no general case. So then we aren't dealing with a series or sequence, right? There will be no n which can be adjusted to fit any example.
The whole scenario is so difficult to conceptualize, and I have to wonder if it's worth the trouble. We can't effectively predict what a person will want to do in their life if they are born in this place, in this year on this day of the month, with these people as parents (who have their own lives where we were supposed to have calculated this) and with these people around them who they are likely to interact with and these political, social and economic forces working on their world... we can't even do this effectively if the person was abandoned in the woods.
Moving back to computer science, it raises a question about how do you effectively build AI, which run on pattern recognition and learning from pattern recognition. If your computer butler wakes you up early and you're visibly upset (visible in the sense that the computer butler says, "Oh hey, you are upset,") then the computer butler can use the patterns to determine when is a better time to wake you.
But what should the computer butler do for waking a baby or raising a baby? Could a computer raise a child based on predictions and patterns? What kind of child would that be?
This has shot off into the aether a little, but I suppose the question I'm hopping around is "What is a pattern?" And this little exercise put a really interesting spin on how we try to answer that question. We can look at the little bit of data we have and try to figure out what to do. Then we produce a hypothesis or two, tinker and see if they work, and start over if they don't. If the paper folds aren't in a Fibonacci sequence, then we try a different hypothesis based on where we went wrong. At some point, it should work. It just better be soon.
No comments:
Post a Comment