Sunday, November 21, 2004

Give Thanks!

I suspect that the thing I'm most grateful for this year is the fact that we get a week off for Thanksgiving; I need the break! I'm looking forward to seeing Boston and New York and meeting family. Photographs will be forthcoming.

Oh, and I've always been curious about this: What's the origin of "the Bean and Cod"? I googled it, but was surprised to find no useful links except for a poem by William Corbett. I'm too lazy to look it up, so I'd be grateful for a reference.

Updates from Iraq

The Iraqi Electoral commission has confirmed that national elections will be held on Jan 30th. A commission spokesman, Farid Ayar, said that violence-prone areas like Falluja and Mosul will have elections at the same time.
"No Iraqi province will be excluded because the law considers Iraq as one constituency, and therefore it is not legal to exclude any province," he said.

In other news, the Post reports that American forces have found the houses where several hostages were tortured and killed in Falluja. The city appears to be slowly coming under American/Iraqi control, but an increasing number of resistance fighters are using white flags to pose as civilians and then attack deceived soldiers.

One can only hope that elections bring some peace to the country, but it seems doubtful.

Tuesday, November 09, 2004

And finally...

Firefox 1.0 has been launched. Download it today!

Sunday, November 07, 2004

Fighting in Fallujah

Not that it wasn't expected, but Fallujah is under attack. What's most disturbing is that Iraqi Prime Minister Ayad Allawi has declared a state of emergency, not exactly the best start to democracy. Quoting the Times and Post:
Hours earlier, Prime Minister Ayad Allawi, faced with an expanding outbreak of insurgent violence across the country, formally proclaimed a state of emergency for 60 days across most of Iraq. The proclamation gave him broad powers that allow him to impose curfews, order house-to-house searches and detain suspected criminals and insurgents. The order will run for 60 days but could be extended through elections planned for January.

An Eternal Golden Braid

I'm reading (for the first time, much as it pains me to admit it!) Godel, Escher, Bach: an Eternal Golden Braid by Douglas R. Hofstadter. I had meant to read it on many previous occasions, but never got around to it; now, that seems like criminal procrastination. So far, it's a superb book; the author's idea to intersperse dialogues with chapters was nothing less than inspired.

I expected to like the book and find the material not too difficult to follow (Four years of a Computer Science had to have been good for something! -ed.), but the presentation is so lucid that the material should be accessible to a high school student with no exposure to formal systems and so on. In fact, the author's interest in the subject was sparked when he was in high school and read Godel's Proof by Nagel and Newman.

Definitely one of November's Books of the Month!

Saturday, November 06, 2004

High School curricula

Continuing our math theme, we just conducted our second CS225 mid-term, and I've been grading exams for the last few days. I've noticed something interesting; students tend to provide reasonably good answers to questions which require them to write code, but are often unable to write proofs/justification for running times and correctness of algorithms. When I find a particularly good answer to a mathematical question, I often turn to the front and check the student's name out of curiosity; it appears that the best solutions are often written by non-Americans (judging solely by names). Before I get flamed for being racist, I should reiterate that I mean American, not Caucasian. Students of different ethnicities who went through school in America don't seem to do better than average; at least, I haven't noticed any evidence of it.

The most compelling reason for the discrepancy that I can find (since I absolutely refuse to accept any claim that Americans are 'inherently' less mathematically able than others) is the difference in the way Math is taught at the school level. (Disclaimer: I only have India as a basis for comparison, so perhaps this isn't reasonable either.) An Indian student who enters engineering college has already studied (differential and integral) calculus for two years, probability and statistics for at least as long, some form of co-ordinate geometry (with its emphasis on proofs) and algebra for over five years, besides some combinatorics, matrix algebra, and complex analysis. Some high school syllabi even include a fair bit of group theory! Graders in India also tend to be demanding (bordering on ruthless!) when evaluating exams, so students quickly learn when an answer is sufficiently precise to deserve full credit.

So is that a better system? I'm not sure; many Indian students never see a complex number after leaving high school and years of demanding Math often leave them hating the subject. I know several Indians who feel uncomfortable answering an exam question unless they're reasonably sure how to do it; a lack of partial credit (much less common in India than in America) discourages people from risk-taking. And I've noticed that American students are often more creative with solutions to both exam problems and random problems discussed in section, which makes teaching fun. It looks like they make up most of the relative deficiency in college, so doing less math in school doesn't seem like much of a loss. Perhaps the syllabi will change to embrace the best of both systems.

Right now, though, I often wish that there were more emphasis on rigorously correct solutions. Some of the best students seem to think that proof by example is completely reasonable! And it always makes me feel like I've done a terrible job in section when I have to grade papers which make warm, fuzzy statements like:
Trees are a Good Thing (tm) in general when compared to lists (except when they (the trees) are unbalanced, but that doesn't happen for Red-Black Trees (because they are always balanced), so it doesn't make a difference to this answer) and so searching in a tree is usually better than in a list (because we don't have to look at all the tree nodes), so we would rather use a tree.

(Admit it, that's an exaggeration! -ed.) Granted, but I yearn for a plain O(log n)!

Wednesday, November 03, 2004

Four More Years!

It looks like President Bush will return to the White House for another 4 years. It was evident for several hours that Ohio would decide the election. With 98% of Ohio precincts reporting results, President Bush leads by 51% to 49%, a margin of 136,000 votes. Provisional and absentee ballots are still uncounted, but given that there won't be more than 250,000 of these (a very loose upper bound) and that some of them will be disallowed, I think it's unlikely that Senator Kerry will win enough of these to offset the Bush margin.

Still, the Kerry campaign is not giving up. Mary Beth Cahill, one of the campaign managers said, "The vote count in Ohio has not been completed. There are more than 250,000 remaining votes to be counted. We believe when they are, John Kerry will win Ohio." A few minutes ago, Vice Presidential candidate Senator John Edwards made this announcement to the Democratic supporters outside campaign headquarters: "We've waited four years for this victory, so we can wait one more night."

Since many Democrats were unhappy with Al Gore for not fighting "hard enough or smart enough" (quoting George Stephanopoulos) after the Florida debacle four years ago, Senator Kerry is understandably unwilling to concede the election until he has explored every avenue that could lead to victory. I'm not exactly thrilled by the prospect of a protracted battle, though; such wrangling could have the effect of polarizing the country further. Surely the statisticians employed by the Kerry campaign have reported exactly how unlikely it is that the Senator can pull off a win.

The Republicans appear set to dominate Congress as well. They held 51 seats in the Senate earlier; they have 52 so far, and are leading in all 3 seats for which final results have not been declared. Democrat Tom Daschle, the Senate Minority Leader, appears to be one of the casualties. The Republicans will also probably have a comfortable majority in the House. We'll have to wait to see how all this plays out.

Tuesday, November 02, 2004

Record Voter Turnouts?

Looking through early news stories, one thing is clear: regardless of who wins, the turnout at this election will be among the highest in recent memory. In spite of heavy rain in many parts of the country, this election is expected to witness at least 118 million voters, and may set the all-time record. Two newsbites that struck me:

From the New York Times,
In North Philadelphia, Valerie Morman, a legal secretary, walked to her polling place at St. Malachy School. "The last time I voted," she said, "was about 20 years ago."

From the Washington Post,
In north Milwaukee, 19-year-old Maurice Dodson waited in a long line to cast the first presidential vote of his life. "No way I'm leaving," he said after an hour with no ballot in sight. "I'm very excited.

Sunday, October 31, 2004

In just a few more hours...

... just over 48, to be precise, the result of the 2004 U.S. Presidential elections will be known. Assuming, of course, that the election doesn't have to be decided by the Supreme Court again; a state of affairs that I'm sure nobody would like. I'm not going to comment further now, though; I'll be up all night on Tuesday as the results come in and will post any thoughts then.

Oh, and a Happy Halloween to all my readers!

Monday, October 25, 2004

Seen in a Slashdotter's signature

"With Microsoft, you get Windows. With Linux, you get the full house" - original source unknown.

Enough said. :-))

Sunday, October 24, 2004

More Bad News in Iraq

The New York Times is carrying two stories from Iraq. The first covers the loss of 380 tons of powerful conventional explosives from Al Qaqaa, a former Iraqi military facility now (at least nominally) under American control. From the article:
The bomb that brought down Pan Am Flight 103 over Lockerbie, Scotland, in 1988 used less than a pound of the same type of material, and larger amounts were apparently used in the bombing of a housing complex in November 2003 in Riyadh, Saudi Arabia, and the blasts in a Moscow apartment complex in September 1999 that killed nearly 300 people.

The International Atomic Energy Agency publicly warned about the danger of these explosives before the war, and after the invasion it specifically told United States officials about the need to keep the explosives secured, European diplomats said in interviews last week. Administration officials say they cannot explain why the explosives were not safeguarded, beyond the fact that the occupation force was overwhelmed by the amount of munitions they found throughout the country.

After the invasion, when widespread looting began in Iraq, the international weapons experts grew concerned that the Qaqaa stockpile could fall into unfriendly hands. In May, an internal I.A.E.A. memorandum warned that terrorists might be helping "themselves to the greatest explosives bonanza in history."

The explosives could also be used to trigger a nuclear weapon, which was why international nuclear inspectors had kept a watch on the material, and even sealed and locked some of it.

"After the collapse of the regime, our liberation, everything was under the coalition forces, under their control," Dr. Omar (Rasheed Omar, the Iraqi minister of Science and Technology) said. "So probably they can answer this question, what happened to the materials."

Officials in Washington said they had no answers to that question. One senior official noted that the Qaqaa complex where the explosives were stored was listed as a "medium priority" site on the Central Intelligence Agency's list of more than 500 sites that needed to be searched and secured during the invasion. "Should we have gone there? Definitely," said one senior administration official.

Granted, it might not have been possible to secure every pound of arms and munitions in Iraq, but 380 tons of HDX and RDX? Assuming that the looters used 10-ton trucks to carry the explosives away, they would have needed a convoy of 40 trucks! And no-one noticed? (Perhaps they took it away in smaller chunks at a time - ed.) That's even worse; it implies that they waltzed in and out of the facility on a regular basis! Incompetency doesn't begin to describe this. One can only shrug in wonder at his capacity for self-delusion when President Bush portrays himself as the only candidate capable of winning the 'War on Terror'.

In the second story, Edward Wong reports that fifty freshly trained Iraqi soldiers were ambushed and killed by insurgents dressed as police officers in eastern Iraq. He writes
The executions of the Iraqi soldiers on Saturday evening - and what may also have been three civilian drivers in their convoy - raised disturbing questions about the training process and the recruits: Why were the guardsmen allowed to travel unarmed and without protection, given the frequent attacks on the Iraqi security forces? Why did men trained as soldiers not put up a fight, especially when there were so many of them? How did the insurgents get police uniforms and information on the travel plans of the soldiers?

Iraqi and American officials said they had no immediate answers.

One can't invent this kind of story... and there's no need to comment on it. In other news from Iraq, Edward J. Seitz, a 16-year employee of the State Department was killed this morning in a mortar or rocket attack on Camp Victory, near Baghdad International Airport. Camp Victory is the U.S. military's operations center in Iraq. Mr. Seitz seems to be the first American diplomat to be killed in the war.

After a day filled with bad news, a little thing can sometimes make a huge positive difference. This statement in a Washington Post article on voter rights and harassment moved me nearly to tears.
"I'm excited to cast my first vote," said Heidi Carrillo, 24, a new registrant who was born in the United States to illegal immigrants. "They can ask for ID. They can make me last in the line. I don't care. I'm voting!"

Isn't that what democracy is all about?

Sunday, October 17, 2004

Biological Nomenclature

Slashdot ran a story on Taxonomy and amusing nomenclature today. Mark Isaak collected some names worth a second look. The page is fairly detailed, but here are some of the more amusing names.

Ba Humbugi (endodontoid snail) from Mba island, Fiji.
Eubetia Bigaulae (tortricid moth, pronounced You betcha, by golly)
Pieza Kake, Pieza Pi, Pieza Rhea (mythicomyiid fly)
Strategus Longichomperus (Honduran scarab with elongated mandibles)
Ytu Brutus (water beetle)
Eristalis gatesi (a flower fly, named after Bill Gates. Someone decided he deserved a bug named after him!)
Montypythonoideriversleighensis (An extinct python whose remains were found at Riversleigh in Queensland, Australia, it was named in a tribute to comedy)
Fiordichthys slartibartfasti (a fish named after Slartibartfast - the award-winning Fjord designer in the HitchHiker's Guide to the Galaxy)
Commelina (day-flower, named after the three members of the Dutch Commelin family, two of whom prospered. The flower has three petals, one of which is small, pale, and shriveled.)
Mephitis mephitis (common striped skunk, variously translated "noxious vapours noxious vapours", "stench stench" or my favourite, "smelliest of the smelly")

Scientists with a sense of humour... my favourite form of life!

Photographs of Champaign-Urbana

Champaign-Urbana is a beautiful town, and Fall is one of its best seasons. I've been meaning to capture some of my favourite views, but never seemed to have the time. I dug my camera out this weekend and finally took a few photographs. I didn't intend to photoblog, but since Faraz and a couple of other people asked for photographs, here they are:

The University of Illinois at Urbana-Champaign campus.
Photographs of our apartment.
Fall in Champaign-Urbana.
Siebel Center for Computer Science. This is very much a work in progress; my snaps of Siebel are very sketchy at the moment.

I uploaded them to Ofoto, but suspect that eventually I'll host them myself at UIUC. Another task for my to-do list. Sigh!

AI-Complete

Ditch (Deepak Ramachandran for the non-cognoscenti) has launched a blog of his own. As you can tell from its title, it's meant to be a weblog about AI research.
... (M)ostly this blog is about the discipline of AI as a distinct subfield of Computer Science - The effort to build machines that think, know, learn and are aware. Along the way, if we could define what these terms mean exactly, well that would certainly help. I hope to take it in the same direction as Lance Fortnow's Computational Complexity Blog.

Ditch was an occasional contributor to Pseudo-random Thoughts; with luck we'll hear more from him now. I hope he'll continue to grace us with guest posts here, though.

Wednesday, October 06, 2004

The Cost of War

The National Priorities Project documents what federal tax and spending policies mean to America. Among other things, they describe the dollar cost of the war in Iraq. The war has other, more important costs such as the apalling loss of life (mostly Iraqi, and to a lesser extent, American soldiers), the harm to America's credibility and reputation, and so on. They describe these as well, but they are well documented elsewhere (see Iraq Body Count, for example) and often speak for themselves. I'm going to focus on the money, then.

The Cost of War maintains a counter showing the expenditure on the war in Iraq. As of this afternoon, it had reached $138,693,576,310 and was climbing rapidly (yes, that's 138 billion dollars!). This amount could have been used for any of the following:
a) Completely insuring the health of 83 million children for a year
b) Hiring 2.4 million public school teachers for a year
c) Building 1.2 million additional housing units
d) Fully funding global anti-hunger efforts for 5 years, or global anti-AIDS efforts for 13 years.
e) Ensuring that every child in the world would receive basic immunizations for the next 46 years.

What really makes the site stand out, though, is this wonderful statement by President Eisenhower. He was a Republican, and (having been Supreme Commander of Allied Forces in Europe in World War II, Chief of Staff of the U.S. Army, and Supreme Commander of NATO) knew war first-hand; no-one could accuse him of being a 'bleeding-heart liberal'. He said, on April 16, 1953:
Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed.

Food for thought.

UPDATE: This might help you appreciate how rapidly the costs are increasing; in the time it took me to write this, over 2 million dollars have been spent!

Saturday, October 02, 2004

Selecting a Research Area

The Computer Science department at the University of Illinois, Urbana-Champaign requires all new Ph.D. students to attend a seminar in their first semester. As part of the seminar, various faculty members from different research groups describe the work they are currently engaged in. This is a fantastic idea, as it gives students the opportunity to learn about all the research being conducted in the department and helps us choose which area we would like to work in.

There's one thing I dislike, though; so far, some of the presenters (and almost all the students who I've spoken to) appear to believe that one of the primary reasons to select a research area is the potential impact that your work can have. Don't get me wrong; I completely understand that this could be a motivating factor for many people. Should it be the most important, though? What about research because you enjoy it? Is creating (or discovering) knowledge for its own sake not the most powerful motivation for a researcher? Sure, it must be incredibly gratifying to see your work in daily use. But if that's your reason for research, you might have done better to join a software company and work on products which are used by thousands of people. You could have even joined Microsoft!

Note: I'm not denigrating people who choose such careers; where would the world be if we all spent every waking minute wondering about the precise relationship between NP and BQP? Sure, there are people who would love to work at Microsoft; I'm not one of them. (What about Google? - ed. Ok, you got me!) What irks me is that there isn't anyone presenting their research area and telling us that we should choose it because it's beautiful; because we might love the field, its techniques and open problems. Now that would motivate me. I get a little tired of "Join us because we're relevant!" and "Join us because we're hot today/this week/year!". That's not what I hoped for; it's not what one would expect from people as deeply in love with their field of study as many of the faculty here are.

To be fair, though, even if that's what motivates the faculty, it might be difficult to convey it to students. I wouldn't be able to explain why I love algorithms and not databases to someone who had never taken a theory course. So perhaps this isn't a good way to attract new students to your field. Still, it would be nice to hear it once in a while. And the theory group is presenting their research next week; there's hope yet!

One final comment; what good research does not have an impact? For years, number theory was considered the "purest of pure" mathematics with no practical applications. Today, computational number theory is the basis for cryptography; its impact cannot be denied.

Thursday, September 23, 2004

The Sum of all Knowledge

That's the goal of Wikipedia, the free online encyclopaedia: Creating a world in which every single person is given free access to the sum of human knowledge. Wikipedia is free both as in beer (meaning that you don't pay to have access to encyclopaedia contents) and as in speech (meaning that you can take the content and do anything to/with it, except deprive other people of that right). Material is released under the GNU Free Documentation License.

Wikipedia is an encyclopaedia written collaboratively by its users; anyone can contribute. Pick a subject that you know something about, write an article, and it gets saved to the encyclopaedia database immediately. Millions of people will instantly have access to what you wrote. Considering the number of articles Wikipedia contains, though, it's probable that someone else has been there before you. In that case, you can freely edit their work and improve the article. That is, essentially, how Wikipedia works. They harness the power of thousands of volunteers who share knowledge of a wide variety of subjects. For more information, you might want to read the Wikipedia article on Wikipedia.

Why am I posting this now? After all, Wikipedia has been around for a while. This week is special; Wikipedia reached 1 million articles! In comparison, the Encyclopædia Britannica contains about 120,000 articles.

The Wikimedia Foundation, the parent organisation of Wikipedia, is involved in a Fundraising campaign to support Wikipedia and its sister projects. Spread the news; help Wikipedia today!

Sunday, September 19, 2004

Take back the web!

The preview release of Firefox 1.0 has been available for the last few days. The team set themselves the target of 1 million downloads in 10 days, more than ever before. Incredibly, they reached that target in just over 4 days! The new goal is to reach 2 million in the original 10 days.

Determining the actual number of firefox users as opposed to downloads is a little more difficult. For one thing, this count only reflects downloads off the firefox site, not mirrors or bittorrent. Often, a single download is used for multiple installs, as in business offices or educational institutions. On the other hand, some users download the browser several times for different computers at home or work. Still, this is a remarkable achievement by any standards. In all probability, it's a new record for beta-tested software.

(I thought you were an Opera advocate! - ed.) I am, but that doesn't mean I can't appreciate other good software or even software marketing. Many (dare I say most?) extensions for Firefox are copied from those integrated into Opera by default and the Opera versions are frequently better. Still, Firefox has better press and I'm happy to support it as long as it gets people to switch from IE.

Note: This is not Firefox 1.0, just a preview release of that version. Firefox is still officially in beta testing, and will remain that way until version 1.0 is finally launched.

P ?= NP

This post will only appeal to a limited audience; if you aren't in CS you probably have no idea what it means.

If you could choose to prove either that P = NP or that P ≠ NP, which would you pick? I'm not asking which you believe; you can decide mathematical truth here. Given that you have the ability to prove either, which one would you rather prove?

Remember to leave your name along with comments.

Back to Blogging!

Now that I've settled down in Urbana-Champaign and have bought a computer, blogging will resume on a regular basis. Thanks to all the people (particularly Faraz) who kept asking for updates.

I'll try at some time in the future to describe UIUC, Champaign-Urbana and life here, but for today I just wanted to post a link to a speech made at the 2004 (American) National Convention of the Society of Professional Journalists.

There are times I seriously consider a career in journalism.