Simulated Annealing

February 22nd, 2010

For a prob­lem I’m work­ing on I got stuck onto the clas­si­cal sit­u­a­tion of local max­i­mum. After trying to work around the prob­lem in sev­eral more or less cre­ative ways, I thought of the sim­u­lated anneal­ing algo­rithm. Con­sid­er­ing it’s been a while since I last saw it I tried to search for it on the web and sur­pris­ingly there is not much stuff about it, and the few bits I found are often con­trad­dic­tory. After quite a lot of dig­ging I decided to write about it here. As a warn­ing I should prob­a­bly say that there will be dig­ging into some basic sta­tis­tic and com­plex­ity analy­sis, as well as a quick formal intro­duc­tion to the prob­lem of the knap­sack. You should be able to follow even if you don’t know noth­ing about those topics, but having some foun­da­tions in these areas would be of great help.
(Con­tinue reading…)

0 Comments, tagged with Algorithms, Coding

Google Wave impressions from a developer point of view

August 28th, 2009

A couple of days ago I finally had my Google Wave sand­box account. Given that I just fin­ished devel­op­ing my very first robot, I thought I’d share some impres­sions on the whole thing. From the user-​side, things are far from being ready. Some impor­tant fea­tures are still miss­ing, just to name one you can’t remove user from a wave once they joined (or, alter­na­tively, there’s no way to ignore a wave). Indeed, given that I joined sev­eral waves to try other people appli­ca­tions, I’m get­ting con­tin­u­ous noti­fi­ca­tions. But anyway, the whole thing is to me like a great devel­op­ment play­ground where I can make all the sorts of experiments.

(Con­tinue reading…)

0 Comments, tagged with Coding, Geekness

Dealing with algorithms and data structures

July 21st, 2009

One of the rea­sons I haven’t been writ­ing on this blog that much lately is that I’ve been ter­ri­bly busy with uni­ver­sity given that I just cleared out six exams in six months. That said, for one of my three exams that I still have left, I had to develop an infer­ence engine writ­ten in C++. Since this was a fairly large project that had to deal with some sort of NP-​complete prob­lems (see also: uni­fi­ca­tion) and given that this was the first time I wrote some­thing seri­ous in C++ (i.e.: that would involve more than a class and that didn’t con­tain the “Hello world” string) I had the chance to learn quite a few new things.

(Con­tinue reading…)

0 Comments, tagged with Coding

Optimize your programs

December 2nd, 2008

The last time I blogged about a new course I’m fol­low­ing at my uni­ver­sity. This course, held by Pasquale Lops and Gio­vanni Semer­aro, is very inter­est­ing at the point that I’ll be devel­op­ing a custom infor­ma­tion retrieval engine as part of my intern­ship project. I can’t tell much more at this point since the intern­ship haven’t started yet and I’m not sure I can release more details about this project (we’re still in the process of decid­ing if and how the whole thing will be released to the world).

In the mean­time, I’ve been doing sev­eral exper­i­ments on this topic mostly about the memory usage and the per­for­mances of such system on lim­ited hard­ware. This prac­ti­cally means imple­ment­ing the algo­rithms you’ll be using and mea­sur­ing the com­pu­ta­tional time they require.

(Con­tinue reading…)

0 Comments, tagged with Coding, Python

Next Page »

Microblogging

July 29th

twitter (feed #2)
Python's date & time functions are horrible. Really. [krat]
2:31pm via Twitter
twitter (feed #2)
Wondering whether I should buy a new set of hearphones or if I should try to fix the old ones [krat]
11:13am via Twitter

July 28th

twitter (feed #2)
discovered beeseek (http://beeseek.org), looks like a very interesting project [krat]
6:08pm via Twitter

July 26th

twitter (feed #2)
just wrote down some help numbers for my next trip, the most important one being the italy's embassy [krat]
2:12pm via Twitter

July 24th

twitter (feed #2)
that's what I call hot weather [krat]
2:00pm via Twitter

July 23rd

twitter (feed #2)
Looking for an (italian|english)<->bulgarian dictionary [krat]
2:05pm via Twitter
twitter (feed #2)
home, sweet home. [krat]
10:10am via Twitter

July 22nd

twitter (feed #2)
Heading to bulgaria (sunny beach) this summer. Not one of the classical holidays places, that's for sure. [krat]
8:50am via Twitter

July 19th

twitter (feed #2)
I hate hotels. [krat]
2:32pm via Twitter

July 17th

twitter (feed #2)
Back in Italy. Discovered this P3 disgusting thing. Want to go back in Spain. [krat]
12:20pm via Twitter

Powered by Lifestream.

Search

« Authored by Giuliani Vito Ivan »