Trees And Heaps For Xmas - A Programmer At Xmas
Trees And Heaps For Xmas - A Programmer At Xmas
Written by Mike James   
Monday, 25 December 2017

'Tis that time of year when it is OK to use the word 'tis. Programmers are a funny lot, but they too are forced to stand away from the keyboard and stop coding. Why exactly? Well there are festive treats to open and consume.

And more realistically, the family would disown them if they coded through the 25th. Set free from the lexicographic abstraction, who could blame a programmer's mind from wondering the essentially programming nature of the holiday:

 

Tree

More cartoon fun at xkcd a webcomic of romance,sarcasm, math, and language

Then there is the question of how exactly do the elves solve the travelling santa problem, or TSP? Presumably they have a cloud computer running for most of the year. This is just one of the many difficult, if not NP Hard, problems that are embedded in the core of xmas.

The present assignment problem is closely related to the knapsack problem and then there is the Christmas cake cutting problem...

When you start looking CS is everywhere in xmas.

Of course this is just part of the story - because CS is just everywhere and not just at xmas. If Billy had been better trained in programming and computer science he would at least know the cost of removing the root present. How many other tragedies could be avoided if we just insisted that algorithms were a part of life and a part of the school curriculum.

And when it's all over we can start the GC algorithm and hope it defrags the house in O(1).

If it doesn't there is always a Roomba to try...

Happy programming year.

cartoonxmas

More Information

Tree

Related Articles

Xmas Tech Videos

How Robots Celebrate Christmas 

Christmas Is NP Hard

Robotic Present Delivery       

New Year's Eve With Nao

Nao Plays Jingle Bells

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


HBase 1.4 With New Shaded Client
02/01/2018

Apache has released an updated version of HBase with a new shaded client intended to improve compatibility, along with improvements to the REST client, enhanced autorestart capabilities, and improveme [ ... ]



C - Language Of The Year 2017
06/01/2018

The Tiobe index isn't too be taken too seriously, but it does reflect changes in the current interest in languages and the shock at the start of 2018 is that C has put on most growth making it the lan [ ... ]


More News

 
 

 

blog comments powered by Disqus

Last Updated ( Monday, 25 December 2017 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.