to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
A little over a thousand years ago, the Battle of Clontarf was a seminal event in Ireland's history, where the island's warring Celtic kingdoms, which had only recently been compelled to unite under the rule of High King Brian Boru, met and prevailed over Viking invaders in a day long battle.
Or perhaps not. Perhaps instead, the Battle of Clontarf was the final battle of a civil war between Celtic chieftains in Ireland, where Viking warriors were mixed in among the warring clans. The Vikings had, after all, taken control of territory they had raided and had established settlements on the island over the previous two centuries, where they had long intermingled with the Celtic population and were an active political force that would frequently choose sides in the battles between divided Celtic kingdoms.
One millennium later, many of the details of the nature of Celtic and Viking interactions have been lost to time, where traditional historical records and archaeological evidence provides support for these alternative perspectives of the same event. But the branch of mathematics involving graph theory is providing a new window into history that may have resolved the question of the true nature of the conflict that culminated at the Battle of Clontarf, through the analysis of the social networks described in the surviving documents from the era.
The primary account of the war between ancient Irish and Vikings, appropriately titled the Cogadh Gaedhel re Gallaibh, or The War of the Irish with the Foreigners, lists the travels, meetings, and battles of Irish kings and Viking warlords for nearly half a century. But the sprawling epic, collated from three different sources, is problematic. Historians aren’t sure exactly when it was written, its timeline makes no sense, and it’s a brilliant piece of propaganda that demonizes the Vikings. “It basically says Brian was a good guy and the Vikings were bad guys,” says the study’s lead author, Ralph Kenna, an Irish theoretical physicist and mathematician at Coventry University in the United Kingdom.
Some historians have argued that the tale was a way of strengthening the O’Brien dynasty’s claim on the throne, and that the real war was waged between clans in the province of Munster, led by Boru, and clans in the province of Leinster, supported by the Vikings. But there’s precious little archaeological evidence to support either side.
So Kenna turned to social network analysis—the kind Facebook uses to figure out who your friends are—to analyze the relationships between characters in the Cogadh. Sindbæk says that although this method is used increasingly in anthropology, applying it to characters in ancient texts is quite ingenious. Kenna and colleagues mapped out every interaction among the 315 characters mentioned in the Cogadh, and coded their more than 1100 interactions as either friendly or hostile. They then tallied the hostile interactions into a single scorecard: If the nastiness was Irish-on-Irish, the score went up. If it was Irish-on-Viking, the score went down. The final score was negative. That means it’s quite likely that the war really was a struggle primarily against the Vikings, Kenna’s team reports.
The study's authors presented an overview of the kind of insights that can be obtained from this application of graph theory back in 2014 in the following video.
Very cool! No word yet on whether they'll tackle Game of Thrones next, but at least for the Battle of Clontarf, the math strongly favors the Irish versus Viking invaders version of events, while also confirming that Viking interactions with the Celtic population were more complex than just being straightforward adversaries.
Labels: math
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.