January 28, 2012

The Numbers Game

Though Sudoku appeared on the scene very recently , it has rapidly become one of the most successful paper-and-pencil puzzles of all time.

Occupy Elsevier

Henry Farrell @ Crooked Timber brings word of a new front in the library wars. Wars you ask, well anyone who has been on a library committee knows the constant need to truncate subscriptions because of shrinking budgets, but much more because of the rising costs of key journals.

January 27, 2012

Guest post on ITCS by Chazelle

(Requested announcement: Calling all Women PhD Students (and a few undergrads) We will be having our bi-annual Women in Theory (WIT) Workshop this year in Princeton. The dates are June 23-27, 2012. Applications are due on: Feb 29, 2012. Go here for all the relevant information. Hoping to see you in June. From: Shubhangi Saraf, Lisa Zhang, Moses Charikar and Tal Rabin.)

(Guest Post by Bernard Chazelle) Why ITCS?

Thanks to Lance and Bill for their kind hospitality. I am delighted to be here. With the third edition of ITCS (formerly ICS) behind us, I thought it would be good to share a few personal, biased thoughts on the subject -- "personal" because I do not claim to speak for the Steering Committee; "biased" because I happen to chair that august body.

First, let me reach for my big bucket of gratitude. Shafi Goldwasser and Silvio Micali did an amazing job as PC & local chairs and I cannot thank them enough. A big shout-out to both. Toda Raba to Yael Kalai, too, for her great help, and to Omer Reingold, Nir Shavit, and their fellow actors for a fabulous "playback" show. If you missed it, fret not. If future organizing committees have any sense, the Nir-Omer show will soon come to a conference near you.

This year's ITCS had about 100 submissions, roughly a 20% growth from previous years, and 118 registrants. Talk attendance never seemed to dip below 90, a heart-warming figure that would be the envy of many conferences. In Shafi's and Silvio's deft hands, innovation came out swinging in all sorts of endearingly creative ways, from session chairs giving annotated previews of the talks to postdocs and graduating students making 5-min pitches to introduce themselves and their research. Brilliant! After watching the new generation of theorists in action, I can tell you that the future of theoretical computer science looks very bright, indeed!



And the future of ITCS, you'll ask, how bright is that? When I chaired the PC last year, a reviewer's comment struck a chord: "This submission would be good for STOC but might not be innovative enough for ICS." Now, that's the spirit! Of course, plenty of ITCS papers would fit in nicely at STOCS/FOCS. (Apparently, more than a few tried to fit in.) That said, it would take an advanced case of color blindness to miss the contrasting hues between ITCS and the rest. All PC members were instructed to add an innovation axis to their evaluation space, and, by golly, they did! (And when I use the word "golly," you know I mean business.)

STOC/FOCS has been accused of all sorts of dastardly deeds unmentionable on a family blog -- from accepting too few papers to boosting trends to rewarding technical wizardry. No less. STOC and FOCS might be four-letter words to some, but to me they're venerable legacy institutions that serve worthy professional functions, such as allowing junior researchers to trade these four-letter words for Theory Club membership cards. Nothing to sneer at. Over at Michael Mitzenmacher's corner, here, Umesh Vazirani bravely suggested merging STOC and FOCS into one mega-conference --- SFOCS, I guess. Much as I love the idea, beginning with the soothing effect of pronouncing the word SFOCS out loud, I didn't come here for a food fight, so I'll fall back on old New Jersey wisdom and say we cross that landfill when we come to it. Yet definitely something to mull over.

ITCS provides a venue for quality outside-the-box thinking. Not without reason, a few have wondered whether the best place outside the box is inside a new conference. On the plus side, conferences provide ideal platforms to publicize new work and, for younger scholars, increase the visibility of their research. With its particular focus on the uncharted, ITCS offers a welcome new outlet for a glut of quality papers. A conference is a big heads-up, a "breaking news" banner flashing on the Theory Channel. It's also a chance to initiate lasting collaborations and meet extraordinary people in pursuit of extraordinary ideas. It's fun.The downside is that a human being can attend only so many conferences before "their budget glares red and their head bursts in air" (as they say before kick-off at the Super Bowl).

This dichotomy, however, isn't quite right. It ignores the tangled web the online revolution has woven into our lives. Whereas in the past I'd have to go to a conference to hear a new result, this is no longer so. The PDF will come to me. It's a given that attendees at many talks will already know the results, perhaps even the proofs. This has diminished the relative importance of attending a conference while at the same time increasing its reach, and hence its influence. Don't get me wrong. I am not saying ITCS is so cool you don't even have to go. I am saying that, in the age of instant downloads, missing this month's Jay-Z & Kanye West "UGC" gig at the Garden ain't gonna be the heartbreak it would have been in the days of old. So, while I recognize that the burden of extra travel is a drawback and the timing always an issue, our wired world alleviates these concerns somewhat. And if you find this argument too subtle for its own good, well, remember, there's always the Umesh option.

Another worry heard on Theory Street is fragmentation. I don't get that. The sociological makeup of all these conferences is pretty much the same, anyway, so the risk of fragmentation is about as high as that of Dr. Jekyll and Mr. Hyde parting ways -- OK, make that Superman and Clark Kent if you prefer. In fact, this has it exactly backwards. Theory has yet to penetrate many geographical markets. Eurotheory shares a name with our kind, and little else. With Asia a promising growth area for our field, it is of more than symbolic value that ITCS was born in China. All theory conferences today are regional (North America, Latin America, Europe, Asia, etc). Maybe ITCS can be the exception. At any rate, to expand both the intellectual footprint and the geographical reach of Theory is a central goal of this conference.

To close on a personal note, let me get my crystal ball out of its dusty case and tell you what I see. As the new sciences of the 21st century further embrace their algorithmic nature, I see ITCS getting enriched with a growing flow of conceptual imports from physics, biology, economics, etc (and vice-versa). While the letter T was added to ICS for mundane reasons -- an ACM conference had a previous claim on the acronym -- I hope ITCS remains unabashedly theoretical. Yes, you heard right. And as you watch me adroitly duck the tomatoes sure to be hurled my way for this impolitic stand, you might even spot a contradiction or two. I mean, how can computing theory reach out to the sciences without losing its theoretical core? Well, well... Leaving aside the fact that math developed with precisely that sort of outreach, the answer is easy. What the "new" sciences (bio, neuro, socio, and all that) lack more than anything is a conceptual framework. Theoretical computer science can do for them what mathematics did for physics. Why? Because algorithms are the differential equations of the 21st c. They are the language of modern science. That's why. At this point, you expect me to clear my throat and indulge in a tasteful round of name dropping: "Moreover, as Newton and Einstein used to say, blah blah..." (I got that from my physicist friends. Works every time.)



But not today. Truth is, delusion won't help our cause one bit. Neither will diffidence or skittishness, however. These are heady times for computing theory, my friends. Hand wringing over fine tactical points should not distract us from our common goal, which is to allow Theory to expand and flourish, to unite and conquer. ITCS aims to do just that. It is an exciting experiment worthy of your support.

Thanks for your attention and, in a nod to ITCS' roots, a happy Year of the Dragon to all!

Bernard Chazelle

Friday math movie: Carlo Ratti Architecture that senses and responds

Carlo Ratti’s TED talk explains how we can use sensing data to improve our living environment.

From the TED summary:

With his team at SENSEable City Lab, MIT’s Carlo Ratti makes cool things by sensing the data we create. He pulls from passive data sets — like the calls we make, the garbage we throw away — to create surprising visualizations of city life. And he and his team create dazzling interactive environments from moving water and flying light, powered by simple gestures caught through sensors.

There are some interesting data visualizations here, too.

Related posts:

  1. Friday math movie: Artfully visualizing our humanity
  2. Friday Math Movie – Imagine Leadership
  3. Friday math movie – The mathematics of war

January 26, 2012

Mathematics of a Serial Killer

Someone sent me a link to this story about a mathematical model of a particular serial killer’s behavior. Two things struck me about it:

  1. How much it sounded like the kind of bizarre model you’d see on Charline on Numb3rs come up with in order to crack the case.
  2. That Cosma Shalizi would hate the model, since it’s the kind of a casual use of power laws he regularly criticizes. And here’s his analysis of the paper. He points out that, as in many other cases, a lognormal distribution provides a better fit.

January 25, 2012

Ernst Specker (1920-2011)

Martin Fürer remembers his former advisor. 

While traveling, I received the unexpected sad news that Ernst Specker passed away on December 10, 2011. He was born in Zürich in 1920. After receiving his doctoral degree at ETH Zürich in 1949, he spent a year at the Institute for Advanced Study in Princeton. Then he returned to ETH in 1950 and stayed there with the exception of two visiting appointments at Cornell University.

Ernst Specker was teaching Linear Algebra when I started my studies at ETH Zürich in 1967. His teaching style was different from the typical polished and streamlined presentations of that time. He was looking for interaction, and did not hesitate to interrupt a proof to insert an example when he sensed that the audience was not following.

Outside the classroom, it was a turbulent time. The youth movement started to question many long established rules of society. For a long time, it seems that the majority of people, without ever thinking about it, had accepted the claim that the US with its war in Vietnam was defending western values. Quite suddenly, this consensus was widely questioned.

ETH had its own little problem. A new law governing the ETH (the only federal university in Switzerland) had just been adopted by the parliament. Many students took issue with the idea that the main goal of ETH was not to satisfy a general human right for education, but to prepare the students to serve the interests of business and industries.

Ernst Specker, who always liked discussions, never accepted anything based on authority without asking some critical questions, had quickly established a relationship with the young students at this time of evolving political turmoil.

Here are two examples, typical for Ernst. The mathematics and physics students of each semester had an open discussion about the ETH law. One professors came to our group to tell us, we should not complain, its our fault, we should have had this discussion a year ago, when it was the proper time to voice any opposition. He was not happy, when Ernst disagreed, noticing that this group of students has only been here for half a year.

A more important move was Ernst Specker's engagement for the Manifesto of Zürich, a public declaration against police brutality after some excesses when the "establishment" was shocked and fearful of the demonstrations in downtown Zürich.

During our studies, we all had to give talks in four seminars in different areas of mathematics. This rule was widely followed with one exception. A large group of students participated in the logic seminar, and they came back ever since (naturally in addition to the other seminars). Every semester, there was a different theme. My first subject was the solution of Hilbert's tenth problem, presented with all background information and details. The seminar was conducted with Hans Läuchli. Paul Bernays, who had started the seminar when he came from Göttingen before the second world war, was still a regular participant. He often followed the talks reading the blackboard with a two minute delay.

Ernst conducted the seminar still long after his retirement, because unfortunately ETH no longer had a position for mathematical logic. I participated in Ernst’s last logic seminar during my sabbatical in 2002. We ended the semester with a talk of Ernst that was intended for a general mathematical audience. I reserved the beautiful and rather spacious Aula of the ETH for this purpose. Luckily, we could still switch to the Auditorium Maximum, in the last minute, when we saw the people  arriving.

Scientifically, Ernst Specker has worked in many areas as illustrated in by the Selecta volume published by Birkhäuser on the occasion of his 70th birthday.  In his dissertation with Heinz Hopf, Ernst worked on cohomology groups. Then he moved on to investigate constructively in analysis, and the foundation of set theory, in particular Quine's new foundations. He also solved one of the early Erdős problems. Ernst’s most famous results are the works with Simon Kochen on the foundations of quantum mechanics, proving that certain hidden variable theories are not possible, and thus colliding with the assumptions made in the famous Einstein-Podolsky-Rosen paper. The results of Kochen and Specker are still discussed today in the physics literature. Early on and in his additional weekly seminar with Volker Strassen starting in the early seventies, he reached out to complexity theory.

Ernst Specker will always be remembered for his teaching and his scientific work, but most of all for his friendship, his openness and his engaging discussions.

Martin Fürer
Pennsylvania State University

January 24, 2012

Three-day sale for Math Mammoth

SORRY I forgot to post it here (I just sent this to my email list).

For January 23-25, get 23% off of all Math Mammoth downloads & CDs
at Kagi store.

Use the coupon code THREEDAYS.

Go to http://www.mathmammoth.com first, then find the links to
Kagi's order pages. OR, use these direct links:

  ~ Light Blue series (complete curriculum)
    https://store.kagi.com/cgi-bin/store.cgi?storeID=5KN_LIVE&page=Math_Mammoth_LightBlue_Series

  ~ Blue series
    https://store.kagi.com/cgi-bin/store.cgi?storeID=5KN_LIVE

  ~ Golden and Green Series
    https://store.kagi.com/cgi-bin/store.cgi?storeID=5KN_LIVE&page=MathMammoth_Workbooks

  ~ Make It Real Learning workbooks
    https://store.kagi.com/cgi-bin/store.cgi?storeID=5KN_LIVE&page=Make_It_Real_Learning

  ~ Bundles (CDs or downloads)
    https://store.kagi.com/cgi-bin/store.cgi?storeID=5KN_LIVE&page=Math_Mammoth_Packages

THREE DAYS ONLY!



January 23, 2012

Triangle puzzle - equal areas

I hope Pat doesn't mind that I copied the image from his blog... He posted this triangle puzzle on his blog and I thought you might enjoy it, too!

Basically, we have a triangle DFE inside a rectangle, dividing the rectangle into various triangles.  And, the three areas of fainter color are equal. That is, the area of the triangle DAE = area of the triangle EBF = area of the triangle FCD. (Notice the image is not drawn to scale at all.)

And, we're asked to solve the RATIOS AE : EB and BF : FC.

I'll post a solution later.

Versa Ruler

Well, this IS something different! A physical ruler that can draw shapes with any angle measure you want.





Unfortunately it's not yet in production. In fact, the project is needing funding... but very interesting! Please read more at

Rule Like Never Before! NEW Shape-making Versa Ruler

This ruler give you accurate measurements for every side and angle. You  can connect sides to form angles, which scale and skew smoothly, and you can lock angles and sides.  Cool!

What should we do?

Time for a post by tweet request.
Quite a lot on the Internets on Tim Gowers' promise not to work with Elsevier anymore. I'm not as anti-Elsevier as Gowers or many of my readers but I understand the frustrations.

It's easy to make a promise not to publish, edit or referee papers, especially when you don't need to improve your academic reputation. Still a mathematician of his magnitude really puts a spotlight on that publisher.

Because of the Elsevier stigma we've had for several years, all the theoretical CS journals of Elsevier are not nearly as strong as they have been in the past. So you don't accomplish much more just by boycotting Elsevier.

Making a difference means what you do, not what you don't do. Be sure and support journals that are worthy of support by submitting and refereeing papers and serving on editorial boards. The best attack on publishers that you don't like is to have several strong alternatives. The best way to make them strong is by having your support.

No journals is completely free of cost, they require money or time. Open access journals without page charges generally have no revenue stream and require effort to make to publish the journal. For these journals you can volunteer your time as well as submitting, refereeing and editing.

Remember it's easy to complain and say what you won't do but it is what you do do that makes the difference.

Autograph 2-D and 3-D graph plotter: a review

Autograph is a 2-D and 3-D graphing application by Douglas Butler of Oundle School in the UK.

Autograph claims to be a "3rd generation graph plotter for schools and colleges". It’s clear as soon as you start using Autograph it’s been designed by a math educator, for the purpose of math education.

A teacher can produce objects that students can explore, but even better, it is simple enough to use so students can create their own graphs. This is an essential requirement for such software.

At first glance, Autograph shares features with two other applications I’ve used:

  • GeoGebra, a free community based offering, which is strong on geometry but lacks 3-D support (although this is under development for version 5). GeoGebra is available for PC, Mac and Linux, since it is Java-basesd, but it won’t work on tablets; and
  • Livemath, a commercial offering which is no longer under development. Livemath has algebra features (e.g. factoring, solving equations, matrix operations and calculus) that Autograph and GeoGebra don’t. Both Livemath and Autograph provide a Web page embed option, so you can view the graph and interact with it using a free plugin, without having to install the full application. Available for PC, Mac and Linux, but not tablets.

However, Autograph is still worth a look becuase it is a user-friendly, integrated package. (It’s around US$100 for a single user license.)

It’s available for PC and Mac, but like the other 2 products, it won’t work on iPad or other tablets.

For this article, I attempted to do similar things I did earlier in my GeoGebra review article, to see how well Autograph performed in comparison.

Disclaimer: The developers of Autograph sent me a review copy, but this is otherwise an independent review.

2-D graphs

You can enter your equation in familiar y = f(x) form, and Autograph will plot it with a minimum of fuss.

In this first example, I’ve plotted a cubic curve (in magenta) and a tangent to the curve. There’s also the derivative curve (the blue dotted parabolic curve).

gradient

You can also easily animate each plot, by clicking on the turtle icon:

turtle

This is useful for making things more dynamic (a point moves along the x-axis, while the graph is traced out at the same time), and for helping students understand how a particular graph "works".

Geometry

Like GeoGebra, Autograph allows you to draw lines between 2 points (and triangles, rectangles, etc), find mid-points, perpendicular lines, intersections between lines, and so on:

geometry

With 3 points selected, you can right click to get the following options.

right click options

There are similar options (and the context menu changes appropriately) for 2, 4, or more points.

Statistics, too

Apart from histograms, scatter diagrams and binomial distributions, the statistics options allow you to create best fit curves, like this one through 7 data points:

best fit

3-D plots

3-D plots is one area where Autograph is a stronger product than GeoGebra. Geogebra does not have native 3-D graph support (athough they are working on this for version 5 of GeoGebra as mentioned before).

It was very easy to produce the following conic section plot in Autograph, following along with their video tutorial. You can include several "variable constants" when creating your plot, and then change the value of the constants while exploring the resulting curve.

conic sections

The pinkish plane in the plot was graphed using z = ax + b. You can then change the value of a or b to move the plane around (and thus see the various conic sections).

parameters

You then use the "Constant Controller" to vary the values of the constants.

constant controller

You can animate the changing values and see the effect on the graph. This feature is also available in Livemath.

Calculus

You can use Riemann Sums (using either rectangles, trapezoids or Simpson’s Rule) to approximate the area under a curve:

reimann sum

You can also draw an integral function from a given function (you click on the graph to provide an initial value (the point through which the integral curve passes).

Volume of Solid of Revolution

It was easy to set up a demonstration of volume of solid of revolution, especially when following the provided tutorial.

volume of solid of revolution

Modelling a Human Cannonball

This example is from their video tutorial page and shows what can be achieved when modelling using Autograph.

THe problem: A person gets shot out of the end of a cannon. What is the trajectory?

You can model the trajectory and modify parameters until your model lines up with the image, like this:

human canonball

The dreaded y = arccot(x) function

This has become a standard test for me when exploring new graphing software. Different math software designers use 2 different possible graphs for y = arccot(x). See Which is the correct graph of y = arccot(x)?

Autograph produces the "second" interpretation, which assumes an original domain of −π/2 to π/2:

arccot x

Output formats

You can output Autograph files as either:

  1. A BMP or WMF image of the graph
  2. A copy of the equations used
  3. A copy of the status bar (for areas, and other output values)
  4. An HTML page

Th HTML output option is interesting. The file sizes are nice and small (9 kB for the proprietry .AGG Autograph file, and 8 kB for the HTML file) and so it loads quickly. It even works in Internet Explorer!

The minus point about the HMTL output is the user needs to download the Autograph plugin, and there is always resistance (and confusion) associated with this process.

Example HTML output: Here is one of the Autograph files in HTML output:

Riemann Sum – Autograph file

You can interact with this graph by moving it around, selecting parts of it, sketching on top of it, and so on.

In many ways the Autograph HTML output is better than GeoGebra’s huge and slow-loading Java files.

Gripe: unexplained levels

Most people don’t dig into manuals when using new software (well, I certainly don’t) – they just play with it and see what it can do.

The first time you open Autograph, you are given this dialog box:

levels

There is no explanation on the radio buttons about what these levels mean or the implications of choosing one over the other.

So I happily started using the product (having accepted the default value of "Standard"), and found it quite limited. I couldn’t even change from degrees (the default) to radians (which I almost exclusively use these days).

Some graphs didn’t seem to plot properly and I was getting pretty frustrated.

After digging around in the documentation, I found out what "Standard" and "Advanced" level were for (the former gives a simpler subset of tools for newbies, the latter gives you full options).

There’s nothing wrong with that as a design approach, but it should be explained in that very first dialog box! A simple list of features you’ll get if you choose "Advanced" would have made a lot of difference to my first 30 minutes using the product.

Video tutorials

The short videos on the following page show you some of the capabilities of Autograph, and how to achieve them:

Autograph video tutorials

Conclusion

Autograph is a respectable graphing package which is designed by educators for educational use.

The 2 modes ("advanced" and "basic") allow beginners to explore 2-D graphs with few complications, while the "advanced" option gives you many more ("grown up") things to play with.

This package is suitable for grade 6 to early college level math course.

The price point is probably on the high side, especially considering GeoGebra’s upcoming 3-D developments, but Autograph is certainly worth checking out.

Related posts:

  1. Online graph plotter using JSXGraph
  2. GeoGebra math software – a review
  3. How to find the equation of a quadratic function from its graph

January 21, 2012

Some parallels between classical and quantum mechanics

Introduction
This isn't really a blog post. More of something I wanted to interject in a discussion on Google plus but wouldn't fit in the text box.

I've always had trouble with the way the Legendre transform is introduced in classical mechanics. I know I'm not the only one. Many mathematicians and physicists have recognised that it seems to be plucked out of a hat like a rabbit and have even written papers to address this issue. But however much an author attempts to make it seem natural, it still looks like a rabbit to me.

So I have to ask myself, what would make me feel comfortable with the Legendre transform?

The Legendre transform is an analogue of the Fourier transform that uses a different semiring to the usual. I wrote briefly about this many years ago. So if we could write classical mechanics in a form that is analogous to another problem where I'd use a Fourier transform, I'd be happier. This is my attempt to do that.

When I wrote about Fourier transforms a little while back the intention was to immediately follow it with an analogous article about Legendre transforms. Unfortunately that's been postponed so I'm going to just assume you know that Legendre transforms can be used to compute inf-convolutions. I'll state clearly what that means below, but I won't show any detail on the analogy with Fourier transforms.

Free classical particles
Let's work in one dimension with a particle of mass whose position at time is . The kinetic energy of this particle is given by . Its Lagrangian is therefore .

The action of our particle for the time from to is therefore


The particle motion is that which minimises the action.

Suppose the position of the particle at time is and the position at time is . Then write for the action minimising path from to . So

where we're minimising over all paths such that .

Now suppose our system evolves from time to . We can consider this to be two stages, one from to followed by one from to . Let be the minimised action analogous to for the period to . The action from to is the sum of the actions for the two subperiods. So the minimum total action for the period to is given by


Let me simply that a little. I'll use where I previously used and for . So that last equation becomes:


Now suppose is translation-independent in the sense that . So we can write . Then the minimum total action is given by


Infimal convolution is defined by

so the minimum we seek is


So now it's natural to use the Legendre transform. We have the inf-convolution theorem:

where is the Legendre transform of given by

and so (where we use to represent Legendre transform with respect to the spatial variable).

Let's consider the case where from onwards the particle motion is free, so . In this case we clearly have translation-invariance and so the time evolution is given by repeated inf-convolution with and in the "Legendre domain" this is nothing other than repeated addition of .

Let's take a look at . We know that if a particle travels freely from to over the period from to then it must have followed the minimum action path and we know, from basic mechanics, this is the path with constant velocity. So

and hence the action is given by

So the time evolution of is given by repeated inf-convolution with a quadratic function. The time evolution of is therefore given by repeated addition of the Legendre transform of a quadratic function. It's not hard to prove that the Legendre transform of a quadratic function is also quadratic. In fact:

Addition is easier to work with than inf-convolution so if we wish to understand the time evolution of the action function it's natural to work with this Legendre transformed function.

So that's it for classical mechanics in this post. I've tried to look at the evolution of a classical system in a way that makes the Legendre transform natural.

Free quantum particles
Now I want to take a look at the evolution of a free quantum particle to show how similar it is to what I wrote above. In this case we have the Schrödinger equation

Let's suppose that from time onwards the particle is free so . Then we have

Now let's take the Fourier transform in the spatial variable. We get:

So

We can write this as

where

So the time evolution of the free quantum particle is given by repeated convolution with a Gaussian function which in the Fourier domain is repeated multiplication by a Gaussian. The classical section above is nothing but a tropical version of this section.

Conclusion
I doubt I've said anything original here. Classical mechanics is well known to be the limit of quantum mechanics as and it's well known that in this limit we find that occurrences of the semiring are replaced by the semiring . But I've never seen an article that attempts to describe classical mechanics in terms of repeated inf-convolution even though this is close to Hamilton's formulation and I've never seen an article that shows the parallel with the Schrödinger equation in this way. I'm hoping someone will now be able to say to me "I've seen that before" and post a relevant link below.

Note
I'm not sure how the above applies for a non-trivial potential . I wrote this little Schrödinger equation solver a while back. As might be expected, it's inconvenient to use the Fourier domain to deal with the part of the evolution due to . In order to simulate a time step of the code simulates in the Fourier domain assuming the particle is free and then spends solving for the -dependent part in the spatial domain. So even in the presence of non-trivial it can still be useful to work with a Fourier transform. Almost the same iteration could be used to numerically compute the action for the classical case.

Vi Hart and mathematical doodling

I just learned about Vi Hart's "doodling in math class" videos (hat tip goes to Fawn Nguyen).

Vi calls herself mathemusician - and definitely, she's a talented and smart gal! I'm sure you'll enjoy her videos (as long as you can follow her super fast speeaking). Here are some that I enjoyed:

Doodling in Math: Spirals, Fibonacci, and Being a Plant [1 of 3]



Here's a link to learn more about Fibonacci numbers in nature, so you can read about it at a slow pace : )


Binary Hand Dance was pretty cool too!



Her series of "mathematical doodling" videos have become somewhat of a viral success. Here's one more:

Doodling in Math Class: Infinity Elephants

January 20, 2012

Math teachers are at play again


Denise's done a beautiful job with the current Math Teachers at Play carnival number 46, lots to read and explore and see... head on over!

Hitler on Topology

At this point, I’m sure everyone has seen at least one of the YouTube videos of Hitler ranting (actually actor Bruno Ganz from the movie Downfall) with fake subtitles. Here’s one showing Hitler’s reaction to discovering that in topology a set can be both closed and open. I think we all know how he felt. (This is the clip with accurate subtitles — I’d never seen it before.)

Via Cocktail Party Physics.

A puzzle about typing

While making a comment on Stackoverflow I noticed something: suppose we have a term in the $\lambda$-calculus in which no abstracted variable is used more than once. For example, $\lambda a b c . (a b) (\lambda d. d c)$ is such a term, but $\lambda f . f (\lambda x . x x)$ is not because $x$ is used twice. If I am not mistaken, all such terms can be typed. For example:

# fun a b c -> (a b) (fun d -> d c) ;;
- : ('a -> (('b -> 'c) -> 'c) -> 'd) -> 'a -> 'b -> 'd = <fun>

# fun a b c d e e' f g h i j k l m n o o' o'' o''' p q r r' s t u u' v w x y z ->
    q u i c k b r o w n f o' x j u' m p s o'' v e r' t h e' l a z y d o''' g;;
  - : 'a -> 'b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'h -> 'i -> 'j ->
    'k -> 'l -> 'm -> 'n -> 'o -> 'p -> 'q -> 'r -> 's -> 't ->
    ('u -> 'j -> 'c -> 'l -> 'b -> 'v -> 'p -> 'w -> 'o -> 'g ->
     'q -> 'x -> 'k -> 'y -> 'n -> 't -> 'z -> 'r -> 'a1 -> 'e ->
     'b1 -> 'c1 -> 'i -> 'f -> 'm -> 'a -> 'd1 -> 'e1 -> 'd -> 's
     -> 'h -> 'f1) -> 'v -> 'b1 -> 'z -> 'c1 -> 'u -> 'y -> 'a1
     -> 'w -> 'x -> 'e1 -> 'd1 -> 'f1 = <fun>

What is the easiest way to see that this really is the case?

A related question is this (I am sure people have thought about it): how big can a type of a typeable $\lambda$-term be? For example, the Ackermann function can be typed as follows, although the type prevents it from doing the right thing in a typed setting:

# let one = fun f x -> f x ;;
val one : ('a -> 'b) -> 'a -> 'b =
# let suc = fun n f x -> n f (f x) ;;
val suc : (('a -> 'b) -> 'b -> 'c) -> ('a -> 'b) -> 'a -> 'c =
# let ack = fun m -> m (fun f n -> n f (f one)) suc ;;
val ack :
  ((((('a -> 'b) -> 'a -> 'b) -> 'c) ->
   (((('a -> 'b) -> 'a -> 'b) -> 'c) -> 'c -> 'd) -> 'd) ->
   ((('e -> 'f) -> 'f -> 'g) -> ('e -> 'f) -> 'e -> 'g) -> 'h) -> 'h = <fun>

That’s one mean type there! Can it be “explained”? Hmm, why does ack compute the Ackermann function in the untyped $\lambda$-calculus?

Teaching an Honors Section of Discrete Mathematics

A few years ago I was assigned to teach the HONORS section of Discrete Math (a course for sophomores who have had a year of programming and a year a calculus). They told me it was up to me to figure out what to do to make it an honors course. (My section had 30 students, the non-Honors has about 60.) There were several options:
  1. This could be taught separate from the non-honors course. Diff homework, diff exams.
      PRO: the homework and exams can be more interesting since you do not have to worry about how they are for the non-honors student.
    1. CON: If a student would have gotten (say) an A in the non-honors course, but gets a B in the honors section, that is not good. OR the teacher could grade inflate so that the students who got a B in the reg section gets an A in the honors section.
  2. You could give the same exams and homework to the honors students but REQUIRE them to do more work- extra problems on the homework, extra problems on the Exams.
    1. PRO: They will get to do more fun problems.
    2. CON: They are being penalized for taking an honors course.
  3. Same Exams and homework as the regular class. The regular class meets Tu-Th for 75 minutes. The Honors class meets MWF for 50 minutes each. What the Regular class does on Tu-Th, the honors class does on MW. On FRIDAY the honors class has an HONORS DAY- they work in groups of 3 or 4 on problems of more interest than usual. (example: For Logic devise a way to do do AND, OR, and NOT if the variables take on values BETWEEN 0 and 1 (including 0 and 1)). There is a LIGHT homework on this work just to keep them honest. But its not graded seriously.
    1. PRO: They get to learn more stuff in a fun way.
    2. CON: More work for the professor to make up these kinds of problems. (To brag- this is the sort of thing I am good at so not a problem for me.)
I did the last one and I think it worked, for some definition of worked. That is, the students liked it and found it interesting, but its hard to compare it to other ways of doing it. (Doing real studies that tell you things in the field of Education is hard.)

How have you, or would you, run an honors course in discrete math? How about for a programming course?

January 17, 2012

How important are the Fib numbers in math? in Nature? In History of Math books?

The following quotes is from In the book Algebra in Ancient and Modern Times by V.S. Varadarajan.
Fibonacci numbers thus grow very fast with N, indeed in geometric progression. This is often called exponential growth. They remained as curiosities till in the 1960's they were found to be crucial in certain studies in mathematical logic.
I suspected they were refering to its use in Hilbert's tenth problem even though that was really 1970 (a quibble) and I would hardly call it crucial (a more substantial objection). In fact Fib Numbers are not even needed in the end. I asked Chris Lastowksi who is a Model Theorist at UMCP and he told me the folowing:
Yes. Matijasec showed that the Fibonacci sequence was diophantine, and this sufficed to solve Hilbert's tenth problem (actually to show it could not be solved), by earlier work of Davis, J. Robinson and Putnam. However, Davis almost immediately showed that the exponential function is diophantine, which yields the solution to H-10 more easily, so I would hardly call that a deep connection.
V.S. Varadarajan wanted to make the Fib numbers interesting and important. The attempt was not quite right.
  1. How bad is it for a history-of-math book to exaggerate how important some concept is?
  2. How important are the Fib Numbers? Do they come up in Mathematics?
  3. Could V.S. Varadarajan have picked a better example of their use in mathematics?
  4. It has been said that the Fib Numbers come up in Nature. According to Fib Flim Flam most of the statements made about Fib numbers and nature are suspect.

January 16, 2012

The Information Flood

Twitter, Facebook, Google+. Information now comes to us as a faucet. If you don't drink it all it disappears forever. Try to find status updates and tweets from even a few days ago. Many of you wouldn't have seen this blog post if you didn't catch it on Twitter or Google+.

I try to keep my faucet turned relatively low. I still like RSS feeds like Google Reader. Stuff stays until you discard it. I try not to have too many Twitter followers or Facebook friends.

But the trend is for people, especially the younger generations, to subscribe to whatever fills their fancy. They get a continual stream of information and ignore what they don't see. So Google and Facebook develop algorithms based heavily on what the crowds and your friends are looking at, to determine the order of what you see. Twitter will surely have to follow. Google even tries to decide which of my emails are important.

As goes the Internet goes so does academic knowledge. How do we cut through the research clutter? Will we have algorithms and the crowds tell us which research papers to look at? That used to be the job of journal editors, conference program committees and my grad students.

January 12, 2012

Being Random and Trivial in Dagstuhl

This week I'm at the Computability, Complexity and Randomness workshop at Dagstuhl in Germany. This meeting brings together two groups, complexity theorists and computability theorists, who share a common love of Kolmogorov complexity.

From the logicians I learned about K-trivial sets. Let K(x) be the prefix-free Kolmogorov complexity of x, i.e., the size of the smallest program that generates x. There are several equivalent definitions of K-trivial sets, here is two of them. A are K-trivial if
  1. For some constant c, for all x, K(x) ≤ KA(x)+c, where KA(x) is the smallest program generating x with access to oracle A.
  2. For some constant c, for all n, K(A1:n) ≤ K(n)+c, where A1:n are the first n bits of the characteristic sequence of A.
Lots of interesting properties about K-trivial sets.
  • All computable sets are K-trivial and there are K-trivial sets that are not computable.
  • There are only a countable number of K-trivial sets. In fact there are only a finite number of K-trivial sets for each fixed constant c above. 
  • Every K-trivial set is super-low, that is the halting problem relative to a K-trivial set is non-adaptively reducible to the halting problem.
  • Every K-trivial non-adaptively reduces to a computably-enumerable set.
  • Every set reducible to a K-trivial is K-trivial.
  • The disjoint union of two K-trivial sets is K-trivial.
  • Random sets are still random relative to A.
More about K-trivial sets and everything else computably random in a great book by Downey and Hirschfeldt. 

Us complexity theorists started thinking about polynomial-time versions of K-trivial sets but probably won't have as many nice properties. 

January 10, 2012

The Conjunction Paradox

In Yesterday's post you were told about Susan:
Susan is 31 years old, single, outspoken and very bright. She majored in philosophy. As a student she was deeply concerned with issues of discrimination and social justice and also participated in anti-nuke demonstrations.
You were asked to rank the probabilities of certain things about Susan. Two of the choices were

a bank teller

a bank teller and an active feminist

LOGICALLY bank teller and feminist would have a HIGHER probability than bank teller and and active feminist. Some people (including me when I first was given this exercise) ranked bank teller lower bank teller and active feminist. Why? I think that either people are not good at logic in real-world situations or people implicitly view bank teller as bank teller and NOT an active feminist. This problem has been extensively studied and there are other opinions.

Of the 30 responses I got before posting this roughly 10 ranked bank teller higher than bank teller and and active feminist (which is correct), 10 ranked bank teller and and active feminist higher than bank teller, and 10 of the answers were not relevant (e.g., clarifications of the question). (One person I blocked since he explained the above and would have given away the game, and one person who left a comment 5 minutes ago I will let through but only after I post this.)

I recommend giving this exercise to students in a class that covers logic and/or probability to see what they say.

Clyde Kruskal told me about this problem. He found it here though its also at other sites. This source credits the following (which I would guess is correct). Tversky, Amos; & Kahneman, Daniel (1983), Extensional Versus Intuitive Reasoning: The Conjunction Fallacy in Probability Judgment", Psychological Review 90(4) (October): 293-315. They are famous for these sorts of psychology questions. The latter won the Nobel prize in economics for joint work with the former.

The notion that A is less likely than A AND B is called The Conjunction Fallacy. The article pointed to only gives the two choices: (1) Bank Teller, and (2) Bank Teller and an active feminist. I think its better to give all of those choices as is done here other presentations of this exercise.

January 09, 2012

Compound interest


Photo courtesy of Mooster
Someone sent me in a question concerning compound interest...
Please send me the formula for compound interest and explain line by line.


p(1 + rate)3


What does the 1 stand for and must you add it to the rate of say 10%?


100(1+10)3 years = ???


Obviously I am looking for a basic course?


The formula that this person is using is correct... the formula for compound interest is


A = p(1 + r)t


but this formula doesn't give us the amount of interest -- it gives us the amount of money you would withdraw after t years.In the formula, p is the original principal, r is the interest rate, and t is the time in years.

However, we cannot put the interest rate in as he did. If r = 10%, then r = 0.1 must be used in this formula. In other words, FIRST convert your percentage into a decimal.

For example, if the principal is $5000 and r = 10% = 0.1, then we get

A = $5000 × 1.1t

The number 1 in the formula p(1 + r)t doesn't stand for anything by itself. It comes from using the distributive property in simplifying p + pr into p(1 + r).

Which, p + pr is the principal + interest earned after one year; that is what you could withdraw after one year.

BUT if you don't withdraw it, but leave it all to earn more interest, then that becomes your "new" principal, and the year after that you will have that times 1 + r.

Basically, this is how compound interest works:

After year 1: You have p + pr which is p(1 + r). Notice that your original principal got multiplied by (1 + r). If you leave this on the account to earn more interest, then next year you have that amount times (1 + r).

After year 2: you have p(1 + r)(1 + r). If you leave this on the account to earn more interest, then next year you have that amount times (1 + r).

After year 3: you have p(1 + r)(1 + r)(1 + r). Let's simplify this using an exponent: You have p(1 + r)3

After year 4: you have p(1 + r)4

And so on. After year t, you have p(1 + r)t.
Hope this helps some!

Rank these possibilities by probability

Readers- I want you to answer this question and post your answers as comments. I will tell you WHY I am asking tommorow.

Susan is 28 years old, single, outspoken, and very bright. She majored in philosophy. As a student she was deeply concerned with issues of discrimination and social justice and also participated in anti-nuke demonstrations.

Please rank the following possibilities by their probability. List them LOW to HIGH. (Just post your answers. Other comments I may block so that others can enjoy the question.)

  1. a kindergarden teacher
  2. works in a bookstore and takes yoga classes
  3. an active feminist
  4. a psychiatric social worker
  5. a member of the Sierra club
  6. a bank teller
  7. an insurance salesperson
  8. a bank teller and an active feminist

January 08, 2012

Illustrated Ways of Paradox Complete with 1960's Ads

The title essay of Quine's The Ways of Paradox was originally published in the Scientific American 206 (April 1962). Retrodigitized back issues of the Scientific American are now available (for free, it seems) on the website of Nature.  You can now read Quine's classic essay in its full original glory, complete with neat illustrations such as this one of the Barber Paradox:

Also cool: vintage ads for nerdy things like scientific instruments, computers, and jobs at the Jet Propulsion Laboratory from the 1960's.

Plenty more where that came from, e.g., Tarski's article "Truth and Proof", Nagel and Newman on "Gödel's Proof", Davis and Hersh on "Hilbert's 10th Problem", Paul Cohen and Hersh on "Non-Cantorian Set Theory", and John Hopcroft on "Turing Machines".

January 07, 2012

Lossless decompression and the generation of random samples

Let S be some finite set with a probability distribution on it. Here's a diagram showing some example probabilities for the set S={A, B, C, D, E}:
How can we generate lots of random samples from this distribution? A popular method involves first storing the cumulative distribution function in a table like so:

We then use any of a number of popular methods to generate uniform pseudorandom numbers in the range [0,1) and for each one walk through the table until we find the first entry greater than our pseudorandom number. The symbol above the number is the one we generate. So if we generated 0.512, we'd pick symbol C. It's straightforward to prove this gives the correct probability distribution.

As described this algorithm can be slow. If the size of the table is N we may have to walk through up to N entries to generate each sample.

One approach to accelerating this algorithm is to quantise our pseudorandom number and use it to look up, in a precomputed table, a jump into our cumulative distribution table. I've used this several times in my visual effects career. But today I'm going to take a different approach.

Another natural way to speed up sample generation is to use a binary search to find the appropriate point in the cumulative distribution, for example the C++ standard template library's upper_bound method will do the job.


But what is a binary search algorithm going to do? Typically it's going to start by comparing our pseudorandom number with the midpoint of the table. If our number is bigger then it will recursively use binary search on the left (looking next at the midpoint of the left half), otherwise on the right, and so on. If we're generating many samples from the same distribution we're going to be repeatedly looking up the same midpoints in the table. At the end of the day, the process can be described by a decision tree. So we may as well throw away the table and build the decision tree up front. Here's what it might look look like:


But maybe we can do better. For example C is three times as likely as A but they both take the same amount of time to generate as they both require walking down to depth 2. Meanwhile D has a probability of 0.25 and requires walking to depth 3. We'd like to rebalance the tree. Note also that there's no reason to list our original PDF in the order I gave. Different orderings might give different trees.


It's straightforward to describe what we want to optimise. We want to place sample i at depth di so that the expected value of di is as small as possible. In other words we want to minimise Σpidi. But this is precisely the problem solved by Huffman coding.


And that's the conclusion I wanted to reach: Huffman coding gives the optimal decision tree to generate random samples. It also tells us this interesting consequence: if we use a decision tree method then the performance of our algorithm is bounded by the entropy of the probability distribution. I find this connection between entropy and algorithmic complexity pretty surprising.


I learnt the above during my interview at Google!


Why is there this connection between a compression algorithm and the generation of random samples? It  took me a little longer to realise why but it's quite straightforward.


Huffman coding tries to compress text one letter at a time on the assumption that each letter comes from some fixed and known probability distribution. If the algorithm is successful then we'd expect the compressed text to look like a uniformly distributed sequence of bits. If it didn't then there'd be patterns that could be used for further compression.

So when we're decompressing Huffman encoded data we have a machine that takes as input uniformly distributed bits and which outputs letters sampled from some probability distribution. But that's exactly the same problem that I posed above. So, at least from some perspective, decompression is precisely the same thing as generating samples from a probability distribution.

Or to put it another way: there is a class of algorithm whose purpose is to convert samples from one probability distribution into samples from another. When we use one of these algorithms to convert from samples from some distribution P that's easy to generate samples from, into samples from Q, we call this "an algorithm to sample from distribution Q". When we use one of these algorithms to convert from some distribution to a uniform distribution, and the function given by the algorithm is invertible, then we call it "lossless compression".

January 06, 2012

Starting the Year with Turing

This week I was in Boston for the Joint Math Meeting, a combined meeting of the AMS, MAA and a couple of other three-letter math societies with 7000 of my closest math buddies. This is the main American meeting of mathematicians one part of which are interviews for math jobs which seem few and far between.

The conference didn't seem large to me because I spent most of the meeting at the AMS-ASL Special Session on the Life and Legacy of Alan Turing. I got to see some exciting speakers I haven't seen before including Martin Davis, Andrew Hodges (who authored the famous Turing biography soon to be re-issued) and my great-grand advisor Marvin Minsky. Minsky talked mostly about the sorry state of AI over the past few decades including how the Watson people were working on the wrong problem. I found myself in the strange position of defending AI before my talk the next day.

Craig Bauer, a math historian, talked about the early days of voice encryption during Work War II, basically digitizing and then applying a one-time pad. Turing developed a mechanism that used a hardware PRG improving the quality of the audio and reducing the space needed from a large room to small box, though it was never deployed in the field.

Ted Slaman send me this link with Turing suggesting that PRG can help in searching. I guess Turing did care about running time after all but we still haven't found his lost letter on P v NP.

Interesting fact: Gödel and Turing both admired each other's work but there is no evidence that they ever met or had any direct communication of any kind.

A fun workshop but I'm all Turing'd out and it is only the first week of the Alan Turing Year though I am still looking forward to June to attending the ACM Turing Celebration in San Francisco and CiE in Cambridge.

Next week I'm off to Dagstuhl for Computability, Complexity and Randomness. The fun also continues in the Boston area with ITCS.

January 04, 2012

On the Bourbaki-Witt Principle in Toposes

With Peter LeFanu Lumsdaine.

Abstract: The Bourbaki-Witt principle states that any progressive map on a chain-complete poset has a fixed point above every point. It is provable classically, but not intuitionistically. We study this and related principles in an intuitionistic setting. Among other things, we show that Bourbaki-Witt fails exactly when the trichotomous ordinals form a set, but does not imply that fixed points can always be found by transfinite iteration. Meanwhile, on the side of models, we see that the principle fails in realisability toposes, and does not hold in the free topos, but does hold in all cocomplete toposes.

Download paper: bw.pdf
ArXiv version: arXiv:1201.0340v1 [math.CT]

This paper is an extension of my previous paper on the Bourbaki-Witt and Knaster-Tarski fixed-point theorems in the effective topos (arXiv:0911.0068v1).

January 03, 2012

Is there a NICE gadget for showing PLANAR HC is NPC?

(I have already posted this question on CS Theory Stack Exchange.)

If you know that 3-COL is NPC then you can prove that PLANAR 3-COL is NPC by a NICE gadget that removes crossings (see here for some lecture notes on it. They are not mine. The original link is here but I can't figure out the real author, though it is likely whoever taught Algorithms at CMU in Spring of 2004.)

Lets say we know that HAM CYCLE is NPC (we do!). Is there a gadget to remove crossings so you can show that PLANAR HAM CYCLE is NPC? The problem of PLANAR HAM CYCLE is NPC so there sort-of has to be a gadget; but is there a NICE one? (The proof that PLANAR HAM Cycle is NPC is from SAT and I find it rather complicated (see here for the original paper.) I have tried to extract an uncrossing gadget from it but have not been able to it.

SO- I ask you, do you know of a NICE gadget for removing crossings in a graph so that we can easily go from HAM CYCLE NPC to PLANAR HAM CYCLE NPC.

I'll be happy with HAM PATH or HAM CYCLE or DIRECTED HAM PATH or DIRECTED HAM CYCLE.

January 02, 2012

Math Mammoth & Common Core Standards - announcement

I will be aligning Math Mammoth to the Common Core standards. This might take me half a year. Thus far it looks like just minor changes for grades 1-5, and a bit more changes for grade 6.

Nearly all US states (only 5 or 6 haven't) either have adopted or will adopt the Common Core standards, so this means that Math Mammoth will probably be aligned to YOUR state's standards as well!

Actually, Math Mammoth is even now fairly well aligned to the Common Core standards. Common Core standards are based on having a few "focus" areas for each grade level (instead of the "inch deep and mile wide" curriculum so prevalent in the past), and Math Mammoth being a mastery-based program has always had similar basic focus areas for each grade.

December 29, 2011

Complexity Year in Review 2011

Result of the Year goes to the new bounds on Matrix Multiplication by Andrew Stothers and Virginia Vassilevska Williams. It's not every year that we see progress on an important problem where we've had no progress since the 80's. Well there was last year. But not every year.

Some other notable results: Impagliazzo's relativized separation of Algorithmica and Heuristica, The Power of Simple Tabulation Hashing by Pătraşcu and Thorup and Property Testing Lower Bounds via Communication Complexity by Blais, Brody and Matulef

We celebrated Les Valiant's Turing Award. We remember Patrick Fischer, Phillipe Flajolet, Steve JobsJohn McCarthy and Dennis Ritchie.

Thanks to our guest posters Daniel Apon, Lauren Cowles, Annie and Molly Fortnow, Nadia Jones, Samir Khuller, Ryan O'Donnell, John Rogers, Jeffrey Stein, Aaron Sterling and Anonymous.

2011 will go down as a year when computer science started changing the world (again). Watson won on Jeopardy. Social networks brought down dictators and congressmen. Obama opens Robotics Center at Carnegie-Mellon. My daughter's high school had their first computer science class in a very long time and Stanford's AI course goes big time. The New York Times has sections on Computer Science's Sputnik Moment and the Future of Computing. The director of the Mathematical and Physical Sciences at the NSF declares "software is the modern language of science". Is there nothing CS no longer touches?

In 2012 we celebrate the man who started it all with a series of events celebrating the 100th anniversary of the birth of the father of computer science. I'll get it started next week talking on "Turing's Influence on Computational Complexity" during the AMS-ASL Special Session on the Life and Legacy of Alan Turing at the Joint Math Meeting in Boston.

December 27, 2011

Math Mammoth books and their origin - video

Here's a little 2-minute video of me talking about Math Mammoth books, their origin, and also featuring "Mathy" the mammoth. : )


December 26, 2011

Fraction videos, part 2

I have created a set of 11 fraction videos that cover simplifying fractions, multiplying fractions by whole numbers, multiplying fractions by fractions, multiplying mixed numbers, fraction multiplication and area, simplify before multiplying, dividing fractions, ratios, and converting fractions to decimals.

That's a good bunch of fraction arithmetic!

You can use these fraction videos to supplement Math Mammoth Fractions 2 book, or Math Mammoth Grade 5-B complete curriculum. Pre-service or working teachers could use these as lesson plans for fraction topics. Students can of course learn as well, because the videos are meant for both students and teachers.


The other "half" of fraction arithmetic is on this page--9 videos.

These two pages have a total of 20 videos -  over 3 hours of fraction instruction, for free. It would fill a DVD... but I've uploaded them to Youtube for everyone to enjoy and benefit from.

December 22, 2011

Game Changers

Two announcements on Monday connected to my two Alma Maters mark the changing face of universities.


It didn't hurt that Cornell got a $350 million donation and that their main competitor, Stanford, dropped out.

Foreign countries have been creating campuses for some time now, like Northwestern's Qatar campus. Great to see this happening in my own country, a realization of the importance of technology and that New York knows it must make these investments. May this lead to other cities building tech campuses like they build sports arenas. Unlike sports, we can have many winners.

What's going to happen on this tech campus? Education, research, start-up incubators? Will there be a separate CS department in New York or just a branch from Ithaca? I can find very little details on the web, though there is this cool fly-over.



Following up on Stanford's online courses, MIT is creating their own tools for teaching online courses and will share these tools with other universities. Those taking the courses may receive a certificate but will have to pay a small fee to do so and the certificate will not bear the MIT name. According to the FAQ "MIT plans to create a not-for-profit body within the Institute that will offer certification for online learners of MIT coursework. That body will carry a distinct name to avoid confusion. MIT awards MIT degrees only to those admitted to MIT through a highly selective admissions process." Nevertheless these courses will allow people to get access to great MIT courses at little cost.

In the 90's, Newspapers decided they could better serve the public by putting their news stories online. How did that work for them? Are universities starting to go down the same path today?

December 20, 2011

Area & perimeter activities - a teacher's experience with Math Mammoth

Ms. Pineda used two lessons from my book Mamut Matemáticas Geometría inicial with her bilingual class. Below is her lesson plan, and some reflections. I asked her some questions.


How did the children like the activities?

The worksheets were a great guide for them because they kept them focused, and the amount of , "What do I do?" questions were very minimal.They seemed comfortable referring back to the worksheets for definitions and examples. I also noticed there was a lot less hand-raising.


How did you like using Math Mammoth materials?

It definitely made my job easier, because I did not have to continue going back to each group to explain what are or perimeter were. The definition was in front of them along with examples.


How many class periods did you use them?
It took us two 45-minute periods to complete all the activities. The students were so engaged they did not want to quit.

Did you use both English and Spanish, or only Spanish worksheets?
I only used the Spanish versions, but I plan on assigning the English for homework when we return in January.


Did you give them any homework?
They were able to keep their booklets in their math folder in order to refer to them in the future. They will usually go back and complete any unfinished assignments.



LESSON PLANS & PICTURES 

AREA

Area and Perimeter Activities
Ms. Pineda, 3rd Grade Bilingual Teacher

Objective: Measure the area of geometric shapes using square units.

Materials: Comenzando con área worksheet (a lesson from Mamut Matemáticas Geometría inicial),, attribute blocks, ¼ - ½ inch graphing paper, pencil, mini booklet made from manila paper, markers or crayons.

Procedures:
  1. Use the worksheet to discuss how area is calculated.
  2. Trace a shape using your pencil.
  3. Count the whole squares by writing the numbers.
  4. Combine two halves to make a whole square.
  5. If one of your shapes crosses four squares, combine them to make a whole.

  6. Area = 4 + ½ + ½ = 5

  7. Once you have calculated the area of each shape. You may color it and glue it in your mini booklet.







PERIMETER

Objective: Measure the perimeter of geometric shapes in inches.

Materials: Perímetro worksheet (a lesson from Mamut Matemáticas Geometría inicial), attribute blocks, pencil, ruler, mini booklet made from manila paper, markers, and crayons.

Procedures:
  1. Use the worksheet to discuss how perimeter is calculated.
  2. Trace a shape on your booklet using your pencil.
  3. Measure each side of the shape in inches.
  4. Add the lengths to find the perimeter of each shape.
  5. Combine two halves (½ + ½ = 1)to make a whole inch.
  6. Trace the edges of each shape with a marker and color the area with a crayon.
Perímetro = 2 + 2 + 1 + 1 + ½ + ½ = 7




December 19, 2011

Romney vs. Aaronson

How are Mitt Romney and Scott Aaronson similar? Different?

Similarities:
  1. Both live in Massachusetts. Actually, Scott lives there but its not clear where Mitt lives since he's been running for president for the last four years.
  2. Both, deep in their heart and soul, believe that Global Warming is a real problem.
  3. Both use money to make a point:
    1. Mitt tried to to bet Rick Perry $10,000 that Mitt was never in favor of the individual mandate here.
    2. Scott blogged that if Deolalikar's proof of P ≠ NP is correct, Scott would give Deolalikar $200,000 here.
  4. Both were somewhat misinterpreted: Some thought that Scott was insulting Deolalikar. He was not. He was just expressing his certainly the proof was not correct. Some thought Mitt showed he was out of touch with Middle Class American (who normally can't afford to casually bet $10,000 on anything). While Mitt might be out of touch, I think this was more of a way to forcibly express that there is no evidence that he was in favor of the individual mandate.
  5. Both Mitt and Scott seem to be right. Deolalikar's proof is no longer believed to be correct, and fact check says that Mitt never supported the individual mandate.
  6. There exists people who say Scott is smart. There exists people who say Mitt is smart. I don't know if this means anything since there exists people who say Newt is smart.
  7. They both seem smarter than Michelle Bachmann, Herman Cain, and uh,uh, I can't think of the third candidate they both seem smarter than. Oops.


Differences:
  1. Scott believes his belief that Deolalikar didn't prove P ≠ NP. Mitt has no beliefs.
  2. Mitt can easily afford $10,000. Scott would have to struggle to raise $200,000.
  3. Mitt's bet made him look bad. Scott's offer made him look good. He put-his-money-where-his-mouth-is unlike other bloggers who just asserted the proof was likely not correct.
  4. Mitt made a bet partially in jest- it is unlikely to really involve an exchange of money. Scott made a real offer- if Deolalikar's proof had been correct he really would have paid out.
  5. There is one of them that I would vote for. The other was once Governor of Massachusetts.
  6. Scott knows a bit more about Quantum Computing than Mitt.
I emailed the Romney Campaign this post (without this paragraph), and the information that I would post it on Monday Dec 19, in case they had a comment. They did not respond. Perhaps Mitt is miffed about my saying Scott knows a bit more about Quantum Computing.

December 16, 2011

Algorithmic Driving

In my post last week, my commentors took me to task on my prediction that cars will drive us in ten years. Some thought Americans would wise up and learn to love mass transit. They don't know Americans.

Others thought the hardware cost would even in ten years remain out of reach. Google did not build an autonomous car by creating the hardware but by harnessing and training good machine learning algorithms. No amount of hardware would have given you a car able to navigate the streets of San Francisco five years ago.

What hardware do you need for an autonomous car, beyond the car itself? A good camera, a GPS device, wireless Internet access, gigabytes of RAM and a fast processor. I carry all that in my pocket. Google does use other sensors including lasers and radar but as the algorithms get better, the cost and need for this hardware can be reduced. Wiring the car to drive itself won't be difficult, already the steering wheel and pedals are mostly just a user interface into a computer that is controlling the car.

I have no doubts that technologically we will have autonomous cars in ten years adding at most a couple of hundred dollars over the cost of the car itself.

Other problems could get in the way. One is legal but Nevada is already changing their laws that will allow a testbed for autonomous cars in that state. Once the cars are viewed as safe one would expect the law to expand and other states to open up as well.

The other issue is social. As with every technological change we will have the usual technological life cycle: Innovators willing to pay the big bucks to try stuff first, Early Adopters who love to jump on new technology (where I usually sit), the early and late majorities following the crowd and finally the laggards who still insist on manual transmission and pumping their own brakes.

There are other issues like patents and industries, like auto insurance companies, that will try to fight autonomous cars. Autonomous cars will be too much of a win, in terms of parking, fuel efficiency, shorter and more productive travel time and most of all safety, not to prevail.

December 14, 2011

Solution to the reciprocals problem

In my last blog I asked you to look at this problem, try to solve it, and tell me if you think it is too hard for a HS competition. (I meant to post this on WED so I posted it at 12:06AM East Coast Time. I didn't know that the blog is on Chicago Time. So it got posted on Tuesday. Oh well.) Here is the problem:
Prove or disprove: there exist natural numbers x1,...,x10 such that
  1. 2011=x1+... +x10 and
  2. 1=1/x1+... +1/x10.
Several solutions and some other points of interest about this problem are here. The answer is YES and here are the solutions that I know of -- both my solution and the ones emailed to me. (The explanation of how they were obtained are at the paper pointed to above.)
  1. My Solution: 2,4,5,80,80,80,160,320,640,640. This used known theorems.
  2. Sam Solution: 2,4,5,40,120,160,300,300,480,600. Sam is a HS senior who is very good at these contests. It took him 30 minutes,
  3. David Eppstein Solution: 3,4,7,16,16,16,20,43,80,1806. This used a bit of advanced knowledge and some hand computations that were probably above what you want for a UMCP Math Competition.
  4. Matt Howell Solution: 2,4,5,50,100,100,250,500,500,500 This solution could have been found by a HS student (it is similar to Sam's solution.) Matt has a BS in Math and Engineering and did the problem in 20 minutes.
  5. An anonymous commenter send me 6,6,10,10,12,15,15,15,62,1860. This solution could have been found by a HS student (it is similar to Sam's solution.)
  6. Another one from same anon: 6,8,8,8,12,15,16,16,62,1860 This solution could have been found by a HS student (it is similar to Sam's solution.)
  7. Mike Roman Solution: 5,5,6,8,8,12,15,32,960,960
So what to make of this?
  1. Much to my surprise, enough people got it right and in ways that a HS student could have gotten it. And one did- Sam took the real exam.
  2. The systematic solution that I got required very little hand calculation. All of the others, which includes the one I think a HS student could have or did get, required quite a bit of hand calculation. That may be a reason to not ask it.
  3. I wonder how many solutions there are. This could be figured out by a Dynamic Program but there may be issues with large ints. (See later in this blog.)
  4. I wonder if there are any that have distinct numbers. This can also be figured out by a Dynamic Program, though there may be an easier way.
  5. I wonder about the computational complexity of the following problems:
    1. Problem 1 Given a,b in N, does there exist x1,...,xa such that x1+...+xa=b and 1/x1+...+1/xa=1. (Can also ask with the stipulation that the x's are distinct.)
    2. Problem 2 Given a,b in N and r in Q, does there exist x1,...,xa such that x1+...+xa=b and 1/x1+...+1/xa=r. (Can also ask with the stipulation that the x's are distinct.)


Possible Dynamic Program (more likely you would do it as a recurrence but save all answers found and check to see if you have already computed it, to avoid recomputing.) Let f(a,b,c,r) (where a,b,c are naturals and r is rational) be
num of sols to x1+...+xa=b and 1/x1+...+1/xa=r. where c ≤ x1 ≤ ... ≤ xa.
Note that
  1. f(1,b,c,r) = 1 if r=1/b and r ≥ c
  2. f(a,b,c,r) = sum as x in {c,c+1,..., min(b,floor(a/r)) } of f(a-1,b-x,x,r-1/x)
(NOTE- Use f(a-1,b-x,x+1,r-1/x) if you want to enforce distinct solutions.)

A math point: Ronald Graham showed that, for all n ≥ 78, n can be written as a sum of natural numbers whose reciprocals sum to 1. The lower bound of 78 is tight: 77 cannot be. A sketch of a proof of this is in the file pointed to. (The proof I give is inspired by one of the comments on the blog. YEAH BLOG COMMENTERS!) (ADDED LATER- Ronald Graham actually proved that for all n ≥ 78 n can be written as the sum of DISTINCT natural numbers such that... . The proof I presented in the pointed to document just gives nat numbers, not necc distinct ones.)

Riemann hypothesis

A general article on the Riemann hypothesis written by two insanely brilliant number theorists from Oz. It is part of a series explaining the millennium problems.

December 13, 2011

Is this problem too hard for a HS Math Competition

The Univ of MD HS Math Competition has two parts. Part I is 25 multiple choice questions in 2 hours (4 points for a correct answer, -2 for an incorrect answer). If you do well on it (the threshold changes from year to year) then you can do Part II which is 5 problems in 2 hours, 30 points each. The winner is the person who does best on the sum of the two parts.

This year I submitted a problem for Part II. The people on the committee who tried it couldn't do it so we decided to NOT put it on the exam. I only knew the answer because I read a theorem and build a problem around it. The people who couldn't do it are very sharp. Since they could not do it the problem was too hard. But... lets see what you think?

I would like YOU to try it without consulting any resources, (and don't look at the comments- someone might post questions that lead to a hint, or the answer) and keep in mind that you can't use advanced techniques (I'm do not think they would help anyway). See if you can do it so I can get a sense if it really is too hard. Post your opinion on if its too hard for a HIGH SCHOOL math competition. Here is the problem:
Prove or disprove: there exist natural numbers x1,...,x10 such that
  1. 2011=x1+... +x10 and
  2. 1=1/x1+... +1/x10
(ADDED LATER- A commenter thought that the xi's in the first and second condition could be different. They are not. We want x1,...,x10 that satisfy both of these simultaneously.)

I'll post a pointer to the solution next time I post. (Probably Wednesday.) ADDED LATER- a commenter wants to know if there is a solution or not and can't wait until WED. Also wants to know if there is a solution is it constructive or proof of existence. To answer the question but NOT ruin it for others, I put it in a file you can click on (or NOT) over here: here.)

December 09, 2011

A Great Time to be a Computer Scientist

Ask your friends if they'll be driving an electric car in ten years. The answer: No, cars will be driving us.

Today is the 105th anniversary of the birth of computing pioneer Grace Murray Hopper and Computer Science Education Week is being held this week in her honor. If only she could see what we have reaped from what she has sown.

The New York Times this week devoted Tuesday's Science Times to the Future of Computing. The section includes a series of essays from CS researchers including Daphne Koller, Stefan Savage, David Patterson, Kai-Fu Lee and fellow theory blogger Scott Aaronson. Scott also blogged about the experience. Though what would you do with a quantum computer on your desk? The factoring number thing could get boring pretty quick.

The Times also has a crowdsourced interactive timeline of future computing events. Try to guess which one I submitted. Almost all the advances listed are realistic and should keep CS very active for the long future. The most exciting future computer science advances will be the ones we haven't even thought of.

Finally the new class of ACM Fellows includes many theorists including Serge Abiteboul, Guy Blelloch, David Eppstein, Howard Karloff, Susan Landau, Joe Mitchell, Janos Pach and Diane Souvaine. A great year to be an ACM Fellow because the awards ceremony in June will follow a workshop celebrating the Turing Centenary featuring over 30 former Turing award winners.

December 07, 2011

What is a Breakthrough?

The recent discussion on Matrix Mult inspires the general question of WHAT IS A BREAKTHROUGH? Last year I tried to get an intelligent discussion on this topic but I failed. After saying what some criteria were I applied them in a silly way to several results. This derailed the discussion. My bad, my fault. SO, I'll try again to get an INTELLIGENT discussion on this topic. (NOTE- some of this post is a reworking of the old post.)

Here are some criteria. The first three are extracted from a comment Gowers made on Scott's Blog. I do not know how many a result has to have to be a breakthrough or even if such a threshold makes sense. Perhaps some sort of weighted sum, but would be hard to define.
  1. The result breaks a long standing barrier.
  2. The techniques introduce a fundamentally different method.
  3. The result is practical (or close to it).
  4. The problem being discussed is important. This may be a bit circular in that it then depends on What is Important?
  5. The result has to make substantial progress on the problem. This may depend on What is substantial? That notion may depend on how long the problem has been open.
  6. There has to be a reason why the problem was thought to be hard. E.g., a proof that a new technique is needed, problem has been open for a long time, people in the field say its hard.
  7. A paper that STARTS an important field could be a breakthrough. Cook's Theorem and Valiant's PAC learning qualify here.
  8. A paper that FINISHES a field could be a breakthrough if the field is important. Again this may be a bit circular in that it then depends on What is Important?
  9. The techniques are new. One might end up debating what is new.
  10. The techniques can be used on other problems.
  11. The paper inspires other papers. For this criteria you need to wait a few years. Some papers are not appreciated for a while.
The notions of important, substantial, new are not Boolean. As Gowers pointed out in his comment, the notion of breakthrough is not Boolean.

Do you have other criteria, examples, counterexamples, constructive criticism of my criteria, or anything that is an intelligent contribution to this topic? Is so, please post a comment!

December 05, 2011

Probability

On Saturday, Terrence Fine gave a talk on probability at a workshop at Northwestern. Before the talk he asked who thought probability was subjective (an individual's belief in the chance of an event) or a frequentist (a probability represents what happens if an experiment can be repeated many times). Someone noticed I didn't raise my hand either time so I said that I had a computational point of view of probability, since I have a computational point of view of everything.

I didn't mean computation as in Turing machine but as a process. A process that creates events according to some distribution. How does this process work? I don't care. That's the beauty of computational thinking, we abstract out the notion of probability and just make use of it. I've written papers on quantum computation having no idea of the physical processes that create entanglement. I study nondeterministic computation where we have no physical counterpart. Probability works the same way, at least for me.

My contribution to the workshop was to explain Kolmogorov complexity, the universal distribution and its relationship to inductive learning to the mostly economics crowd. Perhaps I could have explained things a bit more clearly as one econ student said to me afterwards "You lost me at prefix free". 

December 02, 2011

Analysis of Boolean Functions blog/book (Guest post by Ryan O'Donnell)

(Guest post by Ryan O'Donnell)

Lance and Bill have graciously let me plug my recently begun book/blog project, analysis of boolean functions. I am writing a textbook on analysis of Boolean functions and serializing it on the blog as I go. When I'm done, the book will be available online; hopefully it will also be published in the conventional format. (NOTE FROM BILL- its also linked to off of our blog page.)

The topic is sometimes called Boolean Fourier analysis, though my perspective is a bit more from probability theory than harmonic analysis. I hope the book will be accessible and of interest to grad students and researchers in theoretical computer science and other areas of mathematics. Each chapter will end with a "highlight" illustrating the use of Boolean analysis in problems where you might not necessarily expect it. To give you a flavor of the contents, my planned list of highlights is:
  • Testing linearity (the Blum-Luby-Rubinfeld Theorem)
  • Arrow's Theorem from Social Choice (and Kalai's "approximate" version)
  • The Goldreich-Levin Algorithm from cryptography
  • Constant-depth circuits (Linial-Mansour-Nisan's work)
  • Noise sensitivity of threshold functions (Peres's Theorem)
  • Pseudorandomness for F_2-polynomials (Viola's Theorem)
  • NP-hardness of approximately solving linear systems (Hastad's Theorem)
  • Randomized query complexity of monotone graph properties
  • The (almost-)Polynomial Freiman-Ruzsa Theorem (i.e., Sanders's Theorem)
  • The Kahn-Kalai-Linial Theorem on influences
  • The Gaussian Isoperimetric Inequality (Bobkov's proof)
  • Sharp threshold phenomena (Friedgut and Bourgain's theorems)
  • Majority Is Stablest Theorem
  • Unique Games-hardness from SDP gaps (work of Raghavendra and others)
If you're interested, you can think of it like an online course -- I've been publishing Mondays, Wednesdays, and Fridays, and there are even exercises. (Also like a course, I'll go on break for a few weeks around the new year.) Come see why "juntas" are important, what hypercontractivity "really" means, and why functions on Gaussian space are the "easy special case" of Boolean functions...

PS: I'm using MathJax for the posts; if anyone has suggestions for me or for readers on how to make it look nicer or load better, please do let me know.

Homework

We have seen textbooks that only gives solutions to odd-numbered exercises. But have you seen a number theory text with the following exercises? 1) Prove that has no non-trivial solutions in integers. 2) Prove that has no non-trivial solutions in integers, for all That’s actually apocryphal. Another story which appeared in George Dantzig’s obituary, tells [...]

November 30, 2011

Matrix Mult (you heard it here... third?)

(INNOVATIONS CONFERENCE: here)

(While preparing this two other bloggers wrote on the same topic, Scott here and Lipton/Regan here. Our slogan: Complexity Blog: You heard it here THIRD.)

Let w be the exponent for matrix mult. A very brief history of Matrix Multiplication (years given are years of publication, though it is odd to say Pan in 1978 showed that w < 2.796 since, for all I know, he did it in 1977 or even earlier.)
  1. The obvious way to do this shows w ≤ 3. This is obvious to us; however, I wonder when it was first stated.
  2. Strassen in 1969 showed w ≤ 2.808. This is important since it shows that Gaussian Elimination is not optimal (that is the name of the paper) and also because it is a cautionary tale for lower bounds- w=3 seems optimal... but its not!
  3. Pan in 1978 showed that w < 2.796.
  4. Bini, Capovani, Romani, Lotti in 1979 showed w < 2.78.
  5. Schonhage in 1981 showed w < 2.522 This was significant since it used a brand new technique.
  6. Romani in 1982 showed w < 2.517.
  7. Coppersmith and Winograd in 1981 obtained w < 2.496. This was significant in that it broke the 2.5 barrier.
  8. Strassen in 1986, using a very diff technique, obtained w < 2.479.
  9. Coppersmith and Winograd in 1987 obtained w < 2.376. (See here for the Journal Version.) This paper uses the large 3-free sets of Behrend. (See here for Behrends article (it might now work- its the Proceedings of Nat Academy of Sciences website and I don't know if its free to ALL or just to some schools.) or here for my survey of large 3-free sets.)
  10. Cohn and Umans in 2003 proposed a group theoretic approach which had the potential for new algorithms. Kleinberg and Szegedy in 2005 obtained new algorithms using the approach, but couldn't beat 2.376.
  11. Elkin in 2008 (here) obtained larger 3-free sets than Behrends. Elkin in 2010 (here) used these sets to get a logv improvement over CW for some v > 0.
  12. Andy Stothers 2010 PhD thesis (here) claims to have w ≤ 2.374. The result was not stated in the abstract. He didn't post a preprint or email a blogger so this work was relatively unknown. He did tell some experts in the field. (See the comments on Scott's blog for what might be the full story on that).
Virginia Vassilevska Williams has obtained (ind of Stothers) w < 2.3727 (see here) with a very sophisticated analysis. How do I know its sophisticated? Because the paper is 71 pages long and looks scary.

  1. This is clearly a breakthrough! There had been NO improvement in two decades!
  2. The improvement is small; however, it may lead to more improvements (this seems to be common in this field).
  3. Can Elkin's 3-free sets be used to get a log improvement over Virginia's result? Not sure we care- from what I understand (which is not much) (1) the current techniques can likely be pushed further, and (2) Elkin's 3-free sets will only give a log-ish improvement, no more. (Is log-ish a new word? Should it be?)
  4. Is the algorithm practical? I suspect not.
  5. Two breakthroughs in theory within a year from the same family. Impressive!

November 29, 2011

MathMammoth.com new home page design

I've given the home page at www.mathmammoth.com a "lift" (new design)... go check it out, see if you like it!

November 28, 2011

Currclick Cyber Monday freebies

Currclick has 8 + 2 freebies just for today (Cyber Monday)!
One of them is a physics book... I'm downloading it right now.


The Death of Complexity Classes?

In the 2011 Complexity proceedings there are three papers that analyze complexity classes, Ryan Williams' great paper on ACC, Russell Impagliazzo's paper on average versus worst case for NP and a Hartmut Klauck's paper on AM in communication complexity. That's the complexity conference. At STOC, there was only the Aaronson-Arkhipov paper on linear optics.

Complexity classes capture important aspects of problems based on how they can use various resources. The complexity zoo has nearly 500 classes. Many of the greatest theorems in theoretical computer science relate classes like NPSPACE = PSPACE, NL = co-NL, PH ⊆ P#P, IP = PSPACE, NP = PCP(log n,1), SL = L, NEXP not in ACC and many others. The most important open question in our field (and maybe any field) is the relationships of the classes P and NP.

So why do we see so few papers about complexity classes these days? We are victims of our own successes and failures. We have succeeded in classifying and relating most of the connections between classes where we don't have relativizable counterexamples and have failed, outside of interactive proofs, to develop many tools that let us get around relativization and other barriers.

So here we sit, still putting out the occasional paper on complexity classes but mostly hitting a wall. Occasionally we see a nice breakthrough like Ryan's paper but mostly we are just clawing at that wall waiting for someone to create a wrecking ball so we can make real progress. 

November 24, 2011

Happy Thanksgiving!

Happy Thanksgiving!

Last year my kids learned this silly rhyme

A turkey is a silly bird
whose head goes wobble wobble
It only knows this one word
gobble gobble gobble!

Here's a video of kids shouting it... 



Remember also Math Mammoth Thanksgiving sale... all my products are 25% off at Kagi store. See my website for details.

And happy Thanksgiving!

November 22, 2011

Math Mammoth reviews galore

Click here to read a bunch of recent Math Mammoth reviews, by TOS review crew.


A few highlights:

TOS Review: Math Mammoth from Miscellaneous Musings
"My daughter took a break from her other math curriculum and began focusing just on fractions with the Math Mammoth blue series which includes explanations. About three weeks later she was able to test out of an entire text on fractions"


Review: Math Mammoth from Footprints in the Butter
"And I started this school year completely stressed about what to do with math.So finding out I'd be reviewing Math Mammoth again this year was a gift from God."


Math Mammoth -- A TOS Crew Review from Mountaineer Country
"Do you know what my daughter said to me? She said, rather matter-of-factly, “Why haven’t we been doing this all along? I love this math.” 

TOS Review Math Mammoth from Circling Through This Life
"She really enjoys it. She calls it her “Elephant Math” and insists that Manny, her woolly mammoth do math with her. "
This review has a cute picture of a stuffed mammoth next to the girl's math work!

Math Mammoth~ TOS Review from Adventures in Unsell Land!
"We have used quite a few various math programs through the years between our 6 children and I have never seen one that is as strong on the mental math as Math Mammoth is. It's my favorite aspect of this program."

Math, it’s a Mammoth responsibility from A Teaching Heart
"It is suggested that you introduce multiplication before division, but other than that, you can proceed through the lessons as you wish. I find that mixing up the learning of multiplication with other math concepts gives Hunter’s brain a chance to process and retain facts. So we will be jumping around the books all year."

More reviews here!

November 21, 2011

The Jobs Bio

I just finished the Walter Isaacson biography of Steve Jobs. Seems like everyone in the blogosphere has analyzed every sentence in the book, so I won't do that.

Instead I viewed the book as a trip down memory lane. The Apple II was my second computer and while I never owned a Mac you can't avoid them in the CS community. My family has by now gone through a dozen or so iPod/iPhone/iPad devices.

The biography opens up the curtain and you get to see the man behind these devices. Jobs was not a computer scientist or even a computer engineer. He was a designer who understood computers enough to make them beautiful and make them work better. His simplicity sometimes goes too far, I like the context-sensitive menus from a right mouse button and often double click the one button on my iPhone instead of single click or vice-versa.

I found myself least interested in Jobs' personal life, most of the problems he dealt with were of his own doing. He wasn't a nice guy and often got upset with people who don't share his values. But he also knew how good technology should work and we're better off for it.

I love reading biographies of successful people, you really get to see a fuller picture both the good and the bad. Walter Isaacson's book is rather unique, rarely do we get such a complete picture so soon after his untimely death.

If Steve Jobs isn't your thing, try Isaacson's bio on Einstein instead, another great read.

November 20, 2011

Pi to two million digits

is a book I chanced upon in the library. The book consists, as the title states, of the constant to two million digits in 296 pages. My first reaction was, what is it doing in a university library? I’m all for esoteric number theory, and computing the digits of pi is as fruitful an [...]

Check your facts

I’m one of those who first reaction is to “google it” when I want to check some fact. I even had a first generation SSD netbook which boots up in less than one minute to allow me to check things that occurred to me. Now with armed with an ipad2, it’s even easier. It’s interesting [...]

November 19, 2011

Class Dismissed - a film about homeschooling

I'm just spreading the word on an upcoming film about homeschooling. The movie is called Class Dismissed.

It does sound interesting, though I cannot be  sure what all it will include.
The website says:

QUOTE
Class Dismissed will be the first full-length documentary devoted to exploring homeschooling as a viable alternative to traditional schooling.


As homeschoolers ourselves, we are constantly reminded by the degree to which the public misperceptions of homeschooling are far removed from reality. With this documentary we hope to both educate the general public as well as inspire the existing homeschool community.


Class Dismissed will focus on the topic of education, specifically the validity of homeschooling as an alternative to the industrial school model. Framed within the historical context of traditional schooling, and particularly at a time when education across the nation is in a state of crisis, the film will examine the numerous approaches to home learning, exploring both its history and recent growth. UNQUOTE


Take a look: Class Dismissed.
Also... the filmmakers are having a fund raiser right now — the campaign ends in 22 days.

November 18, 2011

Short Bits

Because some things are too long to tweet and too short for their own blog post.

What's the algorithm for the perfect sushi? Enjoy it with some cool refreshing SODA in Kyoto. Early registration deadline is December 20th and lots of travel support still available (apply by Nov 29).

What's new for STOC 2012 in New York City? An open call for workshops (apply by Dec 2) and a best student presentation award. Practice up. Please also nominate people for Gödel, Knuth and SIGACT Distinguished Service prizes.

Google scholar citations now open to all. Now you can see my papers at Google, Microsoft, ACM, DBLP and my own papers page. Google has the best stats and ranking, DBLP the best links, my page the most accessible downloads and Microsoft has the coolest graphics.

Google gives all the stats so we can rank job applicants. Why stop there? Google can use their magic algorithms to tell us who to hire. No more messy recommendation letters and awkward interviews.

November 12, 2011

A quick python hack for a mathematical puzzle

So, today I saw this in my Twitter feed:

«Phil Harvey wants us to partition {1,…,16} into two sets of equal size so each subset has the same sum, sum of squares and sum of cubes.» — posted by @MathsJam and retweeted @haggismaths.

Sounds implausible was my first though. My second thought was that there aren’t actually ALL that many of those: we can actually test this.

So, here’s a short collection of python lines to _do_ that testing.

import itertools
allIdx = range(1,17)
sets = itertools.combinations(allIdx,8)
setpairs = [(list(s), [i for i in allIdx if i not in s]) for s in sets]
def f((s1,s2)): return (sum(s1)-sum(s2), sum(map(lambda n: n**2, s1))-sum(map(lambda n: n**2, s2)), sum(map(lambda n: n**3, s1))-sum(map(lambda n: n**3, s2)))

goodsets = [ss for ss in setpairs if f(ss) == (0,0,0)]


And back comes one single response (actually, two, because the comparison is symmetric).

[([1, 4, 6, 7, 10, 11, 13, 16], [2, 3, 5, 8, 9, 12, 14, 15]),
([2, 3, 5, 8, 9, 12, 14, 15], [1, 4, 6, 7, 10, 11, 13, 16])]

Strange inequalities in Singapore law

Singapore has very strict laws on drug trafficking. Anyone found with more than 15 grams of heroin faces mandatory capital punishment. I remember learning this fact in primary school. Even on Singapore Airlines flights into Singapore, this fact would be announced over the PA system to warn tourists or anyone entering the country. According to [...]

November 11, 2011

A teacher's experience with Math Mammoth Geometry 1

I intend to publish several of these "stories" or "reports" from teachers who have been using Math Mammoth. Here's the first one, from Megan in Belgium. She used some lessons from my Math Mammoth Geometry 1 book.

p { margin-bottom: 0.08in; }
Presentationof the Class and the School
I am a1st,5thand 6thgrade teacher in south Belgium. My school is what we call an“immersive school”. The students are taught in French, theirmother tongue, 14 periods a week. During the other 10 periods eachweek, class is given in English – the students are “immersed”in the language from the age of 5 and learn to speak this language ina very natural manner.
Becauseof these awkward hours, we teachers “share” the classes. In orderto have a full schedule, I give class in English 10 hours a week in5thgrade, 10 hours a week in 6thgrade and 4 hours a week in 1stgrade. We also split the subjects between French and English – andGeometry is one of the subjects seen in English.
Now,the immersive program is not without its downfalls, one of whichbeing that we must consecrate two times as many periods per week onLanguage Arts, as we have both the French and the English language toteach. As a result, we have less time to teach everything else.
I amalso a first-year teacher, thrown into this system with no life-linesto cling to! I was searching desperately for a guide, something tohelp me, but also for something that would help my studentsunderstand this subject that is such a part of our everyday lives,yet seemingly so abstract. When I saw Maria Miller’s offer – one“free” e-book in exchange for a report of my experiences – Icouldn’t turn it up! So, without further ado, here is what I haveto say about Math Mammoth.

Session1
Istarted the year teaching lines and angles to both the 5th and 6thgraders. Most of the 5thgraders did poorly on the test and some of the 6thgraders needed a refresher course.
Forthe 5thgraders, I dove right into the Geometry 1 Elementary Math book inorder to review the different lines and angles, as well as how todraw them (chapters Lines, Rays andAngles and DrawingRight Angles). I did not print out andphotocopy the pages exactly as they were, I chose instead to pick andchoose the exercises I found most appropriate for my students at themoment. I must say though, I felt no need to modify any of theproblems, as I usually do with workbooks.
Thereaction from my students was a good one, especially concerning theterm ray.Most of them had such a hard time remembering what a ray is and theimage of the sun and its rays was just the trick they needed! Theirresults were very satisfactory – though they all had a hard timewith the construction of the squares and the rectangles! I don’tthink they’ve passed a lot of time on that as of yet, and I hope itis a point that MM covers more thoroughly later on in the program.All in all, the weaknesses I noticed from the test have now beenovercome, except for one or two exceptions of course.
Agreat point about these exercises is that I could let most of theclass work independently while I spent a bit more time helping theslower/weaker students. Everything is very clearly explained and easyto follow and understand, even for 5thgraders whose native language is not English.
Forone of my 6thgraders, I started him off with the chapters MeasuringAngles and DrawingAngles as I noticed he had difficultiesusing his protractor. Once again, I did not give him all the pages inthese chapters, nor did I alter anything. (As a side note, it isquite nice to have such a great bank of problems at the ready – Iusually spend more time perfecting my worksheets than the childrenspend working on them!) He whizzed through the exercises and trulysurprised me with his improvement. It’s as if a light bulb went offin his head. I don’t know if it’s because of the book’sexplanations or not, but I’m glad it happened! He’s now at thesame level as the others.
Myother 6thgraders did not receive sheets from this book during this period.

Sessions2 and 3
Forthis work period, I combined the chapters Measuring Angles and DrawingAngles for the 5thgraders. I let several children do some examples on the board andthen students worked quietly on the worksheets (which, again, I didnot modify, save the page-layout). They finished these quickly,though that was because of laziness from most of them. They wereconvinced that the angle was still alright; even it was a few degreesoff! The papers were returned to them the next day and the redoneangles were more than acceptable.
I amnot sure about this, but I am getting the impression that Belgianstudents see certain geometry concepts earlier than their Americancompatriots. I am not saying that these concepts are known andmastered by Belgian children (far from it! :p), but they do have somebases to work from. I have yet to explain a point starting from zeroknowledge, though the book sometimes seems to suggest that theconcept is completely new.
Nevertheless,the MM book is so clearly laid out and the explanations are soconcise and understandable that I feel more confident myself inexplaining the different concepts to my students. Also, it is a loteasier for students to look at a piece of paper right in front ofthem and follow along with the pictures than just doing the exampleson the board alone. The drawn protractors act as a sort of teacher’saide – I don’t have to walk around to verify that each child hasplaced their protractor how they should because they can clearly seehow the protractor is supposed to be on their paper.
Also,it was very practical as I make sure to have the papers for the nextlesson printed out for my “ace” students that always finish wellbefore the others. Because of their clarity, these students can oftenget right to work without any additional explanations.
The6thgraders are busy doing precision drills and going over drawing basicgeometric shapes (I’m surprised at how many of them have a hardtime drawing a square!), though I am not using MM for their work.

Session4
Thissession was dedicated to the EstimateAngles chapter in MM. This was a breezefor my 5thgraders – much to my surprise! We started the lesson out by doing afew examples “in real life” using chalk on the playground outsideand our giant chalkboard protractor. Walking the lines and making theturns themselves really helped them understand what the directionsmeant when they said “turn 45° to the left”.
I mustadmit though, the last exercise had everyone baffled! I still don’tknow what the secret message is (I could look at the answer key, butwhere is the fun in that?)! Nevertheless, the children enjoyed trying to figure it out, andthen trying to find where they went wrong in their drawings. Itbecame a very rich activity in which the children analyzed and foundtheir own errors, as well as the errors of others.

Sessions5 and 6
Weworked on the chapter Parallel andPerpendicular Lines for these last twosessions. These concepts had already been touched upon in theearlier chapters, so it was more of an in-depth review than a newconcept for them. This really helped set things straight in theirheads and served as a great closing lesson for the first part of theschool year, before leaving for a week of vacation. Most of the workduring these two sessions was done individually while I worked with afew children in need of an extra boost.

Evaluations
Iincluded three evaluations in this first part of the MM curriculum:one on Lines, Rays and Angles;another on Measuring, Drawing and Estimating Angles; and the last one onParallel and Perpendicular Lines.These were tests that I created myself, based on the concepts coveredin the MM chapters.
Inever had more than three or four students out of twenty fail thetests, but these are also the students who present very importantweaknesses in nearly every subject matter. The other results weremore than satisfactory and provided for a very impressive firstreport card. (As a first-year teacher, I was very proud to have beenable to show the parents that their children had indeed learnedsomething with me.)

Continuation
I planon using MM for the rest of the year with my 5thgraders, while adding my own touches. We’re going to start with thetriangles, but before using MM, I would like to use a more activeapproach for the discovery of the different types (let them createthe different triangles themselves, for example).

FinalWord
I findMM to be very complete, though a bit traditional. Perfect forhomeschooling parents who have little or no pedagogic experience, butI think it could benefit from the addition of a few hands-ondiscovery sessions. (Though I do believe that Maria speaks of acurriculum that shows how math is useful in everyday life… thiscould also be very interesting for a hands-on approach…) I have noproblem with the hands-on approach, but I was rather blocked by thetheory part of the geometry… MM is my perfect complement! I wouldhave been very lost this year if not for this amazing find.
Iwould like to thank Maria for this wonderful opportunity, apologizefor the absence of photos (I always get so caught up in my lessonsand with my students that the camera stays inactive on my desk!) andI do hope that my words and my experiences can help convince othersof MM’s wonderful structure, clarity and presentation.



Click the link to read more about the book Math Mammoth Geometry 1 and to see its FREE sample pages!

November 09, 2011

A free math assessment test

LexxLearn is a new company and is offering a free math assessment test online. It's currently based on Massachusetts standards but is surely useful if you need to benchmark your student, wherever you live.

The grade levels offered are from grade 3 through grade 10. Each grade level test has about 35 questions.

You will need to supply your email address and create a password, which will then allow you to come back and continue the test at a later time.