Thursday, August 18, 2016

Predicting in Changing Environments

The New York Times yesterday ran a story connecting climate change to the Louisiana flooding.
The National Weather Service reports that parts of Louisiana have received as much as 31 inches of rain in the last week, a number Dr. Easterling called “pretty staggering,” and one that exceeds an amount of precipitation that his center predicts will occur once every thousand years in the area.
Dr. Easterling said that those sorts of estimates were predicated on the idea that the climate was stable, a principle that has become outdated.
The third National Climate Assessment, released in 2014 by the United States Global Change Research Program, showed that “the amount of rain falling in very heavy precipitation events” had been significantly above average since 1991.
However, the research did not identify the South as one of the areas of greatest concern; the increase was found to be greatest in the Northeast, Midwest and Upper Great Plains regions of the United States.
In short climate change means our old prediction models of the weather no longer apply. On top of that, new models that tried to take into account climate change predicted heavier rains but not in that area of the country.

The weather is hardly the only predictions gone bad this year. From Nate Cohn's What I Got Wrong About Donald Trump
Did he have a 1 percent chance to win when he descended the escalator of Trump Tower last June? Twenty percent? Or should we have known all along?
Was Mr. Trump’s [republican nomination] victory a black swan, the electoral equivalent of World War I or the Depression: an unlikely event with complex causes, some understood at the time but others overlooked, that came together in unexpected ways to produce a result that no one could have reasonably anticipated?
Or did we simply underestimate Mr. Trump from the start? Did we discount him because we assumed that voters would never nominate a reality-TV star for president, let alone a provocateur with iconoclastic policy views like his? Did we put too much stock in “the party decides,” a theory about the role of party elites in influencing the outcome of the primary process?
The answer, as best I can tell, is all of the above.
I do think we — and specifically, I — underestimated Mr. Trump. There were bad assumptions, misinterpretations of the data, and missed connections all along the way.
We also had bad predictions on Brexit and one factor in the 2008 financial crisis was a heavy reliance on historical patterns of housing prices.

We have at our fingertips incredible prediction tools from machine learning models to prediction markets. Not all things change, our models trained to recognize cat pictures will continue to recognize cat pictures for a long time running. But as we continue to rely more and more on data driven predictions and decisions, be prepared for more and more surprises as underlying changes in the environmental, political and financial climates can pull the rug out from under us.

Monday, August 15, 2016

Is the examiner being pedantic? Whats really going on here?

The following are two real conversations.  For each one: (1) Is the examiner correct?, and
(2) Where and when do you think this conversation took place?

I give the answers below so you may want to read, stop and think, and then read on.

CONVERSATION ONE:

EXAMINER: What is the definition of a circle?

STUDENT: The set of points equidistant from a given point.

EXAMINER:  Wrong! It is the set of ALL points equidistant from to a given point.

CONVERSATION TWO:

EXAMINER: What is the definition of a circle?

STUDENT:  It is the set of all points equidistant from a given point.

EXAMINER: WRONG! You did not specify that the distance is nonzero.









AN ANSWER I HAVE HEARD FROM SOME NON-MATHEMATICIANS: Since math people are  pedantic and formal to an absurd level the examiner is correct.

REAL ANSWER: Nobody in math would be that pedantic.  In the old USSR, entrance exams for
Moscow State University were rigged so that Jewish students could not pass.  The following is a quote from


Bella Abramovna Subbbotovskaya and the Jewish People's university, By G. Szpiro. Notices of the AMS Vol 54,  . 1326--1330. Article is here


The first story in it happened to Edward Frenkel when he was a 16-year-old taking the oral entrance exam to Moscow State University in 1984, recounted in his book Love and Mathematics, which I reviewed here.


BEGIN QUOTE
Jews -- or applicants with Jewish-sounding names -- were singled out for special treatment.  On one occasion a candidate was failed for answering the question what is the definition of a circle with
 the set of points equidistant to a give point. The correct answer, the examiner said, was the set of all points equidistant to a given point.  On another occasion an answer to the same question was deemed incorrect because the candidate had failed to stipulate that the distance had to be nonzero.
END QUOTE

A different technique used on the entrance exams was to give Jewish students problems that had simple solutions which were extremely difficult to find.  The simplicity of the solution made appeals and complaints difficult.  Some of these problems and their history is in this article:

Killer Problems by Tanya Khovanova and Alexey Radul, The American Mathematical Monthly ,Vol 119, pp. 815--829.Article is here (link is to arxiv version where title is Jewish Problems.)

This is of course apalling; however, I have another issue to raise. Not allowing some part of your population to contribute  is just... idiotic. What I really want to know is why did they do this when it so clearly worked against their interests. How would an intelligent defender of this system defend it? By intelligent I mean someone who knows that Jews are not FILL IN ANY FALSE NEGATIVE BELIEF ABOUT JEWS.  By intelligent I also  mean someone who actually sees the downside. In other words, how would they fill in the following sentence:


The downside is that people who are talented in math and other fields do not get to contribute to our society, but the upside is FILL IN THE BLANK.

For more information on this, but not really an answer to my question, see the Wikipedia entry on anti-semitism in Russia here.






Thursday, August 11, 2016

Robin Hanson's Ems

Robin Hanson an economist at George Mason and author of the Overcoming Bias blog, has a new book The Age of Em: Work, Love and Life when Robots Rule the Earth. Em stands for brain emulation, a computerized version of a human brain processes including consciousness, all the wants, desires and faults of a human brain. An em can be created by copying from a human brain or another em, it can be stored and restored, slightly tweaked and can run faster or slower depending on the power consumption. Reminds me a bit of the cookies in the White Christmas episode of Black Mirror. Hanson also talks about clans, the collection of all the ems that descend from a particular human.

The book has two distinct parts. The first gives a plausible physical and social explanation as to how and why the em world will come to be. Hanson gives the odds of such a world developing at one in a thousand. I put the odds much lower, especially since we have no true understanding of consciousness. For example if consciousness requires quantum entanglement, we would have no hope of copying into an em without destroying the old em (or human) it came from. More likely I expect we would have em-like machines that can perform a number of human-like tasks but won't have any true consciousness. Nevertheless I'd acknowledge that Hanson's world is at least possible given our current knowledge of the brain.

I enjoyed more Hanson's discussion about the world of the ems given that they exist. Hanson takes a science, as opposed to a science fiction, approach to the topic, carefully thinking about how ems would work as a clan, how they interact politically, socially and economically. You can see the variety of topics in the table of contents on the book's website. For example, Hanson argues that it makes economic sense to have ems split off as "spurs" to do more menial tasks in parallel in exchange for a short working life, as short as a few minutes, and a long retirement, with the retirement in a slower low-powered mode. Hanson has done some strong research and advocating for prediction markets (we even have a joint paper on the topic) that there is no surprise that markets show up as a decision making systems for ems.

I don't agree with all of Hanson's conclusions, in particular he expects a certain rationality from ems that we don't often see in humans, and if ems are just human emulations, they may not want a short life and long retirement. Perhaps this book isn't about ems and robots at all, but about Hanson's vision of human-like creatures as true economic beings as he espouses in his blog. Not sure it is a world I'd like to be a part of, but it's a fascinating world nevertheless.

Sunday, August 07, 2016

A Game Theory Conference! That sounds like fun!


Bill: Lance just came back from Games, a conference on Game Theory.

Darling: That sound like fun! From what you tell me there is some nice math behind
Monopoly(see here for a paper on Monopoly as a Markov Process), Risk (see here for a paper on using Markov chains in the game Risk. Was Markov a game player?) and other FUN games.

Bill: Uh, I don't think they talked much about those kinds of games.

Darling: Darn. Did they talk about those really boring math games like Dup-Spoiler games, those games that AD is about, Gale-Stewart Games, Banach-Mazur games, Martingales, Pebble games, Communication complexity games. Oh, and Combinatorial games like NIM which can be sort of fun.Or did they talk about computers that play Chess and similar games? Or did they have talks on things like Chess being EXPTIME complete. Or did they talk about the Unique Game Conjecture.

Bill: Most of the talks were about setting up a system so that all players acting in their own best interest is also good for the system. Like an auction system where it is a players best interest to bid what they actually think the item is worth.

Darling: So there are no Games at a Game Theory conference?

Bill: There were a few papers on Poker, but that's it.

Darling: They should change the name of the field.

Bill:  Lance tells me that Ehud Kalai has suggested  Game Science. 

Darling: So long as the word Game is in the title they should have fun games there. Oh well.



Wednesday, August 03, 2016

Seymour Papert (1928-2016)

Seymour Papert, the great AI pioneer, passed away Sunday at the age of 88. In the theory community we best know him for his 1969 book Perceptrons with Marvin Minsky, who died earlier this year. In that book they show that a perceptron (what we now call a weighted threshold function) cannot compute parity, one of the first examples of a circuit lower bound.

In the summer of 1982 I worked a a computer camp in Los Olivos, California and we taught the kids programming with the Logo programming language, a simple functional language co-created by Papert and Wally Feurzeig. In Logo you controlled a virtual turtle that carried a pen and you could give simple instructions like raising and lowering the pen, moving forward and backward and turning. With simple functions one could create complex diagrams, like the one above. Normally you would see the diagrams on a screen but we also had a physical electronic turtle that would move and draw on a sheet of paper. The kids loved it since they could see the results of their programs as a picture while they learn programming functions and recursion without realizing it.

You can play with Logo at Turtle Academy  Logo set the stage for control of actors in many other computer languages designed for children including the tasks for the popular Hour of Code.

Let's raise our turtle pens to honor Papert and the many that he brought into the world of computing.

Thursday, July 28, 2016

GAMES/EC 2016

This week I report from Maastricht in the Netherlands from the GAMES 2016, the 5th World Congress of the Game Theory Society. By having their congress every four years, everyone who is anyone in the game theory community makes a strong effort to be here, including three Nobel laureates, Robert Aumann, Roger Myerson and Eric Maskin. The conference has about 750 participants and up to 19 parallel sessions.

This year the conference is co-located with the Economics and Computation conference that comes more from the CS community. By co-located we are sharing the same buildings and many of the events, effectively one larger conference (which means in reality 21 parallel sessions).

EC keeps growing, accepting 80 papers out of 242 submissions, all of which are freely downloadable.

My favorite EC talk was the best student paper, Deferred Acceptance with Compensation Chains by
Piotr Dworczak, a graduate student in the Stanford Business School. He gives an algorithm for finding stable matchings with the property that every stable matching can be found by changing the order that the agents get to choose. The paper Which Is the Fairest (Rent Division) of Them All? by
Kobi Gal, Moshe Mash, Ariel Procaccia and Yair Zick won best paper.

Also a shout out to the talk Cadet-Branch Matching in a Quasi-Linear Labor Market solely authored by Ravi Jagadeesan, a rising junior undergraduate at Harvard. I went to grad school with Ravi's mother Lalita, and yes that makes me feel old.

Tim Roughgarden gave the Kalai prize talk for his work on Intrinsic Robustness of the Price of Anarchy. The talk, attended by a good number of the game theorists, gave a general approach to generalizing bounds price of anarchy results to broader classes of equilibria. Tim followed Keith Chen who heads the analytic team for Uber and discussed how game theory and optimization ideas are driving a major e-commerce company. No major surprises but here's one trade secret: Uber covers its maps with hexagons while Lyft uses squares.

All is all a great week, with packed schedules and crowded activities, but great to see all these game theorists and computer scientists talking with each other.

Sunday, July 24, 2016

The College Issues that are talked about/College issues that are important

The following college issues get lots of attention:

Admissions-  high school students PLAN to do things JUST to get them into an elite college. For example nobody takes the SATs just for the fun of it anymore.

Admissions- Some High School Students are stressed out about college admissions, see here

Admissions- Affirmative action.

Admission- Lower standards for athletes?

Sports- too much money spend on it?

Sports- the players treated unfairly?

Are other out-of-class activites also an issue? See here.

Jock Culture.

Free speech- Speech codes, triggers. (I've heard this talked about for about 30 years now.)

A  common core. How to make it not just dead white males.

A common core. How to get this to work when profs are overly specialized.

Professors are rewarded for research more than teaching- how to induce them to be better teachers.(I've heard about this one for about 40 years.)

Renaming buildings that are named after racists. ( Byrd Stadium at UMCP is now Maryland Stadium  see here) (If we find out that Fields or Abel was a racist will we rename the awards? Why bother naming things after Justice Scalia or Bobby Kennedy when they will be renamed at some point because of their views on gay people?)

Renaming buildings that are named after the things racists do (see here)

White privilege  (If I was black then whenever my blog had   bad spelling or grammar it would be connected to my race and assumed upbringing.)

The crushing debts of $100,000 or so that some students face after college. (Which is why some students Feel the Bern!, though others Feel the Bern! for different reasons.)

Hookup culture on campus

Lack of diversity in some majors (I've heard this talked about for about 30 years now.)
(Examples: Across the country CS is at around 15% female.  Art History is around 80% female. Why does the CS one generate much discussion and some outrage but the art history one... not so much? I would guess jobs. But the point of this list is just that these are the issues people ARE talking about.)

Should college be vocational vs intellectual? Are these two disjoint?

MOOCS: How will they affect education?

These are important issues. But they affect  few people. 65% (and dropping) high school seniors goto college. Over 1/2 of all college students go to community college. Many of those students are part timers who also work. Speech codes are not at the top of the things they have to worry about. These people face other problems that do not get attention. See the following excellent articles

Shut up abour Harvard by Ben Cassleman

and

The other 75% by Paul Attewell and David Lavin

To give one example: The number of students going to community college who need to take part time jobs to finish and end up with a crushing (to them) debt of $10,000 is a far more common problem then any of the ones above. Why so little coverage?

The articles give other examples of problems that are NOT being talked about.

The other 75% is from the excellent book What is college for edited by Lagemann and Lewis, and reviewed by me, for SIGACT News, here.   Most of the other chapters are about the issues above. We need a book, or at least  a conversation, about issues of education affecting many more people.

The Morrill Land-Grant Acts established many colleges. It was passed in a time when it was realized that its important to have an educated public. It must have been passed in a time where there were not the pressing issues we have today (like bathrooms for transgender people) so they could think about these issues clearly. It was passed in 1862 in the middle of the Civil War.

A meta-thought--- Every comment on this blog about the issues I list above as NOT affecting that many people will prove my point that those issues are discussed far more than issues that affect far more people. Even so, feel free to comment on whatever issues you want.

Thursday, July 21, 2016

Snowbird 2016

Earlier this week I attended the 2016 CRA Snowbird Conference, a biennial meeting of CS chairs and other leaders in the the computing community. I’ve attended every meeting since 2010, the first as a panelists on journals in CS and the last three as department chair. I enjoy this meeting mostly for the networking with other chairs across the whole CS discipline.

Computer science sits in an enviable position with booming enrollments, our graduates easily finding quality jobs in the field and computing literally changing society. Success breeds challenges, top of this list is how do we cover the dramatically increasing course load. Right now most schools are applying a variety of short-term solutions from increased use of larger classrooms, sometimes with recorded video, instructors and teaching faculty, PhD, MS and undergrad TAs and less small specialized graduate classes to allow for more core courses. What we haven’t seen is increased teaching loads. We need to be careful not to drive faculty into industry’s waiting arms.

The confrence had some interesting speakers such as John Markoff from the New York Times on the excitement and concerns over machine learning and automation, Cynthia Dwork on the theory approach to privacy and fairness in the big data era, and Robert Morse from US News on how they rank CS departments. I'm generally fine with the US News Ranking, they measure reputation and reputation is in the end what matters in recruiting students and faculty. Many at the meeting had other, less friendly, opinions towards US News and rankings in general.

One popular session discussed schools and colleges of computing beyond the department. Most of the successful transitions came out of CS programs in colleges of science, such as at CMU and Georgia Tech. Rarely do we see the transition out of engineering. With both the growth of computer science and its increasingly central role in many academic disciplines, now is a good time to make the argument for more colleges of computing. Perversely the growth makes such changes more challenging as an engineering dean would not want to give up such a large and growing part of their college.

The Snowbird conference moves the conversation away from the weeds of current results to look back at what our field has achieved and where it is going. It's never been a more exciting time to be a computer scientist and while chairs always love to grumble when we get together, we all know how lucky we are to be leaders in this era.

Monday, July 18, 2016

Solution to the Alice-Bob-Box problem.

In my last blog I solved one problem and asked another (when will it end!).  Damien Roberts provided an answer in the comments to the last blog, so kudos to Damien! I summarize the question asked and answer it (same answer as Damien, though more long winded)  and then some comments and further questions.

Peter Winkler told me this problem at the Joel Spencer 70th Bday conference.  He got it from Sergui Hart who does not claim to be the inventor of it.

PROBLEM:
Alice and Bob play the following (non-fun) game:

Alice puts natural numbers in the boxes 1,2,3,4,... She can put any number in any box. She can put the number 12 in two boxes. She can refuse to put primes in any box. The world is her burito!

Bob opens all but a finite number of  boxes. He chooses one of the boxes that is NOT opened and guesses what is in it and then opens it.  If his guess is correct he wins! (not clear what he wins, but he wins).If not he is, as one of our candidates for prez would say, a LOOOOOOOSER.

Would you rather be Alice or Bob?
END OF PROBLEM

(Added Later- below is an answer that I believe to be correct. Some people disagree. See some of the comments below and also the comments on this)

ANSWER:
I would rather be Bob:

As you might have guessed, Bob takes the set of all infinite sequences of natural numbers and looks at the equivalence x==y iff x and y differ on only a finite number of positions. He then picks a representative from each part of the induced partition.

(When I tried to solve the problem thats as far as I got. Some commenters thought that was the solution, or the solution was obvious from that point. I don't see how.)

Here is what Bob does;

STEP 1: (I used to have Bob takes a random perm of the naturals and relabels the boxes but commenters pointed out that this was not needed and might not even make sense. So there is no Step 1, but I keep
it in case someone sees this post and wonders what happened to step 1.)

STEP2: Bob rearranges the boxes into (say) 100 rows.  We'll say

ROW1: BOXES: 1,101,201,301,...

ROW2: BOXES: 2,102,202,302,...
...
ROW100: BOXES: 100,200,300,...

STEP3: Bob picks a Row AT RANDOM (second use of probability). We will say ROW8:

STEP4: Bob opens the boxes in all of the rows EXCEPT ROW8 (he will open some in ROW8 later). For each Row i NE 8 he does the following:

ROWi is in one of the parts of the partition. Bob had ahead of time chosen a representative in that part. Let x(i) be such that from the x(i)th element on ROWi and the Representative AGREE.

Let x  = max of the x(i).

So, for all rows i NE 8, if you look past the xth position, ROWi and the represenative for that equivalance class are the same.

STEP5: Bob opens up, in ROW8, the boxes x+2, x+3,...

STEP6: Bob knows the part that ROW8 is in the partition. Bob looks at the representative. Bob guesses that the number in box x+1 of ROW8 is the same as the number in the (x+1)th position of the representative.

WHY is this a good idea?

Consider ROWi. Let x(i) (as above) be such that past x(i) ROWi agrees with its rep. In order for the guess to be wrong you would need x(8) > all other x(i). How likely is that? Since we began with a random perm, the prob that x(8) is the largest (for that matter, the prob that any particular i_o has max x(i_0) ) is 1/100. So Bob wins with prob 1- 1/100

Bob can do even better with 1000 rows or 10,000 rows, etc. For any eps>0 he can make the prob that he'll win 1-eps.
END OF ANSWER

One issue I've been trying to get at in this post and the last one was, is this a real solution? I think so, but some students don't like it. Even those that understand it. What do you think?

There is no deterministic solution to the Alice-Bob-Box problem since if the adversary knows what box Bob will guess he can make it so that Bob gets it wrong.

Some asked if there was a computable solution. For both the infinite-hats problem and the box-problem if the players have a strategy depending on only a finite number of inputs they can't win. There are ways to measure the complexity of a strategy and it would be interesting to get upper and lower bounds on the complexity of a strategy. And one can look at the following: If the adversary's strategy is of complexity BLAH then what complexity do the players need to beat it?

Also, in both games AC is used by the players. Eddie Fisher pointed out that if you toss out AC and instead have the AC AM (all sets are measurable) then the Adversary wins the hat game. Not sure about the box game.  One can look at what happens in various axiom systems.

So many open questions, so little time!






Thursday, July 14, 2016

Solution to the infinite hat problem/a point/a new problem

In my last post I asked the following question (I've shortened it here but its the same really.)

An infinite number of people, labelled 1,2,3,... have hats on their head, RED or BLUE. They must all shout at the same time a color. They want only a finite number of people to not guess their own hat color correctly. Can they do this?

YES they can manage to get all but a finite number of hats wrong. Here is what they do in their strategy meeting:

1) Define an equivalence class on infinite strings of R's and B's:  x==y iff x and y differ on only a finite number of places. It is easy to show that this is an Equiv relation. We think of the string as telling us the hat colors of all the people.

2) An Equiv Rel induces a partition. Choose, for each part of the partition, a representative. They all know all of the representatives.

NOW, once the hats are put on here is how each person reacts:

Gee, I see all of those hats out there! Since I see all but my hat I KNOW which partition the hat coloring is in. I look at the representative of that partition. I guess the hat color that I have in that representative.

Note that ALL of the people will use the SAME rep, and that rep differs from reality in only a finite number of hats. Therefore the number of incorrect answers is finite.

POINT- when I show this to my class they often don't like it. Some of course do not understand it, but even those who do sometimes say that's not practical  or the people would need infinite brains!  These are both true, but I like it anyway. HOW ABOUT YOU- does the solution satisfy?

NEW PROBLEM (are any problems really new?) I heard this from Peter Winkler who heard it from Sergui Hart who does not claim to have invented it.

Alice and Bob play a game (My darling complains that when a math puzzle uses the word game its usually not a fun game. This problem will not be a counterexample.)

There are an infinite number of boxes labelled 1,2,3,....

Alice puts into each box a natural number.

(CLARIFICATION based on a comment- Alice an put any number she wants in any box.
She wants to put 18 in both box 199 and box 3999 she can do that. NO restriction on what
Alice puts in the boxes except that every box has SOME natural number. ALSO- she need not
use all the naturals- if she wants to put a 1 in every box, she can.)

Bob opens all but a finite number of boxes.

For one of the boxes Bob does NOT open he guesses what the number in it is.

They then open that box. If Bob is right, he wins. If not then Alice wins.

Would you rather be Alice or Bob?

Feel free to post thoughts in the comments, though if you want to solve it without help you may want to avoid the comments. I'll post the answer next week.


Sunday, July 10, 2016

An infinite hat problem and later a point



Problem: There are an infinite number of people. They are labelled 1,2,3,... (I am not a number, I am a free man!) There is the Master who I call The Master. The Master will, at the same time, put a hat on each persons head. Some of the hats are RED, some are BLUE. (Clarification  added later- everyone can see all the peoples hat colors except their own.)

The people will then all, at the same time, yell out a hat color. (Clarification added later- NO other form of communicationis allowed.)

If  only a finite number of them get their own hat color wrong they win (not sure what they win, but they win!)

If an infinite number of them get their own had color wrong, then they lose.

They can discuss strategy ahead of time; however, The Master overhears all conversation.

Assume that the people and The Master are experts at this game.

Who would you bet to win? How much and at what odds?

I'll post the answer, a meta question about it, and another math question, on Thursday.

Feel free to post your answer as comments. If you do then please also comment on if you've seen the problem before since I'm curious (1) how well known the problem is, and (2) how hard it is to solve if you haven't seen it.

If you want to try to solve it yourself, don't look at the comments in case the right solution is there.



Monday, July 04, 2016

Is determining if a poly over a finite field is 1-1 hard? Sure seems so.


When I teach cryptography  to High School  students I begin with shift and linear  ciphers which are

x --> x+s mod 26 (s is a shift, x is a letter of the alphabet. Hmm- x really IS a letter of the alphabet!)

x--> ax+b mod 26 (Note that a has to be rel prime to 26.)

I then ask why nobody seems to have ever used

x --> ax2 + bx + c mod 26.

I then tell them that this is because there is no quick test that will, given (a,b,c), tell if
f(x) = ax2 + bx + c mod 26 is 1-1 (and hence onto).

It recently dawned on me that I don't really know that its hard to test.
(ADDED LATER) In fact its not true. Algebra shows that f(x) is NOT 1-1 iff

a(x+y)+b =0 mod 26

has a solution. If a is rel prime to 26 then clearly there is a solution (many in fact).
If a is not rel prime to 26 then I suspect this is not hard.

How hard is the following problem?

Given a poly f(x) of degree d, and n,  is f(x)  mod n 1-1?

We will assume all coefficients are between 0 and n.. We can also assume that c is 0 since f(x) is 1-1 then f(x)-c is 1-1.
 The coefficients are  given in binary so the length of the input is roughly dlog(n).

One can of course compute f(0), f(1),...,f(n-1) and see if there are any repeats, but this takes O(n) steps which is exp in the input of length log n.

I suspect that this is either a well known solved problem (either in P or NPC) or a well known open problem. Any help or references will be more appreciated than usual-- see next paragraph.

I am the new SIGACT News Open Problems Column editor. In the future I will be soliciting people to write columns for me, but the first one I'll do myself and this might be a good topic- if its open! And if it is open, would be good to know references and what is known.


Thursday, June 30, 2016

Excalibur

Goro Hasegawa passed away last week at the age of 83. Hasegawa created and popularized the board game Othello based on an old British game Reversi.

Back in the 80's, a high school friend Chris Eisnaugle and I used to write programs together including the Frogger-like program Ribbit for the Apple II. We decided to try our hands at board games and aimed at Othello as it seemed simpler to manage than the more popular attempts at computer chess. Our first program played awful but we contacted and had some great discussions with Peter Frey, a Northwestern psychology professor who worked on computer games. Frey pointed us to some great techniques like alpha-beta pruning and table look up for edge positions. Who knew that I would become a Northwestern professor myself later in life (2008-2012).

Unlike many games, the number of moves in Othello are limited in the end of the game, so even on the old IBM PC we used, we could play a perfect endgame from 14 moves out. So a simple strategy of maximizing mobility in the early game, controlling the edges and corners in the mid-game and a perfect end game give a pretty strong Othello program. We called our game Excalibur after King Arthur's sword and the title of a great movie telling his tale. We traveled to Cal State Northridge for the 1986 computer Othello tournament and captured third place, not bad considering the limited hardware we used. I entered a human tournament myself and for a brief time ranked the 35th best Othello player in the US. 

In 1989 we tried another computer Othello tournament, this time just calling in and coming in fifth place. One of our games was against the eventual winner by then CMU professor Kai-Fu Lee. His program beat us of course but he was still impressed with the play of Excalibur. Kai-Fu Lee would later work for Microsoft then leave to build up Google China, leading to one of the more memorable lawsuits over a non-compete agreement.

Computer Othello improved greatly since then and in 1997 Michael Buro's game Logistello easily beat the best human players. Michael Buro worked at the NEC Research Institute and we met when I joined in 1999. We chatted Othello but of course Excalibur was not in the same league as Logistello. Michael Buro later would join University of Alberta, which became the academic center for computer games. 

Computer Othello gained popularity because no one could create a Computer Go program that could beat good amateurs. That changed with randomized search and machine learning that led to AlphaGo

So thank you Goro Hasegawa for creating this simple game that played such an interesting part of my life back in the day. 

Sunday, June 26, 2016

There is now a Bounded Discrete Envy Free Cake Cutting Protocol!

Lance: Bill, there is a new result on cake cutting that was presented at STOC! Do you want to blog about it?

Bill: Do snakes have hips! Do  chickens have lips!

Lance:  No to the first one and I don't know to the second one.

Bill: Yes I'll blog about it! Whats the paper?

Lance: It's this paper by Aziz and Mackenzie.

Bill: Oh. That's  not new. Five people emailed me about it a while back. But yes I will blog about it.

Cake Cutting: There are n people with different tastes in cake (some like chocolate  and some... OH, who doesn't like chocolate? Okay, someone prefers kale which is on the cake.) They want a protocol that divides the cake in a way that is fair. What is fair? There are many definitions but I'll talk about two of them.

Proportional: Everyone gets 1/n of the cake (in their own opinion- I will omit saying this from now on).

Proportional sounds fair but consider the following scenario: Alice thinks she got 1/3 but she thinks Bob got 1/2 and Eve got 1/6.  Alice  will envy Bob.

Envy Free: Everyone thinks they have the largest piece (or are tied for it).

What is a protocol? It is a set of instructions and advice so that if (1) if the players all follow the advice then the end result is fair, and (2) if a player does not follow the advice then that player might get less than his fair share. Hence all players are motivated to follow the advice. We assume that everyone acts in their own self interest and that they are at a diamond cutters convention (perhaps co-located with STOC) so they really can cut cake very finely.

We will only consider discrete protocols. We won't define this formally.

Prior Results:
1) There is a protocol for Prop fairness for n people that uses  O(n log n) cuts. See my notes

2) Jeff Edmonds and Kirk Pruhs showed a lower bound of Omega(n log n). See their paper.

3) There is a protocol for Envy Free fairness for 3 people due to Conway and Selfridge. This was in 1960. This protocol took 5 cuts. (It is in the doc I point to in next item)

4) In 1995 Brams and Taylor obtained a protocol for envy free fairness  for n people. But there is a catch- there is no bound on the number of cuts. For all N there is a way to set four peoples tastes so that the protocol takes more than N cuts.  See my notes.

All items to follow are for an envy free protocol for n people.

5) It was an open question to determine if there is a bounded protocol. Stromquest proved that there can be no bounded protocol if all of the players got a contiguous piece, though this was not the case in the Brams-Taylor protocol. See his paper

At the time I thought there would be no bounded protocol. I found a way to measure unbounded protocols using ordinals and wrote a paper on it: See my paper.

6) Aziz and  MacKenzie showed there was a bounded protocol for 4 people. See their paper.

7) Aziz and MacKenzie, STOC 2016, showed there was, a  protocol that takes at most TOW(n) cuts.
(thats roughly n to the n to the n ... to the n, n times).  Hence a bounded protocol! See their paper.

What's next? Either improve the number of cuts or show it can't be done!


Thursday, June 23, 2016

STOC 2016

I attended the 2016 STOC Conference earlier this week in Cambridge, Massachusetts. No shortage of awesome results highlighted by LászlĂł Babai's new quasipolynomial-time graph isomorphism algorithm. Babai didn't have a chance to give more than a glimpse into his algorithm in the 20 minute talk but you did see his joy in discovering the concept of "affected" last September, the key to making the whole algorithm work.

Babai also received the ACM SIGACT Distinguished Service prize for his work for the community including his open-access journal Theory of Computing.

You can see and access all the papers from the program page. Links on that page will give you free access to the papers forever. I'll mention some papers here but you'll have to click over on the program page to access them.

Troy Lee gave my favorite talk on his paper Separations in Query Complexity Based on Pointer Functions with Andris Ambainis, Kaspars Balodis, Aleksandrs Belovs, Miklos Santha and Juris Smotrovs. He gave a wonderful description of a (contrived) function that gives strong separations between deterministic, randomized and quantum decision tree complexity. Scott Aaronson, Shalev Ben-David and Robin Kothari followed up on that work in Separations in query complexity using cheat sheets. 

Let me also mention the best paper winners
  • Reed-Muller Codes Achieve Capacity on Erasure Channels by Shrinivas Kudekar, Santhosh Kumar, Marco Mondelli, Henry D. Pfister, Eren Sasoglu and Rudiger Urbanke
  • Explicit Two-Source Extractors and Resilient Functions by Eshan Chattopadhyay and David Zuckerman
  • Graph Isomorphism in Quasipolynomial Time by Laszlo Babai
and the Danny Lewin best student paper awardees
  • A Tight Space Bound for Consensus by Leqi Zhu
  • The 4/3 Additive Spanner Exponent is Tight by Amir Abboud and Greg Bodwin
The conference had 327 registrants, 44% students and 74% from the USA. The Symposium on Computational Geometry was held at Tufts before STOC and they held a joint workshop day in between. There were about 20 registered for both conferences.

STOC had 92 accepted papers out of 370 submissions. None of the three papers claiming to settle P v NP were accepted.

STOC 2017 will be held in Montreal June 19-23, the first of a theory festival. There will be multiple day poster sessions, a poster for every papers. Invited talks will included best papers from other theory conference. There will be a mild increase in the number of accepted papers. The hope is to draw a broader and larger group of theorists for this festival.

The first STOC conference was held in Marina del Rey in 1969. That makes the 2018 conference STOC's 50th which will return to Southern California. The Conference on Computational Complexity will co-locate.

FOCS 2016 will be held October 9-11 in New Brunswick, New Jersey preceded by a celebration for the 60th birthday for Avi Wigderson.

SODA 2017 will be held January 16-19 in Barcelona. Paper registration deadline is July 6.

If you weren't at the business meeting, it's worth looking at the slides for the NSF and the Committee for the Advancement for Theoretical Computer Science. Of particular note, the CATCS site Theory Matters has job announcements and sample CAREER proposals.

Tuesday, June 21, 2016

When does n divide a_n? The answer, though you already know it. The Point, though its not as strong as I wanted. Oh well.

In my last post When does n divide a_n? I gave a sequence:

a(1)=0

a(2)=2

a(3)=3

for all n ≥ 4 a(n) = a(n-2) + a(n-3)

and I noted that for 2 ≤ n ≤ 23 it looked like

n divides a(n) iff n is prime

and challenged my readers to prove it or disprove it.

I thought it would be hard to find the first counterexample and hence I would make the point:

Just because a pattern holds for the first 271440  numbers does not mean that it always holds!

However, several readers found that 5212=271441 is a counterexample. In fact they found it rather quickly. I thought it would take longer since this blog (also my inspiration) by Colin Wright seemed to indicate that fancy data structures and algorithms tricks are needed. So I emailed Colin about this and it turns out he originally wrote the program many years ago. I quote his email:

---------------------------
> I posted on Perrin Primes (without calling them that) and people seemed to
> find the counterexample, 561^2, easily.

Yes.  These days the machines are faster, and languages with arbitrary
precision arithmetic are common-place.  When I first came across this
problem, if you wanted arithmetic on more than 32 bits you had to write
the arbitrary precision package yourself.  This was pre-WWW,
although not pre-internet.  Quite.

> So I wondered why your code needed those optimizations.

Even now, it's easy to find the first few counter-examples, but it rapidly
gets out-of-hand.  The sequence grows exponentially, and very soon you are
dealing with numbers that have thousands of digits. Again, not that bad now,
but impossible when I first did it, and even now, to find anything beyond the
first 20 or 30 counter-examples takes a very long time.

So ask people how to find the first 1000 counter-examples,
and what they notice about them all.
-----------------------------------------

back to my post:

It is known that if n is prime then n divides a(n). (ADDED LATER: see here for a proof) The converse is false. Composites n such  that n divides a(n) are called Perrin Pseudoprimes. The following questions seem open, interesting, and rather difficult:

1) Why is the first Perrin Pseudoprime so large?

2) Are there other simple recurrences b(n) where n divides b(n) iff n is prime LOOKS true for a while?

Friday, June 17, 2016

The Relevance of TCS

Avi Wigderson responds to yesterday's post.

20 years is a long time, and TCS is in a completely different place today than it was then.
I am happy to say that internally its members are far more confident of its importance and independence as a scientific discipline, and externally the recognition of that importance by all sciences (including computer science) has grown tremendously. I have no doubt that both will continue to grow, as will its impact on science and technology.

Let me address a few aspects of the original post (one can elaborate much more than I do here).

Young talent: The way we continuously draw exceptional young talent to our core questions is not just a fact to state - it carries important meaning, namely a key sign of our health and prosperity. After all, these exceptionally talented young people could have done well in any field in science and technology, and they freely chose us (and indeed have been responsible for the many great results of the field in the past 20 years)!

Funding levels: In contrast, funding levels are always controlled by few and are subject to political pressures. So here our field was wise to grow up politically and realize the importance of advocacy and PR besides just doing great research. This has definitely helped, as did other factors.

Growth of theory in academia: I have no idea of the exact statistics (or even how to measure it exactly) but I should note as an anecdote that as soon as Harvard got 12 new positions in CS it made three senior offers to theorists: Cynthia, Madhu and Boaz! I see it as an important critical development to have TCS well represented not only in the top 20 universities but in the top 100. Our educational mission is too important to be reserved only to the elite schools. (Needless to say, our science and way of thinking should be integrated to the K-12 educational system as well. While this is budding, significant meaningful presence will probably take decades.)

Scientific relevance: While it may be too early to evaluate the true impact of our (many) specific incursions into and collaborations with Biology, Economics, Physics, Mathematics, Social Science etc., I believe the following general statement. *The emerging centrality of the notion of algorithm, and the limits of its efficient utilization of relevant resources, is nothing short than a scientific revolution in the making.* We are playing a major role in that revolution. Some of the modeling and analysis techniques we have developed and continue to develop, and even more, the language we have created over the past half century to discuss, invent and understand processes, is the fuel and catalyst of this revolution. Eventually all scientists will speak this language, and the algorithmic way of thought will be an essential part of their upbringing and research.

Technological relevance: Even without going to great past achievements which are taken for granted and dominate technological products, and considering only current TCS work evidence is staggering. Sublinear algorithms, Linear solvers, Crypto (NC0-crypto, Homomorphic encryption,...), Privacy, Delegation, Distributed protocols, Network design, Verification tools, Quantum algorithms and error correction, and yes, machine learning and optimization as well, are constantly feeding technological progress. How much of it? Beyond counting patents, or direct implementations of conference papers, one should look at the integration of modeling and analysis techniques, ways of thinking, and the sheer impact of "proofs of concept" that may lead to drastically different implementations of that concept. Our part in the education we provide to future developers was, is and should be of central influence on technology.

In a tiny field like ours, having the impact we do on so many scientific and technological fields that are factors 10-100 larger than us may seem miraculous. Of course we know the main reason since Turing - we have universality on our side - algorithms are everywhere. What is perhaps more miraculous is the talent and willingness of pioneers in our field over decades to search, interact, learn  and uncover the numerous forms of this universal need in diverse scientific and technological fields, and then suggest and study models using our language and tools. This has greatly enriched not only our connections and impact on other disciplines, but also had the same effect on our intrinsic challenges and mysteries, many of which remain widely open. I am happy to say that at least part of that remarkable young talent constantly  drawn into our field keeps focus on these intrinsic challenges and the natural, purely intellectual pursuits they lead to. Our history proves that there are direct connections between the study and progress on core questions and our interactions with the outside world. Our current culture luckily embraces both!

All the above does not mean that we can't improve on various aspects, and constant questioning and discussion are welcome and fruitful. But I believe that a the firm foundation of these deliberations should be the intrinsic scientific importance of our mission, to understand the power, limits and properties of algorithms of all incarnations, shapes and forms, and the study of natural processes and intellectual concepts from this viewpoint. This importance does not depend on utility to other disciplines (it rather explains it), and should not seek justification from them. The correct analogy in my view is expecting theoretical physicists to seek similar confirmation in their quest to uncover the secrets of the universe.

Thursday, June 16, 2016

Karp v Wigderson 20 Years Later

The 48th ACM Symposium on the Theory of Computing starts this weekend in Boston. Let's go back twenty years to the 28th STOC, part of the second Federated Computing Research Conference in Philadelphia. A year earlier in June of 1995, the NSF sponsored a workshop with the purpose of assess the current goals and directions of the theory community. Based on that workshop a committee, chaired by Richard Karp, presented their report Theory of Computing: Goals and Directions at the 1996 STOC conference. While the report emphasized the importance of core research, the central thesis stated
In order for TOC to prosper in the coming years, it is essential to strengthen our communication with the rest of computer science and with other disciplines, and to increase our impact on key application areas.
Oded Goldreich and Avi Wigderson put together a competing report, Theory of Computing: A Scientific Perspective that focuses on theory as a scientific discipline.
In order for TOC to prosper in the coming years, it is essential that Theoretical Computer Scientists concentrate their research efforts in Theory of Computing and that they enjoy the freedom to do so. 
There was a lively discussion at the business meeting, with Karp and Christos Papadimitriou on one side, with Goldreich and Wigderson on the other. I remember one exchange where one side said that the people who implement an algorithm should get as much credit as those who developed it. Avi, I believe, said he'd like to see the implementer go first.

So what has transpired in the last two decades. The theory and community has not withered and died, the field continues to produce great results and attract many a strong student. On the other hand the theory community has not had the growth we've seen in other CS areas, particularly in the recent university expansion. Industrial research in core theory, which had its highs in the 90's, has dwindled to a small number of researchers in a few companies. Foundation research has helped some, IAS now has a faculty position in theoretical CS, the Simons Foundation funds some faculty and recently started an institute in Berkeley and the Clay Mathematics Institute has given the field a considerate boost by naming the P v NP problem as one of their millennial challenges.

The main core theory conferences, STOC, FOCS, SODA, Complexity and others have continued to focus on theorems and proofs. Rarely do the research in these papers affect real-world computing. The theory community has not played a major role in the growth of machine learning and has left real-world optimization to the operations research community.

We have seen some other developments making some progress in connecting theory to applications.
  • 1996 saw the first Kanellakis Prize to honor "specific theoretical accomplishments that have had a significant and demonstrable effect on the practice of computing"
  • Some companies, most notably Akamai, have come out of the theory community and helped shape real-world computing.
  • We have seen new research communities in EC and Quantum Computing that connect with economists and physicists. 
  • The NSF now has a program Algorithms in the Field that connects theorists with applied computer scientists.
  • Some theory topics like differential privacy have entered the mainstream discussion.
We live in a golden age of computer science and computing research is transforming society as we know it. Do we view ourselves as a scientific discipline divorced from these changes, or should theory play a major role? This is a discussion and debate the theory community should continue to have. 

Sunday, June 12, 2016

When does n divide a_n in this sequence?

Consider the following sequence:

a(1)=0

a(2)=2

a(3)=3

for all n ≥ 4  a(n) = a(n-2)+a(n-3)

Here is a table of a(n) for 2 ≤ n ≤ 23

n       2     3     4      5      6     7       8      9    10     11     12
a(n)  2     3     2      5     5      7     10    12    17     22     29

n       13    14    15    16       17      18     19      20     21      22      23
a(n) 39    51    68    90    119   158   209   277   367   486   644

For 2≤ n ≤ 23 the n such that n divides a(n) are

n = 2,3,5,7,11,13,17,19,23.

Notice a pattern? Of course you do!

I propose the following question which I will answer in my next post (in a week or so)

PROVE or DISPROVE the following:

for all n≥ 2   n divides a(n) iff n is prime.



Thursday, June 09, 2016

Math Movies

In 1997 Good Will Hunting, a fictional movie about the hidden mathematical talents of a MIT janitor grossed $225 million and won a best screenplay Oscar for Matt Damon and Ben Affleck. At the time the chair of the Chicago math department told me how much he disliked the movie given the way mathematics and mathematicians were portrayed. I told him the movie made math seem exciting and brought public awareness of the Fields medal, mentioned several times in the movie. You can't buy that kind of publicity for an academic field.

In 2001 A Beautiful Mind, on the life of John Nash grossed $313 million in the box office and won the best picture Oscar. In 2014 we saw critically acclaimed movies The Imitation Game (8 Oscar nominations with a win for adapted screenplay and $233 million gross) on Alan Turing and The Theory of Everything (5 nominations with a win for best actor, $123 million) on Stephen Hawking. These movies focused more on the struggles of the lead character than the science itself. Though these movies had their flaws they did show to a popular audience that the goal of math and science are worth an incredible struggle.

And complain all you want about the 2005 TV series Numbers, but get your head around the fact that a show about a crime-solving mathematician lasted six seasons. The Big Bang Theory remains the top US television comedy heading into its tenth season this fall.

Which takes us to the recent movie The Man Who Knew Infinity about the life of Ramanujan, a movie that has gotten wide excitement from mathematicians for the portrayal of the math itself, with credit given to consulting mathematician Ken Ono. I haven't seen the movie as it has barely played in Atlanta. It got critically mixed reviews, grossed only $3.4 million and will probably be forgotten in award season. The Ramanujan story is just not that dramatically interesting.

What's more important: Getting the math right, or taking some liberties, telling a good story and drawing a large audience. Can you actually do both? Because you can't inspire people with a movie they don't see.

Sunday, June 05, 2016

What do Evolution, Same Sex Marriage, and Abstract Set Theory have in Common?

(This post is based on articles from 2012 so it may no longer be true. Also- to be fair- I tried finding stuff on the web BY the people who object to our children being exposed to abstract set theory but could not, so this article is based on hearsay.)

Louisiana has a voucher system for poor kids to go to other schools, including religious ones. I am not here to debate the merits of that or the state of US education. However, from this article it seems that they are learning some odd things.

As you would expect, some Christian  schools teach that Evolution did not occur, same sex marriage is wrong (actually their opinion of gay people is far more negative than just being against same sex marriage), and that Abstract Set theory is evil.(Note- Catholic Schools have no problem with Evolution, in fact, the catholic church has never had a problem with it.)

Come again? Yes we would expect these opinions on evolution and same sex marraige, but  Abstract Set Theory? Why? Its explained in this article but I'll say briefly that they don't like the post-modern view of mathematics where anything goes.  The coherent version of their point of view is that they are Platonists.  A less charitable view is that they find Abstract Set Theory too dang hard.  I've also seen somewhere that they object to Cantor's theory since there is only one infinity and it is God.

The book Infinitesimals: How a dangerous mathematical theory shaped the modern world is about an earlier time, around 1600, when the Catholic church thought that using infinitesimals was... bad? sinful? contrary to the the laws of God and Man? (I reviewed it here) I though we were no longer living in a time where religion had an influence on Mathematics. And, to be fair, we ARE past that time. But this voucher program worries me. And I haven't even got to what they do to American History.




Thursday, June 02, 2016

CCC 2016

Earlier this week I attended the 31st Computational Complexity Conference in Tokyo. I've been to thirty of these meetings, missing only the 2012 conference in Porto. Eric Allender has attended them all.

The conference had a 130 participants with fewer women than you can count on one hand and 26 made it from the States. There were 34 accepted papers out of 91 submitted.

The proceedings are fully open access though the Dagstuhl LIPICS series, including the paper by Rahul Santhanam and myself that I presented at the meeting. The best paper by Marco Carmosino, Russell Impagliazzo, Valentine Kabanets and  Antonina Kolokolova drew a surprising strong connection between natural proofs and learning theory. In one of my favorite other talks, John Kim and Swastik Kopparty show how to decode Reed-Muller codes over an arbitrary product set instead of a structured field.

The German government will in the future no longer support LIPICS due to EU rules to prevent unfair competition with the commercial publishers. (Don't shoot the messenger) LIPICS will continue, the conferences will have to spend a little more to use them.

Next year's conference will be in Riga, Latvia July 6-9 right before ICALP in Warsaw. The 2018 meeting is likely to take place closely located to STOC in southern California.

Osamu Watanabe put together this slide show for the conference reception featuring pictures of attendees of the Complexity Conference through the ages, including the authors of this blog.


Peter van Emde Boas forwarded the call for papers and initial letters for the very first conference, originally called Structure in Complexity Theory.

Sunday, May 29, 2016

New Ramsey Result that will be hard to verify but Ronald Graham thinks its right which is good enough for me.


If you finitely color the natural numbers there will be a monochromatic solution to

x+2y+3z - 5w = 0

There is a finite coloring of the natural numbers such that there is NO monochromatic solution to

x+2y+3z - 7w = 0

More generally:

An equation is REGULAR if any finite coloring of the naturals yields a mono solution.

RADO's THEOREM: A linear equation a1 x1 + ... + an xn = 0 is regular IFF some subset of the ai's sums to 0 (the ai's are all integers).

Rado's theorem is well known.

What about other equations? Ronald Graham has offered $100 to prove the following:

For all two colorings of the naturals there is a mono x,y,z such that

x2 + y2 = z

I've seen this conjecture before and I thought (as I am sure did others) that first there would be a prove that gave an ENORMOUS bound on

f(c) = the least n such that for all c-colorings of {1,...,n} there is a mono (x,y,z) such that ...

and then there would be some efforts using SAT solvers and such to get better bounds on f(c).

This is NOT what has happened. Instead there is now a paper by Heule, Kullmann, Marek, where they show f(2)=7825.

(NOTE- ORIGINAL POST HAD f(2)-7285. Typo, was pointed out in one of the comments
below. Now fixed.)


It is a computer proof and is the longest math proof ever. They also have a program that checked that the proof was correct.

And what did they get for their efforts? A check from Ronald Graham for $100.00 and a blog entry about it!

While I am sure there proof is correct I wish there was a human-readable proof that f(2) existsed even if it gave worse bounds. For that matter I wish there was a proof tha,t for all c, f(c) exists. Maybe one day; however, I suspect that we are not ready for such problems.








Thursday, May 26, 2016

Theory Jobs 2016

In the fall we point to theory jobs, in the spring we see who got them. How is the CS enrollment explosion affecting the theory job market? We've seen some big name moves but that's only part of the picture.

Like last year and years past I created a fully editable Google Spreadsheet to crowd source who is going where. Ground rules:
  • I set up separate sheets for faculty, industry and postdoc/visitors.
  • People should be connected to theoretical computer science, broadly defined.
  • Only add jobs that you are absolutely sure have been offered and accepted. This is not the place for speculation and rumors.
  • You are welcome to add yourself, or people your department has hired.
This document will continue to grow as more jobs settle. So check it often.

Edit

Tuesday, May 24, 2016

My third post on Gathering for Gardners

(Workshop for women in computational topology in August: see here. For a post about these kinds of workshops see here.)


(I have already posted twice on stuff I saw or heard at the Gathering Conference here and here,)

Meta Point- At the Gathering for Gardner conference I learned lots of math (prob more accuarte to say I learned ABOUT lots of math) that I want to tell you about which is why this is my third post on it, and I post more.

The pamplets of  Lewis Carol: Games, Puzzles, and related pieces: This was mostly puzzles that are by now familiar, but one new (to me)  struck me: an aloof word  is a word where if you change any one letter to anything else then its no longer a word. I think aloof is such a word.

Some talk don't know which one was about the Piet Hein Egg, also called a superegg. The talk (which differs slightly from he page pointed to) said it was a solid whose surface has the equation

(x/a)2.5 + (y/a)2.5 + (z/b)2.5

and its an egg which can stand on its end. (Note the x/a,y/a,z/b- that is correct, not a typo).
(Personal Note: Piet Hein invented Soma Cubes which is a puzzle where you put together 3-d pieces
made of small cubes into a large cube or other shapes. I learned about these in a Martin Gardner column and bought a set. I was very good at this- I put together every figure in the booklet within a week. This was the ONLY sign that I was GOOD at math when I was a kid, though there are many signs that was INTERESTED in math. About 30 years ago my girlfriend at that time and I went to a restaurant and there was a SOMA set on the table, assembled into a cube. I took it apart and she said ``Bill, you'll never be able to put it back together!!!'' I then ``tried'' to and ended up putting together instead a bathtub, a dog, a wall, and a W. But gee, it ``seemed'' like I was fumbling around and couldn't get a cube. ``Gee Bill, I think you've seen this puzzle before''. And who is this insightful girlfriend? My wife of over 20 years!)

Magic Magic Square (Sorry, dont know which talk) Try to construct a 4x4 magic square where (as usual) all rows and columns sum to the same thing. But also try to make all sets of four numbers that form a square (e.g., all four corners) also add to that number. Can you? If you insist on using naturals then I doubt it. Integers I also doubt it. But you CAN do it with rationals. How? If you want to figure it out yourself then DO NOT go to the answer which is at this link: here

Droste Effect: When a picture appears inside itself. For an example and why its called that see here

Black Hole Numbers: If you have a rule that takes numbers to numbers, are there numbers that ALL numbers eventually goto? If so, they are black hole numbers for that rule.

Map a number to the number of letters in its name

20 (twenty) --> 6 (six) --> 3 (three) --> 5 (five) --> four (4) --> four(4) --> ...

It turns out that ANY number eventually goes to 4.

Map a number to the sum of the digits of its divisors

12 has divisors 1,2,3,4,6,12 --> 1+2+3+4+6+1+2=19

19 has divisors 1,19 so --> 1+1+9 = 11

11 has divisors 1,11 so --> 1+1+1 = 3

3 has divisors 1,3 so --> 1+3=4

4 has divisors 1,2,4 so --> 1+2+4=7

7 has divisors 1,7 so --> 1+7=8

8 has divisors 1,2,4,8, --> 15

15 has divisors 1,3,5,15 --> 1+3+5+1+5 = 15

AH. It turns out ALL numbers eventually get to 15.

Boomerang Fractions: Given a fraction f do the following:

x1=1,  x2=1+f, x3- you can either add f to x2 or invert x2. Keep doing this. Your goal is to get back to 1 as soo nas possible.  Here is a paper on it: here. This notion can be generalized: given (s,f) start with s and try to get back so s. Can you always? how long would it take? Upper bounds?

Liar/Truth teller patterns on a square plane b Kotani Yoshiyuki. You have an 4 x 4 grid. Every grid point has a person. They all say ``I have exactly one liar adjacet (left, right, up, or down) to me.''
How many ways can this happen.  This can be massively generalized.

Speed Solving Rubit's cube by Van Grol and Rik. A robot can do it in 0.9 seconds: here.


Thursday, May 19, 2016

Upfronts

The US television industry has long fascinated me, an entertainment outlet driven by technology. David Sarnoff introduced television at the World's Fair in 1939 and developed the NBC network to provide content so people would buy RCA televisions, much the way Steve Jobs created the iTunes store to sell iPods. For decades television was broadcast over the air funded mostly by commercials. You could only watch a show when it aired and people adjusted their schedules to the broadcast schedule. People stayed home instead of going to the theater, movies, social clubs and restaurants. They all still exist but not to the extent before television. The nature of jobs changed. One funny comedian on TV would make considerable money but would put hundreds of vaudeville comedians out of a job.

In the 70's came cable television to big cities, initially to provide a better signal. But it also provided more stations including stations that were paid explicitly by consumers like HBO and implicitly through cable subscriptions like ESPN. ESPN is the single largest source of revenue for Disney. Eventually we would have hundreds of cable stations, many very specialized.

In the 80's came the VCR, then the DVR. No longer did we need to plan our time around the TV broadcast schedule. Eventually TV shows could have a continuing story line allowing for richer plot and character development.

Then came the Internet and streaming video. You could watch videos from series and movies on Netflix to user generated short pieces on YouTube or shorter still on Vine. People are watching TV not so much on TVs anymore but on their computers and phones. Like many others we have cut the cable cord in the Fortnow household, a trend that the industry still tries to fathom. Every cord cutter is $6 less a month to ESPN and the Disney bottom line.

 Why bring up TV now? This is what used to be the most exciting week for television, the upfronts, where the broadcast networks reveal their new seasons to advertisers and the public at large. The networks are still having their presentations and parties, but the new shows fail to excite and quite a few retreads and revivals including 24, Prison Break, MacGyver, Tales from the Crypt, Gilmore Girls. Do you remember the Muppets returning last year? Neither do I.

We are in a golden age of television. One could take a rich novel and turn it into an equally rich 10-13 episode TV series. There were over 400 scripted TV series, and more really good series than I have time to watch (basically when I run on the treadmill). Meanwhile the networks continue to promote and party though an undercurrent of a very uncertain future. Watching the television industry is itself a never ending story.

Monday, May 16, 2016

Does this leak information?

Here are four fictional stories though inspired by real world events or TV shows (I forget which is which). My question is, was a confidence broken or was some information leaked that should not have been? I do not have answers.

Tenure: The candidate DOES find out the vote (e.g., 18 yes, 2 no) but DOES NOT find out who voted what. But what if the vote is 20 Yes 0 No. Then the candidate DOES know the vote. (Worse if it was 20 NO, 0 yes). I am sure this has been studied in crypto. Here is one solution: randomly flip one bit.

Lawyers:

CLIENT: I have roughly X dollars counting all of my assets. Are you the right firm to handle my estate?

LAWYER: Yes

CLIENT: Do you always say that?

LAWYER: No. If you had log(X) money then we would recommend a cheaper firm since your estate would not need our complex services. And if you had X^{10} money then there are other firms that are more familiar with investments at that level.

CLIENT: So, for example, Mitt Romney is not a client.

LAWYER: That is correct.

Did the lawyer break a confidence by saying that Mitt Romney was NOT a client? Could CLIENT goto lots of law firms and play this game and eventually find out Mitt Romney's  lawyer?

Nobel Prize: If he committee leaks that the winner has been notified THAT he or she won, but not WHO it was, is that a breach?

Someone has confessed to a priest that he murdered someone (a staple of TV shows and movies). The wrong man is in jail, whose  name is Bob.

PRIEST TO COP: You have the wrong man.

COP: How do you know.

PRIEST: I can't say how I know, but I know.

COP: Oh, It must be that the guilty man confessed to you but you can't break the seal of the confession. I won't ask you to. But here is a question: Has Bob been to confession lately?

PRIEST: No! (and he seems relieved to have gotten the message through)

Did the Priest betray the killers confidence?

People in Crypto (and elsewhere) define information, Knowledge, Security, similar terms formally so they can have protocols and try to prove things. Are their defintinitions realistic? In the above scenario's, are the above cases breaches or not? Is that even a rigorous question?




Thursday, May 12, 2016

The Challenges of Smart Cities

Earlier this week I attended the CCC workshop Computing Research: Addressing National Priorities and Societal Needs (video). The workshop covered a large collection of topics, highlighting challenges of big data, privacy, security, sustainability, education, the future of work, CS funding and partnerships and more.

I'd like to highlight the challenges of Smart Cities, addressed in a panel Monday Morning and a talk by Keith Marzullo on Tuesday afternoon. Roughly a smart city is using technology to improve services, for example, sensors everywhere or preparing cities for autonomous vehicles. The speakers highlighted a number of major challenges.
  • There are 382 Metropolitan Statistical Areas in the US from New York to Carson City that totals 84% of the US population and 91% of GDP. Many cities share similar problems but how easy can one port hardware and algorithms from one area to another? How do you scale smart cities without reinventing the wheel each time?
  • Who pays for the infrastructure? Sometimes one can get research grants or federal help to start new projects, but these projects need continual maintenance afterwards. Are researchers just in it to start a project, write a paper and get out? How do we keep the advantages going in the long run?
  • How do you keep the public's trust that the information collected will help the city and not just keeping track of everyone a la Orwell's 1984?
  • How do we make sure we tackle the problems of the general public and not just the researchers and those who help fund? A great quote: We need to make sure we are focused more on mass transit than on how to make parking the Tesla easier.
  • If we use big data to predict crime and position police in response, could that cause discrimination and harassment?
  • How do we keep our research relevant?
Rural areas got their due as well. Interesting presentations on how farmers can use sensors and machine learning to optimize crops, fertilizer and water to use just the right amount needed for each segment of the farm. 

To paraphrase Tip O'Neill, all computing is local, but we face many challenges taking our broad tools of cloud, big data, machine learning, automation and internet of things and apply them in our own neighborhoods.

Tuesday, May 10, 2016

Math lessons from the Donald Trump Nomination (non-political)

There may be articles titled Donald Trump and the Failure of Democracy. This is NOT one of them. This is about some math questions. I drew upon many sources but mostly Nate Silver's columns:Donald Trump's Six Stages of doomHow the Republican Field Dwindled from 17 to Trump (a collection of article),Four things I learned from the Donald Trump Primary. For the best news piece of the year on Donald Trump see John Oliver's

1) Trends. Since 1972 (the beginning of the modern era of prez primaries) the republicans, have ALWAYS (with one exception I"ll get to) nominated someone who was either PRZEZ or a sitting or former Gov, Senator, or VP who had ALSO been a serious candidate in a prior primary-prez race. The only exception is W who was a sitting Governor but had never run before, though he of course had name recognition. In short, someone FAMILIAR. This also fits our image of the Republicans as an old boys network (Dole got the nomination in 1996 because it was his turn). Hence most pundits expected the same this year.

a) The old ML maxim: Trends hold TILL THEY DON"T.

b) Nobody quite fit the pattern. The only ones who had run before were Rick Santorum, Rick Perry, and Mike Huckabee. Rich S and Mike H were niche candidates, Rick P had wider appeal in 2012 but entered late and stumbled (the WHOOPS moment, though more on that later).  Jeb was like W, Former Gov with family name. So based just on Trends Perry or Jeb should have been the nominee, but its not that strong a match. (Added Later- A commenter says that John K ran briefly in 2000. My criteria was had been a serious candidate- not quite well defined, but John K would not have qualified. Even so, Governor and ran a bit, so he also was close to the criteria.) IF YOU HAVE A TREND AND USE IT TO PREDICT MAKE SURE THE DATA YOU HAVE FITS THE TREND.

c) I WILL NOT claim that I predicted any of this but there is an inkling of what happened in my post The law of the excluded middle of the road republicans where I pointed out for each candidate (including Trump) why they couldn't win. IF YOU HAVE A LARGE NUMBER OF LOW PROB EVENTS WHERE ONE WILL HAPPEN ITS HARD TO PREDICT WHICH ONE.

d) The pattern itself is only based on 11 data points and you might not want to count  the four where there was a republican prez running for re-election. And 11 data points is not the full story--- the political situation from 1972 to 2016 changed dramatically. So these are data points on a moving target. Perhaps they should use papers like New analysis and algorithms for learning with drifting distributions. ITS HARD TO DO ANY REAL DATA ANALYSIS WHEN YOU DON"T HAVE ENOUGH DATA AND IT CHANGES OVER TIME.

2) Domination: Republican primary voters (in the past) wanted a candidate who was both conservative and electable. But what combination? I read that Chris Christie had no chance since it was thought that Jeb, S Walker, and Rubio were all MORE electable and MORE conservative- so they dominated him. Hence Donald Trump couldn't win since he was (though to be) less electable and his prob less conservative though that's hard to tell since he never held office. Hence he can't win. But some voters were tired of voting for electable as  McCain and Romney were allegedly electable. And some were just plain angry. If you think your problems are because of immigrants vote Trump, if you think your problems are because of Wall Street then Feel the Bern. VOTERS DO NOT CARE ABOUT CONVEXITY AND DOMINATION.

3) Nate Silver. He's the Pollster who is NOT a pundit, does NOT let who he wants to see win affect what he predicts, wrote a great book about predictions: The Signal and the Noise: Why so Many Predictions Fail But Some Don't and got many predictions right in recent years. He wrote an excellent article Donald Trumps six stages of Doom in Aug 2015 which said what the obstacles are to the nomination and giving the nomination a 2% chance. To his credit he has owned this prediction in that later columns have told us where he went wrong. (Most pundits never say `Gee I was wrong')  So why did his prediction not pan out?

a) They did in a sense. All of the problem he pointed out that Trump would have, Trump DID have- for example, Trump did not have a good organization to control delegates, and the party did try to stop him. So in a strange sense Nate was right. Except that he was wrong.

b) Back to Nate's 2%. Bill James (Baseball Stats guru) wrote (I am paraphrasing) If you are given odds of 500-1 that some awful team will win the world series  than TAKE THAT BET. People have a hard time telling unlikely from REALLY unlikely. And the NY Mets did win the 1969 world series. (A quote from 1962: There will be a man on the moon before the Mets win the world series- true by two months). Also note that the the Leicester Soccer Team won this year despite being (literally) 5000-1 underdogs (see here). WAS NATE WRONG? If you give an event 2% chance and it happens I can't say you are wrong. In fact, if most everyone else gave it less than 2% or even 0  (which is the case here) then you are... less wrong.

4) Bill Gasarch. Based on TRENDS above I predicted Paul Ryan (and I owe Lance a dinner). My mistake was betting Ryan-I win, ANYONE ELSE-Lance wins (oddly enough, with a contested convention I might have still won that bet) . I should have made Lance name 5 candidates, and if any of those five win, he wins, but if its Ryan I win. I  doubt he would have named Trump.

5) Game Theory: Lance has posted about Primary Game Theory. The main issue for a Trump voter might be `Gee, if I vote Trump he is not electable event though I like him, so I'll vote for X instead who is more electable' But voters are not game theorists. Plus they voted for John McCain and Mitt Romney based on that and they lost. So when Rubio said A Vote for Trump is a Vote for Hillary he may be right but the voters are not listening.  Plus since Little Marco only won Minnesota and Puerto Rico (they have a primary! who knew!) he was not positioned to talk about electability. Plus one could argue that VERY few of the candidates could beat Hillary. In an early Column Nate thought only Jeb, Little Marco, and Scott Walker (remember him?). So once Rubio dropped out the electability argument was useless.

6) More Game Theory: Many of the candidates wanted someone ELSE to go after Trump so they went after each other.

7) The Pledge: For fear that Trump would run third party they all signed a pledge promising to support whoever got the nomination. When they signed it they never imagined that Trump would be the nominee.

8) Prediction Markets: They did pretty well, in about March they came around. Last week David Brooks maintained that Trump would not be the nominee, but he was kidding. I think.




Thursday, May 05, 2016

Open Questions

Through the years I've mentioned a few of my favorite open problems in computational complexity on this blog that have perplexed me through the years. Let me mention a few of them again in case they inspire some of the new generation of complexity theorists.
  1. Does the polynomial-time hierarchy look like the arithmetic hierarchy? I mentioned this in the centenary post for Mostowski. Probably not because it would imply factoring in P (since NP∩co-NP would equal P) but we have no proof of separation and no oracle that makes them look the same.
  2. Does UP = NP imply the polynomial-time hierarchy collapses? What are the consequences if SAT had an NP algorithm with a unique accepting path? Remains open, again even in relativized worlds. 
  3. Do rational functions that agree with Boolean functions on the hypercube have low decision tree complexity? I really expected someone to have come up with a proof or counterexample by now. 
  4. What happens if two queries to NP can be simulated by a single query? Does S2=ZPPNP? Both questions asked in a post on S2P.
  5. Separate NP from Logarithmic space. I gave four approaches in a pre-blog 2001 survey on diagonalization (Section 3) though none have panned out. Should be much easier than separating P from NP.

Sunday, May 01, 2016

Some more bits from the Gathering for Gardner


I posted about the Gathering for Gardner conference and about some of the talks I saw here. Today I continue with a few more talks.

Playing Penney's game with Roulette by Robert Vallin. Penney;'s game is the following:  let k be fixed. Alice and Bob pick different elements of {H,T}^k.  They flip a coin until one of their sequences shows up, and that person wins. Which sequences have the best probability of winning?

New Polyhedral dice by Robert Fathauer, Henry Segerman, Robert Bosch. This is a good example of how my mentality (and possibly yours) differs from others. When I hear ``60-sided dice'' I think ``p1,...,p60 where are all between 0 and 1 and add up to 1'' I also thought that only the platonic solids could be usedvto form fair dice (so only 4-sided, 6-sided, 8-sided, 12-sided, and 20-sided dice can be made). NOT so. These authors actually MAKE real dice and they do not have to be platonic solids. Here is their website.

Numerically balance dice by Robert Bosch (paper is here). Why do dice have the opposite sides sum to the same thing?  Read the paper to find out!

Secret messages in juggling and card shuffling by Erik Demaine. Erik Demaine was one of about 4 theoretical computer scientists I met at the conference, though Erik is so well rounded that calling him a theoretical computer scientist doesn't seem quite right. I had never met him before which surprised me. In this talk he showed us some new fonts- one using juggling. See here for an example of juggling fonts, co-authored with his father Martin.

Fibonacci Lemonade by Andrea Johanna Hawksley. Put in the leomon and sugar in fib number increments. Here is their website. In my first post I said the talks were on a variety of topics and then presented mostly math talks. This talk is an example of that variety. There were other talks involving the Fib numbers. I was surprised by this since they aren't that special (see here).

Penis Covers and Puzzles: Brain Injuries and Brain Health by Gini Wingard-Phillips. She recounted having various brain injuries and how working on mathematical puzzles, of the type Martin Gardner popularized as HELPING HER RECOVER! As for the title- people with brain injuries sometimes have a hard time finding the words for things so they use other words. In this case she wanted her husband to buy some condoms but couldn't think of the word so she said Penis Covers instead.

Loop- Pool on an Ellipse by Alex Bellos. Similar in my mind to the Polyhedral dice talk (you'll see why). We all know that if you built an elliptical pool table with a hole at one of the foci then if the ball is placed at the other foci and hit hard enough it WILL go into the other hole. But Alex Bellos actually MAKES these pool table (see here if you want buy one for $20,000). He told us the history- someone else tried to make one in 1962 but nobody bought them (I wonder if anyone are going to buy his), and Alex had problems with friction as you may recall that it only works on a frictionless surface. So his game does require some skill. The similarity to dice is that I (and you?) are used to thinking about dice and ellipses abstractly, not as objects people actually build.

This post is getting long so I'll stop here and report more in a later post. Why so mny posts? Six minute talks that I an actually understand and are delighted to tell you about!