Shriphani ‘PSP’ Palakodety

Weblog of an Aspiring Computer Scientist

Shriphani ‘PSP’ Palakodety header image 4

Entries Tagged as 'python'

Knuth Morris Pratt String Searching

December 6th, 2008 · No Comments · Computer Science, python

I found some free time in the midst of extensive preparations ( for the end of semester examinations, I managed to salvage some time to write some Python code (I’ve written so much Java that Python now equals a rub on the temples).
Search:
A parallel comparision is made on the text to be searched and the [...]

[Read more →]

Tags:

Life Update

December 1st, 2008 · No Comments · College, Computer Science, Daily life, python

So, I am now trying to while away time in this totally freaking awesome thanksgiving break when its just too hard to find vegetarian food (I don’t know why people are hell bent on making life difficult for vegetarians, aren’t plants easier to grow than animals?), or people in this dorm. Well, here is a [...]

[Read more →]

Tags:

Curious Fractions

November 14th, 2008 · 7 Comments · Mathematics, python

While suffering from conjuctivitis, fever, a sore throat and what seems to be a case of swollen tonsils determined to make nutrition a pain for the next week or two, I decided to solve a problem on Project Euler. The question I picked was Problem 33: Find all fractions with the given unorthodox cancelling method [...]

[Read more →]

Tags:

Awesome Developments

October 30th, 2008 · No Comments · Computer Science, Mathematics, python

So, I’ve had the best week of my life and let me tell you folks, nothing’s better than sitting in front of one of the most awesome boxes in the world – the macbook pro. Yes, the alpha and the omega is here, I am now the proud owner of a macbook pro (not the [...]

[Read more →]

Tags:

Suffix Trees

October 19th, 2008 · 4 Comments · College, Computer Science, Daily life, python

Since I was quite bored this week (thanks to an October break I spent entirely in my room) and a homework assignment that quite seriously sucked balls, I decided to read something about strings and read about Suffix trees and decided to whip up an algorithm that would create a neat suffix tree by walking [...]

[Read more →]

Tags:

Desitech – A blog on technologies relevant to Indians

October 10th, 2008 · No Comments · python

So, I came across this blog called desitech which covers technologies that would aid Indians as they lead their lives. The blog speaks about interesting startups, events, personalities and so on.
As per the site, we can soon see Indian monuments in 3D courtesy Microsoft Research’s “Digital Heritage” project. Or how about that post on TechVista [...]

[Read more →]

Tags:

Essay Time!

September 26th, 2008 · 2 Comments · Computer Science, python

So, after a ghastly essay season in fall 2007 where I managed to get myself rejected from a bunch of colleges, I find myself in a similar situation again. This time, its Google/MS to whom I should be bragging without seeming like I’m bragging. Although these two have assumed that freshmen are losers, I plan [...]

[Read more →]

Tags:

Awesome Problem

September 25th, 2008 · 2 Comments · Computer Science, Mathematics, python

 
I had the opportunity to work on an interesting problem:
 
Find a decent approximation for the Zeta function (large values), given by:

So, to make any sort of headway, I decided that I would have to look at the graph. Hence, I whipped up a script in Python:
#!/usr/bin/env python
#Author: Shriphani Palakodety
#Mail: shriphani@shriphani.com
#Blog: http://shriphani.com/blog
#Generate the plot of the [...]

[Read more →]

Tags:

Intro CS Blooper

September 19th, 2008 · 4 Comments · python

I feel like an arsehole right now. I forgot to change the output to god-damned lowercase on an intro CS project and managed to score 90…..
Any way,
Dumb, Dumber and Dumbest, that is how my intellect is deteriorating. I feel like a n00b. Bloody spec was so long for such a short POS.
Anyway, I [...]

[Read more →]

Tags:

Pythagoras and lambdas…..

August 23rd, 2008 · 7 Comments · Mathematics, python

Here is the first bit of code I’ve ever written at college (on my own computer though, I’ve concentration problems in the lab). I was solving problem 39 of the project euler problem set (and I am ashamed of my work). So the question is:

If p is the perimeter of a right angle triangle with [...]

[Read more →]

Tags: