Showing posts from August, 2017

Ethical Machines

Swami Gulagulaananda said:
Teaching ethics to a human being is hard. I wonder if machines are easier"
There is an old psychology question that we used to ask as kids:
There is a railway track on which trains typically pass on, and another track on the side that is not supposed to be used. There is a sign that indicates walking on the main track is dangerous. Walking on the side track is not a problem because trains are not expected to pass on it. A group of ten young boys are playing on the main track while a lone boy is playing on the side track. You notice the train approaching rapidly and are standing beside a lever that can be used to control whether the train continues on the main track, or switch it to the alternate track. Assuming that the side track is not risky for the train and that you cannot shout to shoo the kids off the tracks because they are too far away from you or do anything else - and given only the two following choices, which would you go for?
- Let the tra…

The Censorship Dilemma

Swami Gulagulaananda said:
(this quote has been censored)”A couple of days back, the chairman of Central Board of Film Certification (CBFC), Pahlaj Nihalani, was sacked and replaced by another person. It seems that a section of Indian film industry and media celebrated this fact. It turns out that Nihalani was branded ‘Sanskaari’, an of late derogatory word, often used to represent a person with a 'regressive mindset'. The reason? The official reason for his sacking was that he was muzzling the creative and artistic freedoms of cinema. Basically, he denied U/A certifications to movies that had scenes and language that was deemed inappropriate.The official reason mattered because the incumbent government formed by the BJP has been accused by leftist liberals and the so called intelligentia (I have lost respect for that word now because leftist liberals and intelligentia are associated together) of imposing Hindutva on ‘minorities’. While there is a lack of a shred of evidence o…

Ultimate Tic Tac Toe

Swami Gulagulaananda said:
"You can always make a mundane problem interesting by thinking about scaling it"

Tic Tac Toe used to be one of the standard games played by us in school along with Dots and Bingo. The problem with Tic Tac Toe is the frequent draws you end up with once you are familiar with the game. Eventually, it gets really boring and you stop playing the game.

One day, I stumbled upon a blog post at Math With Bad Drawings, called Ultimate Tic Tac Toe. The post discusses this problem of Tic Tac Toe and comes up with a very interesting approach. In this post, I have provided an implementation of their idea for you guys to play.

While you can read the entire content in that post, I will summarise it here.

You are provided by a 3x3 board of Tic Tac Toe boards. That's 9 boards.The first player can make his move in any square.The next player has to make his move in the board depending on the square in which the previous player made his mark. For example, if t…

On Interfaces

Swami Gulagulaananda said:
Every person is the same from the outside, and the insides are merely implementation details"A long time ago, I was introduced to an interesting concept called The Black Box. A box that takes something in and gives something out - and what it did to convert the input to the output is not something that we are supposed to be concerned with… It is a black box, and its insides are opaque to us.The black box paradigm can be used in a multitude of places and is very useful to simplify flows of thought processes. You move away from the so called 'Implementation Details’, the nitty-gritty details, the brass tacks if you will and assume that whatever is inside performs its duty.
In our electronics course, a cell was often connected to a load. The cell didn’t really care about the load - it’s job was to supply voltage and current. The consumption was the load’s job and not the headache of the cell. The load itself could have been a bulb that could glow, a mot…