Blog
A little... extension for C++
2010-08-23 18:13:44Loops are used on a daily base by almost every programmer. Especially for-loops occur quite often.
Now, have you ever felt it's quite cumbersome to code something like the following:
for (int i=0; i<10; ++i){
do_something_here();
}
while you just wanted to write
10 times {
do_something_here();
}
and wanted C++ to understand it?
Don't worry, here's the solution. Just include this little header file and everything will work fine.
read onFibonacci numbers - the other way
2010-07-07 11:27:55Every programmer comes to the point where he or she must/should/wants to implement a programm for calculating fibonacci numbers. But I think my way is quite a new one.
read onJust a little thought on sums of a specific form
2010-03-22 14:04:51
I just had a nice thought about simple sums of the form
.
An interesting stochastic game (Part I)
2010-03-06 18:23:41We consider the following game played by two players (P1, P2). Both players choose a bitstring of length n (e.g. n=3, then available bitstrings would be 010, 110, 001, 111, and so on). Now a 0/1-coin (i.e. a coin with one side 0 and the other side 1, both occur equally likely) is thrown and the string is recorded. The game ends as soon as the last n cointosses form a string belonging to one of the two players. The player whose string is hit, wins.
read onAn amazon interview question (not completely solved)
2010-02-06 17:49:21Taken from this site:
Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that?
read onPerfect concentration game
2010-01-08 10:35:29Probably everyone knows the game concentration. For those who don't, here's an explanation. This article presents a stochastic problem concerning this game.
read onMaking of a winamp plugin
2009-12-26 18:54:09This post shows the basics of writing a very simple plugin for my favourite music player.
read on(Some of) my projects
2009-12-23 21:50:49In this post I want to present (some of) my (small) projects.
read onDynamic programming - a gentle introduction
2009-10-04 22:38:47Dynamic programming is a quite well-known technique, but often not completely understood. This article provides a basic insight into dynamic programming. It shows some little examples and tries to explain the requirements so that dynamic programming is applicable.
read onSchafkopf-Tutorial
2009-09-06 18:22:19Schafkopf is a very nice bavarian card game. I found a good book about this game via stumbleupon. It can be downloaded here.
German/deutsch: Schafkopf ist ein sehr sch�nes bayerisches Kartenspiel. �ber stumbleupon habe ich ein umfangreiches Buch dar�ber gefunden Es kann hier heruntergeladen werden.
read on