I am playing around with a customized twitter client, temporarily named ‘outwit’. I’ll try to add up the features as I need them but its strictly an experiment for the time being. Let’s see if things go smoothly from here.
I made a small 10 min demo to simulate the classic river crossing puzzle for teaching state space search in my AI class. I did exercise my right to be creative by changing the characters a bit. Jerry, Tom and Spike have to cross a river, going from the right side to left, in a boat. While you are in the boat, they behave. But as soon as you leave Tom with Jerry or Tom with Spike on one side WITHOUT the boat, they start fighting. Being a peace loving person, you don’t want that. The goal is to move them across the river with no fights. (as you may have noticed, there is no eating/killing involved in my version)
Here, we can represent each object by a Boolean variable and draw the states accordingly. The picture above can be represented by 1 0 1 0 where the left most 1 represents that the boat is on the left bank and the zero after that tells that Jerry is on right one. Similarly the next 1 and 0 denote Tom on the left bank and Spike on the right one respectively.Here is a link to the executable in case anyone wants to play it or give it to a kid to figure out. Drop me an email if you want the source code (C#). The executable requires an installation of the Microsoft .NET framework 3.5.
I will be teaching a course in Artificial Intelligence this summer. For some parts of the course, I plan to show implemented demos along with the course material. Looking from the students’ point of view, such tools not only decrease the learning time while in the class room, but also give enough material to play around at home in case you want to repeat what was taught. (I can empathise because I was once, and will be again (hopefully soon), a student).
While preparing the first few lectures, I realized I needed a simulation of the 8 Queens Problem using Breadth First Search and Depth First Search. While there are many solutions on the Internet, I couldn’t find any program which lets me step through the algorithm. Besides, it had been a long time since I did any programming in Windows.Forms so my code deprived fingers needed a sink.
So here’s my version of the 8 queens problem solver. Each board state is represented by a string. The string represent the columns starting from the left most column and the number in that position tells the row in which a queen is present. The screenshot above thus represents the state 03142. The state 0314 would represent an empty column 4. You can download the compiled binary by clicking on the link below.
I will try to upload the source once the assignment deadline has passed The source code is available for download below. Keep in mind that it’s hacky and badly written and should not be used in assignments. If you want a ready-made assignment, search elsewhere (or still better, drop out and do something you really love => ). It was developed in C# so you might have to install Microsoft .NET framework 3.5 to run this program. Comments/Suggestions/Bug Reports are welcome.
I get to listen to some FM radio ads every now and then (don’t ask why) but today’s line up was rather interesting.
- !ہر چیز میزان میں، اچھی لگتی ہے (append more ridiculously childish lyrics here)
- Warid is asking us to start using our SIMs again by uttering the spell "کھل جا SIM SIM". Not a bad techie pun even though its a bit corny.
- Junaid Jamshed is telling us that its ok to get Lays (no ungrammatical pun intended). Apparently he has done the research himself and was ‘surprised’ to find out that they were made in Pakistan! (no really? wow! ہم کتنی ترقی کر گٰے ہیں) Also that they are 100% حلال (with all stress on ح ، حلق سے). Personally, I prefer Slanty.
- The Prime Minister has established a new “Special Fund for Victims of Terrorism”. Perhaps its a step towards not using the three lettered acronym (IDP). I was wondering if this makes people from US and UK eligible as well.
All this happened while “Miss Recheal Goodluck” was dropping me an email telling me that she is interested in me *blush* *blush*
This picture was taken while trying to install XP and Xubuntu on my machine without a CD. It’s quite clear how the data storage media has shrunk with the passage of time. The biggest disk here has a 2GB limit and was taken from an old dell laptop. The CF Card is 2GB as well, taken from a relatively newer Canon camera. The 1GB SD card is from my XDA and the teeny weeny micro SD is from my brother’s new ASUS EEPC. According to Kryder’s Law, the storage density of the magnetic media doubles every year. This probably means we would be able to fit a whole book at the tip of out pens real soon (and may be come up with an ‘auto-write’ pen which can just copy paste the text when we want).