Minus two fish

I dedicate this post to Paul Adrien Maurice Dirac

Three fishermen come back from the sea, celebrating the catch of the day. They land their boat and set up camp. After much drinking (rum?), each collapses in their respective tent. Fisherman #1 wakes up and, after relieving himself, decides to get his share of the catch. He counts the fish, realizes it is not a number divisible by three, throws away one fish to the sea correcting the situation, and takes a third of the remaining fish into his tent. Fisherman #2 wakes up later, goes to pee too, and also decides he is going to get his share of the catch. Unaware that Fisherman #1 already took his part, Fisherman #2 wants a third of the fish he sees. It is not a multiple of three, but he throws away one fish and takes a third of the fish and goes to sleep. Fisherman #3 wakes up after, and does the same: he throws away one fish, takes a third of the fish, and goes into his tent.

What is the smallest number of fish for which this would happen?


Признаюсь в страшном:

Читать такой код

public IEnumerator GetEnumerator()
foreach (var element in _elements)
yield return new DynamicXml( element );

Я могу только с дикими тормозами. Мозг каждый раз визуализирует глобальную переменную __foo2d345fa5f, которая держит конкретное состояние конкретного объекта. Как только я визуализирую global state как некое бесформенное облако (можно в штанах) с торчащими из него yield return, жить станет легче. Но это ж как себя надо ломать!

Чувствую, пора дальше осваивать Scheme. Хочу stateless. Ну, максимум монады. Для души.

Множество Мандельброта в стиле Барокко

Крышу сносит, голова после просмотра кружится :)

Пойду писать скринсейвер… :)

смотреть тут:


PS так быстро на скринсейвере оно, конечно, считать не будетъ :) :)

PPS О! Я его на несколько машин распараллелю, у меня есть пяток. Заодно опробую VC2010 CTP :) А может даже через CCR … выбор есть короче. Еще мне Cilk++ рекламировали… :)

Индуктивная логика

Читаю в стэнфордовской энциклопедии статью про индуктивную логику, набираюсь ума.

И нахожу там следующий абзац:

It is now generally held that the core idea of Bayesian logicism is fatally flawed—that syntactic logical structure cannot be the sole determiner of the degree to which premises inductively support conclusions. A crucial facet of the problem faced by Bayesian logicism involves how the logic is supposed to apply to scientific contexts where the conclusion sentence is some hypothesis or theory, and the premises are evidence claims. The difficulty is that in any probabilistic logic that satisfies the usual axioms for probabilities, the inductive support for a hypothesis must depend in part on its prior probability. This prior probability represents how plausible the hypothesis is supposed to be on its own, before the evidence is brought to bear. A Bayesian logicist must tell us how to assign values to these pre-evidential prior plausibilities for each hypothesis or theory under consideration, and must do so in a way that relies only on their syntactic logical structure, or on some measure of their syntactic simplicity. There are severe technical problems with getting this idea to work. Moreover, various counter-examples seem to show that such an approach must assign intuitively quite unreasonable prior probabilities to many hypotheses.

думаю – что-то мне это напоминает…

АААА!!! ВОТ!!!!


Не понимающим английского: увы и ах вам. Лениво переводить.

Data Mining, selected quotes

A data mining system has the potential to generate thousands or even millions of patterns, or rules.

So, you may ask, are all of the patterns interesting? Typically not – only a small fraction of the patterns potentially generated would actually be of interest to any given user.

This raises some serious questions for data mining. You may wonder, What makes a pattern interesting? Can a data mining system generate all of the interesting patterns? Can a data mining system generate only interesting patterns?

To answer a first question, a pattern is interesting, if (1) it is easily understood by humans, (2) valid on new or test data with some degree of certainty, (3) potentially useful and (4) novel. A pattern is also interesting if it validates a hypothesis that the user sought to confirm. An interesting pattern represents knowledge.

(c) Data Mining: Concepts and Techniques. J.Han, M. Kamber


Usability and link design notes :)

Nielsen Norman Group

Beginner’s guide to Search Engine Optimisation

Numerical Recipes in C

TODO: Find out what do they exactly do there:
“Case researchers discover methods to find ‘needles in haystack’ in data”
Create powerful statistical techniques to detect signals”