Thursday 24 July 2008

Great Generals: Hannibal takes on Rome - II , Battle of Lake Trasimene

Previous: Battle of Trebia

After the defeat at Trebia the Roman Senate was shocked. The reality of someone crossing the mountains and attacking them from the North was something they couldn't grasp. But still, they continued to underestimate Hannibal's strength (which wasn't just in numbers). The Senate decided to sack Sempronius (the defeated general of the previous battle) and brought in two new consuls: Gnaeus Servillius Geminius and Gaius Flaminius. Servillius was given charge of Scipio's army and Flaminius was made in charge of whatever was left of Sempronius's defeated army.

The job for Flaminius was to protect the city of Rome and prevent Hannibal from reaching the city. So he hurried his army back from Trebia towards Rome. But Hannibal followed him even faster and eventually overtook him. And before Flaminius could try to hurry back again, Hannibal cut him off using the first recorded Turning Movement in history. Hannibal's plan was to lure Flaminius into battle before he could reach Rome or receive help from Servillius. He started rampaging the countryside to provoke Flaminius. He hoped that destroying the very land that Flaminius was sent to protect will entice him into battle. And so it happened...

Flaminius like Sempronius was a rash and arrogant general. Even though all his advisers suggested that he only send his cavalry to temporarily stop Hannibal and wait for the other consul to arrive, Flaminius decided to take him on.

Meanwhile, Hannibal had come across a road that was bordered on one side by a Lake and hills on the other. In his eyes, this was the perfect place for an large-scale ambush.

Here is the Map of the area in the north of Lake Trasimene where Hannibal placed his trap. The waters of the lake have receded a little now, and so there is more space now between the hills and the lake than there was at that time.


View Larger Map


In the cover of the night, Hannibal placed his cavalry and Gallic infantry in the hills where Romans would be entering the valley from. Their job was to suddenly attack the Romans from the left and close the way back. He hid his light troops along the hills all the way to Tuoro Hill. Finally, he himself stood with his heavy infantry on top of a slight elevation where Romans could see them. He also asked his soldiers to light massive campfires on Tuoro Hill at night, so that the Romans would imagine that he's far away.



The next morning, in the fog, when Romans started approaching the road from the West, Hannibal's trap was set. To further entice Flaminius, he sent a skirmish force ahead to start fighting and then retreat to lure the Romans deeper into the valley (and into his trap).

As soon as the Roman army entered the valley, Hannibal's cavalry crashed down upon them from the hills and closed the road behind them. Now the Romans were surrounded from all sides, with their backs to the lake. The battle started even before they had time to draw up their battle lines. The Roman army was split into three parts, the west, center and the east.

Hannibal's army quickly destroyed the west flank, and heavy infantry led by Hannibal crushed the east flank. Now the Roman center was exposed to attack from all sides. They fought for about three hours but the whole Roman army was completely annihilated.

Off the 40,000 soldiers that the Roman army had in the morning, 30,000 were either killed (by the afternoon) or drowned in the lake. A few soldiers who escaped were later captured by Hannibal's brother Mahirbal the next day. Flaminius himself didn't live to regret his decisions and leadership on that day. The massacre was so intense that the soldiers didn't even notice that an earthquake occurred that morning...

Compare Roman losses to those of Hannibal's forces who lost only 1,500 soldiers out of their original strength of 50,000.

Hannibal had now planned and executed the greatest ambush in history. But this was still not his best...

After the shock of another huge defeat, Romans first gave dictatorial powers to Fabius Maximus. Fabius was smarter than the other consuls before him, and knew that going head-to-head with Hannibal was a mistake. He implemented his 'Fabian Strategy' where he avoided direct battles and tried to wear Hannibal down by harassing him.



But the Roman people and the Senate didn't have the patience to keep this up. They again removed Fabius and got two new consuls Paullus and Varro. These two would lead Romans to their biggest defeat ever - at Cannae...

Image Sources: Google Maps, Department of History, United States Military Academy.

Update: Others in the series: Battle of Trebia, Battle of Cannae

Tuesday 8 July 2008

Pride and the Search for Happiness

What are you proud of? When your boss looks down upon you, or when a boy/girl you like treats you badly, or when a group you identify with is disrespected, or someone completely unknown shouts at you on the street, why is it that you are hurt? I feel bad in such situations, but when I honestly ask myself, 'what am I so proud of', I don't have any answers for myself.

What is so special in me that gives me a right to get upset when I am disrespected or not loved? Why does it hurt so much?

Religions tell us we are special in the eyes of God, or there is an essence, something special within us that makes us and our lives special. Are they sure? Even it is true, it is just a reason, an explanation for a feeling we had since we were kids and didn't know anything about God or Religion, a feeling we have always had.

If not, am I proud of those little achievements I have made in life. The achievements are mostly relative to other people around me. does that mean that if not for those people, I wouldn't have any pride. But I was still proud, even before I did any of those things. These so called "achievements" are just re-affirmations of the pride I have always had.

This pride or self-respect (maybe a better term), I have always carried with myself as long as I can remember. When something good happened or I succeeded in something, it became stronger and I felt confident and happy. When I lost, or thought that I was rejected, I felt hurt and sad. It was difficult for me to understand why my happiness was so dependent on what other people thought and did. Why did I have to prove myself to so many people? Why did I have to be approved of in order to be happy? I never understood...

The pain and happiness caused by this pride, was simple to deal with when I was a kid, but as I grew up, the effect of these somehow became stronger. Or maybe I started feeling it more. So, I came up with many ways to deal with it in my mind (many times without knowing). Some of them were:

1. Rationalize: When someone says something bad, I started thinking that they didn't actually say anything bad about me, but about how I did things. So if I do things differently, they would come to like/respect me again. So, I tried to change and went back again and again. This does work sometimes, but sometimes it takes you in the wrong direction. I had gotten too attached to getting approval and love rather than doing things right. As you learn in life, some people really do hate you, and no matter what you do, you can't change their minds.

Another way to Rationalize, is to think that there is something wrong not with me, but with the other person. So, fuck them. This is the next stage of frustration. If you don't care about other people, they can't hurt you right. A morphed version of this is when you only care about good opinions of yourself, start thinking that everyone else is wrong and is a loser. Now, its easy to see why this can be bad. Even people like Presidents suffer with this problem.

2. Don't push yourself: Don't get too involved, don't trust anyone completely, and stay away from any kind of commitment. So, in the end if you fail, and anyone criticizes you (or you criticize yourself), you have an excuse. You can tell yourself that you didn't give your all - if you had, you would have done much better. You remain mediocre forever, but hey atleast you know you could have done much better right. And so, your status or position in society does not reflect the real you. So, you are free to live in your own world. As you don't recognize what the world says about you, you can be free from requiring their approval.

A corollary of this approach is to run away as soon as things start to look bad. Bail out before you get hurt. Ditch the other person, the other job, before they get a chance to ditch you. The problem with this approach is that, you usually end up with nothing at all, because there are hard times in every relationship and every work.

3. Push yourself too hard: The opposite method also works. If you are really hurting, get involved in something and don't let yourself think about anything else. Shut your mind, keep doing something unless it gets back in. Its not that you have to enjoy what you are doing, but just keep doing it all the time. To hell with sleep, food, friends, life... In the end when you cross your limits, you are so exhausted that you begin to hate the very thing that you once enjoyed. You think you are working hard, or giving your best, but in reality you are just scared and running away from yourself.

4. Hedge your commitments: Another way of go around disappointment is to do 10 things at the same time. So, if you loose in some of them, you still have others. So have two girlfriends, and three jobs. This may work well for some time, but if either of those girlfriends or bosses find out that you are not committing everything, you risk loosing both of them.

You could be honest with them from the beginning, but then neither you nor they will be happy without a full commitment. You will have to start lying to atleast some of them. The issue of commitment will come up again and again until the relationships become bitter. Very few people are able to successfully pull this off.

5. Take pills, drink, eat food, or watch TV all day long: Do anything you can to forget about your hurting insides. You won't be hurt by things, events and people around you if you are not aware of them right. You have an addiction, even better... you don't have to force yourself any more. Accept that you can't fight with yourself and what you feel like doing and just do it. The only problem is, when you are not drunk, high or feeding the addiction, your pride and your heart hurts even more. Now to make yourself forget, you have to drink, eat or watch even more... and it never stops...

Why don't any of these methods work and why are they usually wrong? I don't think there is a clear answer to this question. But I'll give you some of the answers that I got...

I think that's because they are the 'easy ways out'. The best thing to do when you fear your pride being hurt is to take a moment and think what is the hardest (or atleast harder) thing for you to do at that moment. And do the hard thing. Face the fear and once it is all over, you will come out feeling better yourself. Results might not be as you expected, but atleast you were better than you expected.

In the end, the root of all pride or self-confidence, is the feeling of being alive, the feeling of existence of 'I'. The essence of being alive, is an inherent tendency in all living things to independent, to rebel against nature and to carve one's own path. At its roots, Life is the fight between will and circumstances. And pride comes from this feeling of independence. All other kinds of supposed pride are just complications on top of this, that arise from ego, arrogance, and most of it just imagination. But this basic happiness of being, is at the core of every thought, it is the proof of our existence.

So, we must keep on living, keep on fighting, and do the hard things. Pride is hurt not because someone treats us bad, but because we take the easy way of feeling bad at that instant, we take pity on ourselves.

I am still looking for answers to these questions, but I guess I am truly myself when I make the tough choices.

Monday 7 July 2008

Great Generals: Hannibal takes on Rome - I , Battle of Trebia

I want to start the series of posts on great battles and generals with three battles of Hannibal of Carthage. Hannibal was one of the greatest generals in History and some even call him the 'Father of Strategy'. His greatest achievement was when he led his army across the Pyrenees and the Alps and attacked and defeated Roman armies multiple times at home. And if this was not enough of an achievement, he did it all using a massively under-matched and eclectic army formed with soldiers of different cultures and nationalities. He defeated Roman armies in a series of battles that are still considered to be strategic masterpieces. Students of military strategy all over the world still learn about Hannibal and his battle tactics.

His impact on minds of future generations was so great that Napoleon (another contender for the title of 'Greatest General in History') said that he learnt from him, and General George Patton of the US army during World War II, thought of himself as a re-incarnation of Hannibal. When German military commanders wanted to come up with a plan to invade France in early 1900 (before WWI), they came up with a large scale re-enactment of Hannibal's Battle of Cannae, also known as the Schlieffen Plan. They tried a version of the plan in the initial stages of WW1, but couldn't pull it off. Later, Hitler's generals also used a version of this plan when planning an attack on France again in WW2, but this time succeeding.

But before we get to the Battle of Cannae, I want to talk about Hannibal and his march into Italy. When he came into Italy after crossing the Alps he defeated Roman armies in two impressive battles at Trebia and Trasimene. These two battles lay the groundwork for Cannae. We will start with them...


Hannibal and his march into Italy

Hannibal was born in Carthage as the son of Hamilcar Barca, a powerful general and statesman. Carthage was a city state in North Africa on the coast of the Mediterranean, in present-day Tunisia. Carthage used to have control over Sicily and Sardinia, but when Rome took them in 3rd century BC, a war broke out between Carthage and Rome called the First Punic War. After distinguishing himself in the First Punic War, Hamilcar Barca rose to become a powerful general in Carthage. Legend has it that when fighting the Romans in Spain (called Iberia then), he founded a town called Barcino which has now become Barcelona.

His father taught Hannibal how to fight and command armies as well as to hate Romans. Legend has it that he made his son swear on his death bed, that Hannibal will fight the Romans to his death. After his father died, Hannibal took charge of the Carthagian forces and attacked the coastal Spanish town of Saguntum in 219BC after the previous treaty with Rome fell through. The siege of Sagantum was hard for Hannibal and it took eight months. After this experience Hannibal was always vary of laying sieges to cities. This could be one of the reasons he didn't lay siege to the city of Rome directly when he was in Italy.



Hannibal was now determined to take the fight right to the Romans inside their own country. He had greatly admired Pyrrhus, a great Greek military leader who attacked Italy (and whose name dons the phrase 'Pyrrhic Victory'), and he was convinced that it was possible to fight Rome inside Italy. He decided to invade Roman territories of Iberia (Spain) and Gaul (France).

Hannibal took 50,000 infantry, 9,000 cavalry and 37 war elephants with him to cross the Pyrenees and Alps to attack Italy from the North. Even the thought of such a feat had never crossed anyone before, but here was Hannibal who was determined to do it. After braving harsh weather, ambushes from local tribes, problems with food, water and shelter, Hannibal was able to make it to the plains of Northern Italy. Only 38,000 infantry, 8,000 cavalry and 30 elephants could make it through the journey.

On reaching the other side, the first thing Hannibal did was make some treaties with the chiefs of the local Gallic tribes, before Rome had a chance to talk to them. He got a lot of them to join his army and thus bolstered his army back to 40,000.

Battle of Trebia

When Publius Cornelius Scipio, the Roman General who was sent to track and fight Hannibal in Spain, found out that Hannibal was crossing over the Alps to Italy, he hurried his army though the sea route to Italy to stop him. In a small confrontation at Ticinus, his army was defeated and he got severely injured.

When the Roman Senate heard of this, they sent Sempronius Longus, a consul (there used to be two consuls in the ancient Roman republic who ruled the country - chosen by the senate) to fight Hannibal and give support to Scipio. But, Sempronius had his own agenda. The consul elections were coming up, and he wanted all the credit of defeating Hannibal for himself. He wanted to defeat Hannibal before Scipio and his army could recover so that he would look good in the eyes of the Senate back home. As you can figure, he was an arrogant and an impetuous man.

Unfortunately for Sempronius, Hannibal knew of his impetuosity and impatience. Gallic spies that Hannibal had sent into the Roman camp were giving him all the information about Sempronius, his camp's location, their strength, their strategy and even rumors about the general Sempronius. Hannibal decided to use this weakness and exploit it by setting up a trap for Sempronius' army. In the cover of the night, he sent his brother Mago along with 1000 light cavalry and 1000 Numidian cavalry to hide amongst the dense trees and cliffs further along the river. In the morning, Hannibal sent his cavalry across the Trebia river to harass the Roman soldiers and then retreat, so that hot-headed Sempronius would follow them and walk right into their trap.



And as Hannibal had expected, Sempronius obliged. When Hannibal's cavalry came to harass him, he first sent all his cavalry after them, and then later sent all his infantry after them too. By the time they had crossed the Trebia river, Roman infantry was cold on the winter morning, hungry(as they had not eaten) and unprepared to fight. Meanwhile, the Carthagian soldiers taken all night to prepare and Hannibal had setup his army formations at a place of his liking.

Head-to-head, Hannibal had a slightly smaller infantry (30,000 compared to Roman 40,000) but a relatively much larger cavalry (10,000 vs 4,000). So, Hannibal's strategy was to break the Roman cavalry flanks (left and right) with his stronger cavalry and then attack their infantry centre.

When the battle began and the two infantry centers were battling it out, Hannibal's cavalry started destroying the Roman cavalry flanks and then turned to their infantry. Hannibal also sent all his war elephants against the Roman allies, the Gallic light cavalry. The allies were so surprised, and afraid after seeing the mighty beasts that they got demoralized and retreated, thus leaving a large portion of the Roman center vulnerable.

And to top it all off, Mago's unit hit the Roman legions from behind in an ambush, and thus giving them no place to run. Surrounded from all sides, cold and hungry, the Roman infantry was cornered, trampled and butchered. Some of the cornered Roman soldiers were able to break the Carthagian line and escape ahead to a nearby town of Placenta. But, in all 20,000 roman soldiers were killed that day (more than one third of the Roman army).

Sempronius was shamed and sacked when he returned to Rome. The Roman Senate appointed two new generals as Consuls: Gnaeus Servilius Geminus and Gaius Flaminius, the second of whom lead the Roman army during the second battle at Lake Trasimene.

Hannibal on the other hand, headed on into Italy.

This marked the first decisive victory for Hannibal in Italy over Rome. But this was just the start for him....


Next up: Battle of Lake Trasimene (or how to lay an even bigger trap)

Image Source: The Department of History, United States Military Academy

Update: Others in the series: Battle of Lake Trasimene, Battle of Cannae

Wednesday 2 July 2008

Starting the History Series

Starting this week, I will be writing a series of posts about history, about interesting battles, people who fought them and how it affected the way our world, our history and our society developed. I'll start with writing about some important, decisive and 'cool' battles. I know battles and wars are bloody and cause hardships to all involved, but they are also interesting in the sense of how the kings, generals and soldiers tried to to win.

If you put yourself in the position of these people, you'll find that they had many decisions and often many choices. What did they choose to do and what was the outcome? Thats what we will try to analyse...

And maybe, we can learn something in the process...

Here is my potential list:
  • Hannibal and how he defeated Rome
  • Alexander's last battle on the borders of India: Battle of Jhelum (Hydaspes)
  • Napoleon and the Battle of Austerlitz, defeating both the Russian and the Austrian Empires
  • The Second Battle of Panipat, which led to the establishment of Akbar the Great and the Mughal Empire in India
  • and more... (suggestions are welcome)
Hold your breath... :-)

Tuesday 1 July 2008

Hacker News network of users (based on commenting behaviour)

There has been a lot of discussion lately on trust measures, reputation and groups on Hacker News. So, I decided to run some experiments on the crawled dataset of stories released by Xirium (http://news.ycombinator.com/item?id=182374).

Of course, the real database of voting history of users would have been much better, but this is all I could get...

Calculation

The trust values were calculated as follows:
  1. For each story the submitter gets +1 from all commentors. I know this is naive, but bec. of lack of voting history (on the story), I had to go with this assumption.
  2. Each commentor gets ( votes_on_that_comment / total_votes_on_all_comment ) for each comment on that story, from all other commentors. (Again I know this is naive).
  3. Trust values are added up for (object, subject) pairs across all stories.
  4. The votes on the story were recorded as votes from a virtual user 'HNCROWD' for the submitter. After adding up, the trust value from HNCROWD for a user reflects the 'Karma' of the user on the website.

The resulting file is downloadable in CSV format here (http://www.sendspace.com/file/mw59f7).

So with these values I tried running some experiments:

1. Clustering:

An interesting experiment would be see if there are clusters of users among commentors. I used the Markov Clustering Algorithm (http://micans.org/mcl/) for clustering graphs as it does not need the number of clusters as initial input.

Unsurprisingly enough, most of the Hacker News community belongs to a single cluster. This makes sense as Hacker News is quite a focussed community interested in practical hacking related to the web, entrepreneurship and startups.

Other explainations are that users who comment are themselves quite interested in the stories and the community and are hence closely connected and similar. The users who are dissappointed with the website, might not be commenting at all... Again, using voting statistics would have been better.

2. Trust-Rank:

Second, I tried applying a variation of the TrustRank algorithm ( http://www.vldb.org/conf/2004/RS15P3.PDF ) to the trust values data.

The result here was also unsurprising. The ordering of users was very similar to what is generated using Karma on Hacker News website.

Further work:

1. The method of calculating trust values (based on comments) is very basic and needs to improved (like taking into account threads and opposing opinions).
2. I want to see if this information is actually useful in tasks like News-Story Recommendation.

Conclusions:

Without the availability of voting data, it is hard to say if users on a focussed site like Hacker News have diverging interests. I am sure, as the community grows people of different interests are bound to join. But, the whole idea of a democratic voting site only allows stories that are interesting to the most active users to be selected. And so, other users will find the website boring, and not contribute and maybe leave. This might be an example of a community maintaining itself...

Giving highly trusted users down-modding power will strengthen this emergent behaviour, and the community will become more focussed (towards these users) than it is now. This might be both good and bad depending on if you are in this majority...

P.S. Thanks to Xirium for sharing the dataset.