Sunday, December 26, 2010

The Best Chinese Food I've Had

Comes from a restaurant called Grace Garden in Odenton, MD. I went there with family this Friday and had a great meal :). Of course, as with most Chinese restaurants, you have to go in a big group so you get lots of really good dishes.

Fish Noodles! How do they make fish into noodles? I really want to know.


Golden Shrimp. My cousin took two before I could get the picture :(


Crispy Eggplant: probably one of my favorite dishes that they have


Sichuan Triple Treasure: It's beef tongue, tripe, and intestines I think.


Braised Pork Belly: Always good


Pocket Tofu: It's so soft and has a really good flavor.


Some sort of green vegetable. Someone else can probably actually identify it.


Merry Day-After-Christmas!

Monday, December 6, 2010

Choices

lead to decisions. And decisions are hard.

Wednesday, November 24, 2010

Too Hard

Whoops, Tim already wrote a blog post with this same name. I'm using it anyway.

I was the problem czar for the Harvard-MIT November Tournament, which happened on Sunday, November 7, 2010. As problem czar, I was responsible for making sure that enough problems got written on time for the contest to run. That in itself was a huge task, made no easier by the relatively small amount of help that the February problem czars gave me. I personally wrote the majority of the test, with help from Travis in some key areas (he wrote many of the geometry problems), and from Jacob in not as key areas (he kept giving me problems about Bayesian inference...).

66 problems later, I get the (somewhat delayed) response from testsolvers: "Too Hard."

What is too hard?

Honestly I am probably too biased to comment, but I don't believe that it's possible for something to be too hard on its own. Being too hard can cause other issues, such as a lack of distinguishing power, but being too easy can also cause that. And I am fully aware of the issues that come from a test that lacks distinguishing power.

So when I see a complaint that something is too hard, what do I think? I feel that it is extremely more likely that some aspect of the undertaker is off rather than that the task is actually too hard. And it seems like others are the opposite -- they would much rather blame the test than the test takers, especially when they are the test taker.

Actually, I do that too. Lots of my blog posts last year were about things that I disagreed with in tests. Was it really the tests that were at fault or was it me? I think it was some of both. I don't think it's deniable that the HMMT calculus test was unable to distinguish between the top 4 competitors (hint: they tied), but at the same time it wasn't like the test gave them absolutely zero opportunity to distinguish themselves (the tie was at 28, not 50).

Regardless, I feel like there is this idea that if lots of people get two or fewer problems then the test is too hard. So, people say, make there be a few problems that everyone will get. But why? Now I've reduced my contest from 10 problems to 7. That doesn't seem useful at all.

I've rarely seen someone look at a test and say ``This is too easy,'' but many people will look at a test and say ``This is too hard.''

Monday, October 11, 2010

Linux iwlagn problems

This isn't really a content-full post, but if any of you are trying to install linux on a new computer and are finding that your internet connection drops after a couple minutes and a bit of traffic, it was a really annoying problem for me that existed for essentially the entire life I've had this computer. I only found the solution a couple days ago.

Right now, the iwlagn driver does not have full support for 802.11n. In fact, having 802.11n enabled will oftentimes screw up your internet connection in a very strange way. You retain your IP address, everything says you're still connected, but no transmission is really happening. You might notice a drop in bitrate from the output of iwconfig, but setting it to be higher again doesn't fix the issue. The issue is 802.11n.

The fix is to initiate the module with the option 11n_disable=1 or 11n_disable50=1. I had to use the latter. I am not sure, but I think it depends on which version of the driver you have (iwl4965 vs iwl5000). So make sure that you are compiling the driver as a module (do not build it into the kernel) and the fix is below.

If you have already booted and want to fix the issue, run the following commands as root

rmmod iwlagn
modprobe iwlagn 11n_disable=1
(or modprobe iwlagn 11n_disable50=1)

If you want the module to be loaded properly on boot, edit the file /etc/modprobe.conf (on gentoo; on other distributions this file might be somewhere else) and append the following line:

options iwlagn 11n_disable=1
(or options iwlagn 11n_disable50=1)

You might also have to use both options. I had to use 11n_disable50 and not 11n_disable. Regardless, one of these two should work and leave you with a perfectly reliable wireless card (without n mode, though).

Hopefully I helped someone with this post! This is a really really difficult bug to google.

Tuesday, October 5, 2010

Contest Theory

The IOI this year took a radically different approach to contest programming than the IOIs in the past. The Canadian Host Scientific Committee decided that it would be a good idea for the IOI to less favor the teams who have individuals who train very hard on standard algorithmic and data structure problems. I will put off judging whether that was a good or a bad decision until later in this post.

There is one fundamental aspect of writing a contest which is up for major contention and I don't believe that people pay enough attention to it. This is the question that you have to answer before you write a single problem for your test. That question is who should win.

Who should win? It seems like a simple question. The person who is best at math should win a math contest, the person who is best at skiing should win an Olympic medal for skiing. But these answers don't really tell you who should win. If I were to run a contest and I said that the winner would be the person who is best at life, nobody would take me seriously. Why? Because there are a relatively small number of things that would be on this contest. We wouldn't be able to determine the best sports player by just playing football, or just football and soccer, or any other (proper) subset of the sports in the world. And even if we were to play every sport in the world, I'd have to give an arbitrary weighting to each one. How do I compare two people if they have different strengths? It's simply not possible.

This problem arises at a lower level too. Let's look at football. Who is the best football player? I could say let's have a competition where everyone plays football. But this won't work. Maybe one player is a very strong quarterback and another is a very strong wide receiver, but only one of them gets their favored role. Well okay, let's have them pick their positions. We still have an issue. How are we supposed to compare someone's performance as a quarterback to another person's performance as a wide receiver?

Perhaps the answer is to have a quarterback competition, solely to determine who is the best quarterback. That is certainly a possible solution, but sometimes this will make the field too small. Say we object to a spelling competition because there are words from a plethora of sources, which some people will be better at than others. So we use our technique and say okay, we will have a spelling competition consisting of only English words of Sanskrit origin. How many people are specialists of such words? There are probably a few, but not enough to make a competition.

So we need some sort of compromise. We have to accept the fact that there are different specialties within whatever activity for which we hold a competition and that these are in some ways not comparable, but at the same time compare them somehow and determine a winner. It is for this reason that it is not the job of the contest to determine the best, but rather it is the job of the contest to determine the winner.

Of course, if there is a single best competitor, that person should win the competition. If one person is better than everyone else at every position in a football team, he would win a football competition. If your method of determining the winner didn't do that, then you have some problems. But this can be resolved by essentially any performance based scheme that uses positive weights on every event.

But in practically every case, there isn't a single dominating competitor, but rather several top competitors who all do well in different areas. So which one of them should win? It's up to the contest organizers to decide.

And this decision is often very debatable. Perhaps the most prominent example for me personally is the US IMO team selection. There is little argument to be made against the choice to favor those who will bring home the highest IMO scores. The argument stems from the fact that the US team leadership has seemingly decided that the most important subjects to be good at are algebra and geometry, casting aside combinatorics and, to a lesser extent, number theory. It's painful to look at the TST to see three geometry problems, graded in difficulty, so that it is almost certain that geometry skill will matter in team selection, in stark contrast with the single combinatorics problem, difficult enough that only Evan solved it (although I like to think I might have if I hadn't spent nearly all of my time on a geometry problem), clearly not mattering for team selection. The IMO claims to be a contest about all four main subject areas, but the US strategy says loud and clear that this is not the case.

Who is at fault? It's difficult to say. Maybe no one. Maybe everyone. It could be that the lack of combinatorics problems did not stem from a belief that combinatorics does not correlate to IMO score. It could be simply that there was not a sufficient supply of appropriate and interesting problems last year, so the TST was forced to be mostly comprised of the other subjects. But I'm not convinced that this was the case.

So now we return to IOI. The Canadians looked at the IOI and decided that they did not like the choice of winner that was made in the past. They didn't want someone who simply coded problems from online judges for the past year to have an easy road to victory. They wanted someone who could think about a problem which didn't have a standard complete answer and could still perform well.

So they changed the contest.

Gennady still won, of course. IOI might be a case where a dominating force actually exists. Regardless, the IOI change hurt my personal placement, but I can understand where it came from. The Canadians did well to explicate their goals, their means to reach those goals, and why those were their goals in the first place. I agree that the IOI had been reaching a less optimal position by simply escalating the difficulty of algorithmic problems, but I also think that the Canadians went too far in the other direction.

Next time you're involved in running a competition. Ask your group the question, ``Who do we want to win?''

Saturday, July 10, 2010

MOP, ELMO, and thoughts on life

Being a senior changes everything. Entering my fourth and final year as a student at MOP, I had been through everything: red once, blue once, black once (though this year they added a new green, which is the old red, and the new red is the USAJMO winners). Those three years I did everything in the most carefree manner I could. Tests weren't really important. Free time was for relaxing and making sure you don't burn out. Even the TST didn't seem like the biggest thing to worry about. There was always next year.

As a senior I went in to TST with an odd combination of emotions. I really wanted to be on the IMO team once, and this was my last chance, but at the same time I had been hoping to run the ELMO and then I later found out that it was traditional for a senior who did not make the team to run it. ``Okay fine, so I have a consolation prize if I don't make it.''

So I was putting pressure on myself to make the team, but at the same time I was trying to convince myself that it didn't really matter. I looked at the people with whom I was competing and realized that it wasn't a guarantee by any means, but I figured I had a good shot. I thought back to what I was told at Romania: ``Once you've already done well you have the confidence to do well again.'' I thought back to my performance at Romania. Better than I really could have asked for. I tried to be confident.

So I went into the TST room on the first day in an entirely confusing state. Pressured but confident but not really confident and darn blue MOPpers are taking the TST again and hmm I didn't do so well on TST last year and I really didn't spend enough time doing problems this year and also the USAMO didn't do much to get me back in practice and I'd be out of practice anyway and okay well I'm nervous except darn there's no adrenaline in my body. Yeah. It turns out that I do better on contests when I'm nervous and get an adrenaline rush.

TST was a flop. Day one went okay. I missed an inequality that plenty of other people got, but at the same time there weren't that many people ahead of me, and even they were only one problem ahead. Nothing insurmountable.

Day two went almost as badly as last year. You see there's an odd characteristic about geometry problems. You can make a lot of progress and not solve the problem. This is because geometric diagrams have a lot of structure in them. So when there's a geometry problem in the first problem slot, I end up working on it and not finding the solution. A little bit in, I think to myself, ``Hmm, I should probably stop working on this geometry problem and try the next problem which is not geometry.'' Within a minute, I'll find something new about the diagram that seems to be useful for the final angle chase in the solution and I think ``Okay, if this doesn't work I'll stop after five more minutes.'' This happened so many times during day two that I really didn't have a chance to look at the other problems. Yet at the end of the day, it went better than it did the year before. This year I spent 3.5 hours on a geometry problem and finished. Last year I did the same thing but didn't finish. 2010 defeats 2009 1-0.

So I went into day three at a rather large disadvantage. The way it had gone I basically needed all three problems on that final day to make the team. I sat down in Avery 106 at 8:00 for the third day in a row and turned over my paper to see a geometry problem as #7 and a binomial coefficient in a number theory number 9. I hate number theory problems about binomial coefficients (although, to be fair this one wasn't bad. I didn't really have a chance to work on it, though). So I killed number 8, then looked at 7 and didn't really get anywhere. When I turned in my papers I was pretty dejected. ``Ah well, no suspense for me.''

The thing is, nothing is ever completely free of suspense. Even when you're the most confident that you won, or the most sure that you didn't, there's a random worry or hope that keeps bugging you until the actual announcement. For that reason I didn't want to be in the blue room when the team got announced. It had nothing to do with who it would be. It was all that I didn't want to have to sit there while the annoying little voice inside of me would say, ``Maybe he'll ignore the TST score.''

Well, I didn't make the team but I did get to run the ELMO. The ELMO is a math olympiad put together by the returning MOPpers and taken by the first time MOPpers. I failed it massively when I was in red mop XD. The ELMO is always called the ELMO, but what the letters stand for is up to the organizers for that year. This year I decided to put as much of the decision making as possible into the hands of the team leaders, including the name and which shortlist problems would appear.

I had been looking forward to the ELMO for a long time and had written several problems before MOP. As soon as I could I posted a sign informing everyone of the first meeting and, following the tradition started last year, signed it Supreme Grand Ayatollah. I've realized in the last year that I enjoy writing contests a lot more than taking them, so I dived into my role as the head of ELMO with a lot of enthusiasm.

The first order of business when running a contest is to get as many problems as you can. It really doesn't matter whether the problems are extraordinarily good or not, since in a collection of 30 problems you'll probably have 6 that are good or can be made good. So I went about soliciting ELMO problems, ending up with 26 on the final shortlist (after the removal of some problems for various reasons). Of course, there were actually only very few sources for problems.



NameProblems
Brian Hamrick8.5
Evan O'Dorney4
Carl Lian3.5
Others (1 each)9



Well, that's to be expected. One of the things I found out from this endeavor is that writing problems on command generally produces suboptimal results, similar to writing anything else. Inspiration doesn't come when you sit down and say ``Okay, I'm going to write a problem.'' It comes when it wants to, which makes writing large quantities quite difficult. In the end, only 1.5 of my problems made it onto the ELMO, although I think this was a result of almost all of them filling the same niche rather than problem quality.

In the end, here was ELMO Day 1:



and Day 2:



The problems were written by
  1. Carl Lian
  2. Evan O'Dorney
  3. Mitchell Lee and Benjamin Gunby
  4. Carl Lian and Brian Hamrick
  5. Brian Hamrick
  6. Amol Aggarwal

Overall, I thought the problems were reasonably good, although problem 1 is a rather annoying and not very interesting case bash, and of course I prefer my own combo problems to #3 :-). But anyway, the problems themselves were not too bad this year, but there were lots of traps that were very easy to fall in to (and many people did). So when people left day 1, there were a lot of people saying ``Oh yeah, I solved 1, 2, 3a.'' Very few of them actually got credit for all that. Day 2 was much better in that people basically knew what they solved, but #4 still had a rather large pit that needed to be avoided. Anyway, I'm going to not talk too much about specifics of the problems in case you guys want to try them.

Grading was an interesting, entertaining, and slightly stressful experience, as always.
``Can you tell what this says?''
``How many points is this worth?''
``Do I take off a point for this?''
``Whatever, I'll grade it down and let the team leader coordinate it up.''
This was my second time grading and I've enjoyed it a lot both years, although reading some of the red/green MOPpers' handwriting is pretty annoying. Worst style was not very surprising for me, after seeing the ELMO solutions (don't worry, we did all the grading anonymously. I matched the ID with a name after the grading happened).

After the grading for day 1 was done, we sorted the solutions into 24 folders: one per problem per team and distributed them. Coordination for day 1 would occur during day 2, and the grading for day 2 would be done immediately after with coordination for day 2 happening later that night. Unfortunately, this meant that coordination started at 8 am, so some people missed their coordination time.

Coordination seems like it would be more fun than the grading, but really it's just you arguing for a lower score and the team leader arguing for a higher score. And this almost always involves them pulling some bullshit on you saying that their team member could have done this easily and that they only were missing one tiny step and that the entire problem is trivial so they shouldn't even have to write down anything to get a 7.

The grading and coordination room after everything was complete.

In the end, the scores looked good for our efforts. Nobody had as high of a score as we would have liked (the highest being 33 out of a possible 42 by Thomas Swayze), but the medal cutoffs were approximately what one would see at the IMO, and the total number of points given on each problem were in decreasing order on each day, with 1 and 4 being highest and 3 and 6 being lowest. So although plenty of people (including me to some extent) disliked what the problems ended up being, they gave us a good score distribution.

As ELMO finished, so did MOP. Kazakhstan decided to have a ridiculously early IMO, so we ended MOP nearly a full week earlier than we did last year. This meant, among other things, that we had an extremely tight schedule for getting ELMO entirely graded and coordinated. Day 2 was on Sunday, and the departure day was Wednesday. That's how tight it was. Additionally, because so much of my time was spent on the ELMO, I didn't have time to participate in any of the prepared talent show acts. In practice, that meant that I couldn't dance to Gee. =[ I did, however, get to participate in the MathCounts act again, where I was narrowly defeated by David Yang.

After the talent show were superlatives and then MOP awards. In the superlatives, I procured ``best basher'' pretty easily, having managed to get a 7/0.8 for a dumbass solution to an inequality. In the MOP awards, I got recognized for the only times in all four years of being at MOP. First, I got best style in black, which wasn't too surprising considering I had mostly 0.8s and nothing below 0.7 that counted, while many other people had 0.4s on solutions that got 7 math points. For best style, I got a book of sudoku.

Actually I had another MOP first this year. You see, there are a lot of problems to do on the tests, team contests, mock IMO, and so on. So there is a MOP handbook created with all the problems and all the tests. In order to accomplish this, writeups are assigned to the people who did not solve the problem but had some good ideas on it (and in this year's case, to people who solved the problem in a less than beautiful manner). To assist them in writing up the problem, a consultant, who solved the problem in a very elegant fashion, is assigned. This was the first time I got assigned to be a consultant, and I was very happy when I found out In-Sung's test paper said ``You are writing up this problem. Please consult Brian Hamrick, Supreme Grand Ayatollah, and submit to MOP office by Monday.''

Finally the awards for highest MOP score came. Top four from each group were announced. I was pretty sure that I was in the top 5 in black, but I wasn't quite positive. Anyway, when it was black's turn, fourth was Calvin Deng. My heart sank there, since I was thinking that Calvin was ahead of me, but we were very close. I figured In-Sung was probably third then? In any case, I was wrong. With three fewer math points than Calvin, but a very slightly higher mop score, I came in third place :D. For this, I was awarded play money ``to count, because [I] am good at combinatorics.'' Allen was second and Evan was way ahead in first, although not quite as far ahead as Zhai was his senior year.

Overall, MOP was a pretty satisfying end to my math olympiad career. Although I never got to make the IMO team, I've had in total twelve weeks of great experiences and lots of fun at MOP, and I can definitely say that it has helped me improve a lot. Back when I was in red, I knew so little. I did badly on the red tests that I now find easy, I was horrible at writing proofs (I never got above a 0.7 back then, and this year I never got below a 0.7), and all the rest. I was the lucky one of us three seniors this year; Tim and Travis go nowhere near as satisfying a finish.

I'm very happy with what I got, but you know, I still wish I had IMO as well.

Thursday, July 1, 2010

Contests

As many of you have probably heard by now, I did not make the IMO team. Although I was definitely sad for the hours after the TST and perhaps for a few days after that, I am not bitter about it. After all, I'm in no position to say that I deserve a spot any more than the six who got it.

There's something about contests that I've known for a while, but TST brought it up again. Contests aren't for deciding the best, as much as people would like to think that. No, the person who wins the USAMO is not necessarily the best mathematician, nor is the person who wins ARML, nor is the person who wins HMMT, nor the winner of any other competition. Math contests don't crown the best mathematician. They crown the winner.

Sure, a trip to Kazakhstan would have been great. Winning certainly does come with perks. But when it comes down to it, I know that the fact that I lost on the TST just means that I'm not on the IMO team. It doesn't mean I'm worse at math.

Look forward to a more complete post on MOP soon.

Saturday, May 29, 2010

Fin

This is a column I wrote for English (the third of three). I won't be sharing the other two here for various reasons. If something is unclear or you disagree with it, it might be that I didn't state it as well as I could have. This is an unedited draft.

The end of school has always come early for me, at least much earlier than for everyone else. In fact, throughout my four years at TJ, I will have experienced the magical month known as June for no more than a handful of days. I have already said my goodbye to the school building as a high school student for the last time, and I have mixed feelings.

High school as a whole was definitely a positive experience, especially being at TJ. I doubt I would have been as well prepared for the rest of my life at any other school. The common sentiments about the school are all true. The teachers here are amazing compared to those elsewhere. The community is something unparalleled across the nation. The sheer amount of technology that we have access to is astounding. And the amount of work that everyone puts in is great to look at.

But I'm not sorry to leave. Senior year has been a trip from distaste to being downright sick of the school. Maybe it was a bad sense of planning; I had saved the requirements I really didn't want to do until senior year. But I don't think so. I spent the academics fair last year browsing the choices for my fourth history credit, and hit on History of Science and Ideas. Back then it struck me as an amazing concept, and indeed it turned out to be one of my favorite classes throughout the year.

So what is it that leaves such a bad taste in my mouth? It was the atmosphere of the place. Throughout my first three years of attending TJ, I saw a student body of people who diligently applied themselves to everything that they did. Maybe the seniors did a little bit less work, but what they did do they did with a passion that I could admire. This year I haven't seen that.

After college applications were submitted, I saw something that made me lose respect for many people at this school. Left and right, students were dropping the extracurriculars that they had worked hard to build up for the past three years. I realized that no, they were not actually passionate about the endeavors, but were just doing it as a way to add another line to their college application. That thought sickened me.

A friend of mine told me that he decided against a college because it was too much like TJ. The daily routine was wake up, go to class, do problem sets, go to sleep. Honestly, I couldn't agree more. Here at TJ, I don't see anybody thinking to themselves, “This would be a great project, let's work on it together!” In the past, I know it's happened. That kind of thinking is what created TjBash, Kings of Chaos, Intranet and many other great projects that we still enjoy today. Where is the entrepreneurial spirit that drove TJ students of yore? All I see now is “Ugh, time to do this dumb project for English.”

Tuesday, May 18, 2010

Ender's Game

Ender's Game has been one of my favorite books for a long time. Card's book, with its hypothetical bugger wars, struck home with me, but it wasn't until recently that I thought about why. I picked it up again earlier this year and read it through in a couple days. Then I read the introduction.

They just don't talk like that, she said. They don't think like that.

A guidance counselor for gifted children doesn't believe Card's presentation. When I read this part of the introduction at the beginning of this year, it made me wonder. How can anyone not believe it?

Skip ahead to English class a few months in the future, where Mrs. Colglazier poses a question to the class, "How many of you will admit to liking trashy literature when you were a kid?" Practically everyone raises their hand and starts discussing series: Magic Tree House, Pee Wee Scouts, and so on. Then Mrs. Colglazier continues, "What about Ender's Game?" Immediately I wanted to speak out in the book's defense. Having read Ender's Game only a few months earlier, I had found extremely deep meaning that had not yet been paralleled anywhere.

So what is it that makes people not only not connect with Ender's Game, but hate it? Why is it considered "trashy"? How can so many people be unwilling to accept something that is simply true?

People's views of the world are inherently tied to their experiences. One will often project onto others feelings that he or she has had. The problem, of course, comes when the other has had entirely different experiences. Subtleties are lost, bad inferences are drawn, everything goes haywire. So, to avoid this, many people, I think, just assume that everyone operates exactly as they do and refuse to accept otherwise.

That was deep enough for me to consider Ender's game a meaningful book. But then I realized there's even more.

What made Ender into an Ender? Obviously his genes played a role, but genes alone do not create an Ender. The circumstances must have driven him to grow so strong that nothing could keep him from doing what he had to do. But what circumstances were those? The answer is loneliness. What Ender had going for him was that he didn't have many friends, so he needed to train, needed to improve, needed to show the rest of Battle School that he was the one they should look up at. As Card put it, he needed to become so good at what he does that the rest of the school would have no choice but to notice him. And so he did.

I used to envy the people who went to Haycock and Longfellow because they pretty much have always had friends that were as interested and as talented in math as them. Now I'm not sure envy is the right emotion at all. I had noticed for a long time that the extremely strong math team members at Thomas Jefferson did not come from Longfellow as often as one would think. Instead they come from seemingly random schools. So rather than be envious of the Longfellow students, I wonder if I should be grateful that I went to Frost.

And yet no matter how skilled an individual is, it's nearly impossible to actually accomplish anything without a group of highly skilled friends. Ender simply could not have defeated the Buggers without his crew, no matter how long he trained. At some point, friendships have to be formed, loneliness has to be abandoned, but what is that point?

When I look at our math team, I wonder how many of them would become Enders in another situation. How many of them could rise to be a force to be reckoned with, but don't because they know that they have friends no matter how good or bad they are. And now I wonder, is high school too early? Magnet schools provide great opportunities for very bright students to interact with other very bright students, an experience that I know is extremely useful, but there's something that you lose when you do that. You lose the ability to produce an Ender.

Tuesday, April 27, 2010

Project Teaser

I haven't posted an update on my senior project for a long time now. I'll post a longer explanation and analysis when I'm fully done, but anyone worrying can rest assured that I have my program completed (and I believe bug free, finally). Here are a few images from it:

Sunday, April 11, 2010

Fun Little Math Problem Of The Day 3

Posts of actual content will resume at some point.

Sunday, April 4, 2010

Thursday, April 1, 2010

Fun Little Math Problem Of The Day

The title was stolen from Waffle.

Happy April Fool's Day everyone, and good luck to those of you hearing from colleges in 19 minutes!

Monday, March 22, 2010

A Mathematical Bridge Problem

Playing a spade contract, you reach trick 10 in your hand to see the following four card configurations:

Dummy holds: ♠ - ♥ AQJ ♦ - ♣ A
You hold: ♠ 2 ♥ 2 ♦ 2 ♣ 2

How do you play to maximize your chance of getting all of the last four tricks? Assume that the only point card left is the king of hearts and there is a diamond higher than the 2 in one of the opponents' hands.

Obviously it depends on your situation, so say that the following happened: your partnership started with 21 high card points between you and during play LHO has played 16 points and RHO has played none. Does this change your answer? What are the probabilities now?

Does your answers change depending on which of the following situations happened?
  • Neither opponent bid during the auction
  • LHO opened an artificial 1♣ showing 16+ points
  • LHO opened a standard bid showing 13-21 points. Does it matter what bid it was?
I'm not sure of the answer to this question, so I'm interested to see what the readers of my blog think.

Tuesday, March 2, 2010

Medalia de Aur

As some of you know, I went to Târgu Mureş, Romania for the Central European Olympiad in Informatics. This year, I went to Bucharest, Romania for the Romanian Masters in Mathematics. The team consisted of Allen Yuan, Vlad Firoiu, Sam Keller, Tim Chu, Albert Gu, and myself, headed by coaches Po-Shen Loh and Yi Sun.

Two days before we were to leave, Po-Shen sent us an email that, among other things, notified us that Lufthansa was currently experiencing a strike and that if our flight out of DC was canceled, the entire trip would be also. Obviously, this did not sit well with us, as we were all strongly looking forward to the trip.

Luckily, the strike was called off before we left, although Lufthansa was still short pilots, so some of the flights got canceled, but ours wasn't one of them. The flights to Bucharest actually went pretty well, including the AMC B. I did worse on the B than the A, but it really doesn't matter. I took it mainly because I figured everyone else would also and I didn't want to be bored for those 75 minutes. Tim had gotten a 96 on the A and was worried that he didn't qualify for AIME, and he wasn't exactly relieved when he got a 96 on the B as well.

On the trip there, we were expecting to be housed at Hotel Moxa, a 4 star hotel in Bucharest. However, it turns out that it was actually Complex Moxa, which is used for college dorms and is just an annex of the hotel or something. The rooms were pretty unfortunately bad, but ours had a TV in it! (the others apparently didn't). Because of the 7 hour time difference, the Olympics were on after all of the events for a day ended, which was extremely convenient. I definitely watched more of the Olympics while in Romania than any other time.

Sam checking out the room
We also found out that the complex didn't have an open wireless access point....But Vlad had this USB thing that allowed him to get internet access in Romania. It's called Zapp or something. At least we had internet access, even though it was pretty bad.

The next day we still weren't competing. We got our first taste of Romanian breakfast, which included an interesting tea (I think it was purple) that tasted pretty good, as well as some cheese. Being American, we obviously thought the portions were way too small so we ate masses of bread with oil and vinegar.

Our first Romanian breakfast
After breakfast, we met our guides and went to the high school where we would be taking the contest in the following two days. After touring the school and dropping in on a ``superior algebra'' class, the guides asked us if we wanted to go into the gym to play some sports. Inside, there were lots of people from various teams playing volleyball, but the court was pretty full so we didn't join them. Instead, we saw a ping-pong table, but nobody had any paddles, so we started playing basketball while we waited for a guide to retrieve paddles from the complex.

For some reason, someone thought it would be a good idea to play outside, even though there were huge puddles of water on the ground and the court was not very even. There were also ping-pong tables outside, but they looked pretty bad. They were really low, weren't flat, and the nets were actually iron fences.

China plays on them anyway
Eventually we got some paddles and played some ping-pong, as did the Chinese. The Chinese team didn't know much English and the only Chinese speakers were on the US team as either a student or a coach, so they spent a lot of time with us (and also Allen and Tim were in a room with two of them).

At some point we went back to our room to hang out until dinner, after which would be the opening ceremony. But as we were just starting to chill in our room, our guides came up to inform us that the opening ceremony got moved from 2000 to 1600, and we had to go back to the school.

The opening ceremony was actually quite nice. Only a small part of it was dual-run in Romanian and English. All of the guest speakers spoke in English, so translation was unnecessary, and they also all kept it very short. It made the opening ceremony much shorter than what I expected.

The next day was competition day 1.

Go go go!
I read the problems and solved 1i on sight, as did the rest of the team except for Vlad, who apparently took 1.5 hours on it. I then spent a bit of time on 1ii, but wasn't quite getting the details. I figured it would be easy anyway and went to do number 2 before finishing.

Number 2 was dispatched rather readily, and at this point I had about 3 hours left, if I remember correctly. I drew the diagram for 3 (although I actually drew the wrong diagram, thinking ``external'' meant that the quadrilateral was external to the circle, rather than the circle is external to the quadrilateral), wrote down some random stuff, and went back to 1ii. After all, surely a number 1 number theory would be easier for me than a number 3 geometry, right?

So it turned out that I didn't solve 1ii, and didn't have anything worth partial on 3, whoops. In the last 5 minutes I wrote down some stuff for 1ii that I figured had no hope of working, but it turned out to be extremely close to the correct solution. I left the room thinking ``Man, I'm going to have to tell the rest of the team that I didn't solve number 1.''

So talking with the others after day 1, it seemed initially that most of them had solved two problems: either 1 and 2 or 1 and 3. The exceptions were Allen, who solved only 1i and 2, and Sam, who solved only 1. After talking a bit more, however, Albert determined that his 1ii was completely wrong, and so he had only solved 1.5 problems as well. After day 2, we would find out that during coordination the coordinators had thought that Albert's solution had worked too, and Yi and Po-Shen had to tell them it was wrong to keep the spirit of the contest.

Allen and I both had essentially identical progress on 1ii, and since it was so close to the correct solution, we came out of coordination with 6s...somehow. The graders were apparently pretty lenient with scoring.

Day 1 Scores
IDNameP1P2P3Total
USA1Timothy Chu77014
USA2Vlad Firoiu73717
USA3Albert Gu30710
USA4Brian Hamrick67013
USA5Sam Keller7007
USA6Allen Yuan67316

After day 1, we just went back to our room to hang out, being exhausted from the competition. Nothing much interesting happened. We just watched the Olympics and played card games, mostly.

We woke up the next day for day 2 of the competition.

No geometry! Wooo!

So I read the day 2 problems and I thought ``YES! There's no geometry! Let's get a 21 on day 2! Oh wait, these problems look time consuming. 4.5 hours might not be enough...'' Anyway I looked at problem 4 and killed it in about 20 minutes. I start working on problem 5 and it dies in another 50 minutes or so. At this point it's about 1050 and I have two complete solutions written up and I'm starting to think maybe number 6 is really hard and they gave us two really easy problems to compensate (a la IOI day 1).

So I spend the next 3 hours trying various stuff on number 6, but I don't do the thing that actually leads to a solution because it looked stupidly messy. Oh well. I wrote up what I had (which wasn't exactly the cleanest thing in the first place), and then turned in the test. When I was leaving the room, I figured I probably had a pretty standard result on day 2.

However, when I talked to the rest of the team, I found out that I could hardly be more wrong. They had all solved problem 4 (except Albert, who got a 0 on day 2, unfortunately), but nobody else had solved problem 5. I was really surprised. Tim thought he solved problem 6, but none of us could really verify it since he was the only one who felt that he had made significant progress.

Later in the day, we found out (with our awesome Chinese-speaking skills) that CHN1 had been the only Chinese team member to solve either 5 or 6 (and he solved both (and CHN was really Shanghai, not all of China)). Apparently 5 was supposed to be very difficult. I still don't really see why.

After day 2, we went to the mall to play some laser tag! Except that the game was actually pretty lame. At first there was only like one person on the red team, so it was just walking around for a while until the person running the thing decided to restart it. Unfortunately, the respawn time was still around 3 seconds, so whenever you killed someone they could just follow you until they respawn and kill you immediately. It made for a pretty annoying game.

We got back to the complex pretty late, so we missed the normal dinner and had to order pizza, and our discussion of day 2 with Yi and Po-Shen was at around 2230, way later than we expected.

Day 2 Scores
IDNameP4P5P6Total
USA1Timothy Chu72514
USA2Vlad Firoiu7209
USA3Albert Gu0000
USA4Brian Hamrick77418
USA5Sam Keller7209
USA6Allen Yuan7209

The awards ceremony was the day right after day 2. But before that, coordination had to happen. So to get rid of us pesky contestants for a while, they sent us to the village museum: a collection of traditional Romanian houses. It would have been a really cool experience, but the ground was extremely muddy and it was simply unpleasant to walk around.

When we got back it was time for the awards ceremony. Well, almost. It was actually delayed for half an hour. Anyway, the awards ceremony, just like the opening ceremony, was very quick. The speakers knew that we didn't want to listen to a bunch of long speeches (and it was hard to understand some of their English anyway), so they went straight to the awards. Albert was the first USA competitor called up for honorable mention (solving at least one problem perfectly).

Next up was the bronze medals. There were a lot of bronzes, and Sam was among them. I was actually pretty nervous during the bronzes because I wasn't sure if I had screwed up something on day 2, in which case I would probably be in the low end of silver. As the bronzes ended, I breathed a sigh of relief.

The bronze medalists
Silvers started getting called now, and I was preparing to go up. They called the other three, and after a bit I handed my camera to Albert, expecting to be called up at any point. but the number of silver medals remaining was very clearly diminishing, and then they stopped. Stunned, I almost missed taking a picture of the silver medalists. At this point, I was just amazed.

The silver medalists
The gold medals started being announced, starting with the Chinese perfect scorer. Then the other gold medalists, and finally ending with me. The suspense was incredible. After going up to receive my gold medal, my hands were incredibly shaky. I could barely take pictures of the remainder of the ceremony, where China handed the trophy over to Russia (RMM has one trophy that the winning team keeps until another team ousts them), and then a few more short words.

After the award ceremony, Po-Shen informed us that the reason the awards ceremony was delayed was because they had to argue for my solution to #5 for about an hour. There was a step that I thought was obvious and Po-Shen thought was obvious, but the graders disagreed. Apparently they had to call in a third party to give an impartial opinion. Eventually, though, they agreed to give me a 7. Lesson from this: write more on combo problems because other people don't have the same idea of obvious as I do for combo.

Mathcamp pride!
Final USA Results
IDNameP1P2P3Day 1P4P5P6Day 2TotalAward
USA1Timothy Chu770147251428Silver Medal
USA2Vlad Firoiu73717720926Silver Medal
USA3Albert Gu30710000010Honorable Mention
USA4Brian Hamrick670137741831Gold Medal
USA5Sam Keller7007720916Bronze Medal
USA6Allen Yuan67316720925Silver Medal

The team with our lovely (and camera shy) guides

Tuesday, February 23, 2010

Thoughts on HMMT

Overall, HMMT was well run. However, some of the tests could definitely have been better written. I'm going to just talk about the Combinatorics and Calculus subject tests from individual, since those were the two I took, and I'll also talk about team and guts.

First up is Calculus. I think everyone should realize that a 4 way tie for first at 29 is a problem with the test. The problems that I liked on calculus were 1, 2, 3, and 8. The rest of them have some issues.

Problem 4: Everyone who thinks about this problem can probably get it, but I think it's not exactly kosher to assume that people that people know the equidistribution theorem.

Problem 5: Just differentiate 4 times...seriously? I mean there's the nicer approach where you can notice that you only get 4 copies of when you differentiate the term 4 times, so you can directly pull out the coefficient by looking at just that term. By the time problem 5 rolls around I think you should be moving away from the stupidly straightforward problems.

Problem 6: I didn't actually solve this problem, although I had enough intuition that I could have finished it rigorously somewhat quickly. I just said, ``Let's put the line through the inflection point'', which is exactly what you want to do as cubics are symmetric about the inflection point.

Problem 7: This problem shares the same issue as many of the problems on the test. The answer (set two equal and imaginary and the third one real) is guessable (although I don't think anyone did), but it's completely unreasonable to expect students to prove it in 50 minutes when there are 9 other problems to work on.

Problem 9: Nice solution, but do you really expect anyone to get it?

Problem 10: This one is definitely doable...but it basically has seeing it before as a prerequisite. I thought that was what we were trying to avoid after last year's #10. It's a nice technique, but I don't think anyone would be able to come up with it during the test.

Overall, calculus had relatively easy problems #1-#6, a doable #8, and impossible #7, #9, and #10. 29 was getting all the doable problems. It really doesn't help the test to put a bunch of impossible problems on. The difficulty just has such a huge jump between 6 and 7, with 8 in between somewhere. I'd not be surprised if there is not only a huge tie at 29, but also a huge tie at 23. Perfect scores aren't a problem; ties are.

Next up: Combinatorics. Most of this test was actually good. I only really have complaints about problems 7 and 10.

Problem 7: This problem is just so out of place at HMMT. Looking at the rest of the problems, there is absolutely no strenuous computation. This problem, in contrast, is a complete computation-fest, after a moderately silly manipulation with expected values.

Problem 10: Same issue as Calculus #7. It's somewhat possible (although I doubt anyone did) to guess the optimal configuration, but not reasonable to expect students to prove it during the test. It's made even worse by the obfuscation that $16 = 4^2$, so instead of trying things like 5x5 with 4 numbers, people would rather have tried 4x4 with 2 numbers. I really dislike the problem for this kind of test. It would make a good team round problem, though.

I would have liked the test a lot better if problem 10 were what is now problem 7, and an actual problem 7 were in the problem 7 slot, although I really don't like the current problem 7 as problem 10 either.

Now for team round. I liked the team round more than other rounds this year (although that might have been because we won), because I think there was actually a scaling of difficulty (and the ability to give partial credit helps immensely). However, some of the problems had minor issues.

Problem 1: This is pretty classic. I'm pretty sure that Dan is not wrong when he says that he has seen it before.

Problem 2: I feel like I have seen this problem before, although it may have been slightly different (and the key observation should be that every divisor of an odd number is odd).

Problem 4: I'm pretty sure this is way too classic (although I forgot to cover the case where the 2x2 system for x+y and xy is singular, oops!). Actually I'm wondering if it's even possible for A, B, C, and D to be rational except at x=0, y=0.

Problem 5: I think it was fine, except that ``decreasing'' is ambiguous because you write polynomials starting from the highest order term, so we had the (unanswerable) question of does have decreasing coefficients or does ? We did eventually settle on the one in the official solution, luckily.

Problem 6: Okay darn, I gave a pretty bad argument for the existence of an infinite ray being inside the set (A better argument is to just look at the furthest distance at each angle. It's clearly continuous and then it should have a maximum since is compact, but that would mean it's bounded. Contradiction.). Mine can be made rigorous when you add in a weird continuity requirement and use the fact that is compact, but then you just get exactly the argument above. I actually like this problem, but I think that Jacob has mentioned that usually problems that have roots in college level math are rejected.

Problem 7: Maybe we're just bad at geometry, but it took Alex Zhu and I about 3 hours working together to solve this problem. Pretty sure this was harder than both 8 and 9 (and 10a, but having 10 be 10 is justified by 10b), but it was a good problem.

Problem 9: Maximum should run from i=1 to n, not i=0 to n-1, but I think that was pretty clear for most people. This problem was definitely easier than some of the ones that appear before it on the test. I'm not sure why it's a problem 9.

Problem 10: 10a is nice, but when Jacob says ``The idea for 10a works for 10b too after a few hours of work,'' it starts to look a bit unreasonable. I feel sad because I would have guessed and now I'm wondering why I didn't write that down. Maybe we would have gotten a point!

Finally, guts.

I really liked most of the guts round (in fact, almost all of it). But there were a few issues:

Problem 12: No, it is not ``obvious'' that does not need to be multiplied out. Replace the 9 by a 2010 and it would be. I don't see why that wasn't done.

Problem 17: Again, assuming people know (or can intuit) the equidistribution theorem (although in this case you don't actually need equidistribution) is a bit sketchy. However, I mind this a lot less in guts than in the other rounds.

Problem 32: I'm pretty sure our team had a fraction that we did not have time to turn into a decimal approximation. Without calculators, I find it a bit annoying that you would ask for a decimal to 5 places.

Problem 33: You have an exact form, so I'm not sure why the test is asking for the floor of . I'd also like to point out that Vieta jumping tells you that immediately (and it's odd because this recurrence was used earlier in the round). I would have rather asked for the exact form, although perhaps it is impractical to grade? Regardless, I would avoid approximation problems that can be solved exactly.

As you can see, I have many fewer issues with the guts round than the other rounds. This is probably because I consider guts to have a vastly different style, so it is easier to write problems for it and also there are so many problems that it's almost impossible to get the issues like what happened on the calculus individual test.

I guess a large part of my complaint is that the calculus test had a huge wall at 29 points that really made it hard for people who took calculus to compete with the people who took the other tests. This definitely has happened in the past (such as with the even harder wall at 50 for geometry a few years ago), and I guess I'm just a bit bitter that it happened to my tests this year. I do think (looking at results again) it affected this year's competition a lot more than last year's. Last year calculus was the test that suffered from the most ties (which was probably from the test being a bit too straightforward), but it wasn't a four way tie for first.

Overall, well done as always, but let's make next year's even better!

Wednesday, February 10, 2010

Please Never Use This Problem On A Contest

2010 AMC 12A #24


There are so many things wrong with this problem that it made me make a blog post about it. The problem, of course, is that it relies on several conventions that are taught in math classes, but are not the conventions when you actually do math (or at least they aren't the conventions in every field of math).

First of all, I strongly object to the use of the word ``domain'' in this context. The domain of a function is absolutely not dependent on the definition of the function. A function is defined with a specified domain and codomain, of which this problem specifies neither. Instead, it tries to implicitly define the domain from the properties of the function. This is commonly used in math classes. I know I learned in some math class ``how to find the domain of a function'' such as , but I have never seen this outside of math class and a few competitions (and all of the competitions that I've seen it on, including the AMC, are very clearly tailored for average math class students, or at least students who don't have math education beyond that which you get in the classroom). Nevertheless, while I object to the use of the word ``domain'', it was clear what the AMC meant, so that would be admissible.

However, the real problem comes in the use of , which is clearly and unambiguously defined as . Furthermore, has a well-defined value. The problem is that has different meanings in different fields, and there is no way to know which one the AMC wants, except for the fact that people who have not learned math outside of the classroom can only be expected to know one of them.

The AMC never specfiied a codomain. And actually, since the AMC assumes the knowledge of complex numbers, this is a huge problem. is, for a vast number of fields, given the value of , even though any one of would work just as well. However, the point is that it is defined.

If I were to ask someone what is the domain of , I would almost certainly get the answer . But then, what if I say, ``Oh but is defined as !''? Then the person I'm talking to will, in many cases, revise their answer to all of . The exact same problem exists with . Is the domain or ? That question comes directly from the question as to whether the codomain is or .

So please, if you want to use this problem on a contest, word it like this: