Posts

Showing posts from May, 2015

Sorting is computationally harder than playing chess

I will argue below that sorting of a big array, using only comparison, is inherently harder than solving the problem of choosing the best next move on a chess game. One could say that it is not fair to put in competition a big, however finite, problem like chess with an arbitrary big problem like sorting n elements. Fair enough; the interesting thing is that sorting becomes inherently harder than chess for an "n" that is way smaller than you would expect, like sorting 3000 elements. At least in theory... Sorting takes a minimum of n* log 2 (n) comparisons,  more exactly  log 2 (n!) This is about sorting "by comparison only" and can be proven in 2 step. You can skip to the "chess" part if you already know this. 1. Sorting can be done in  log 2 (n!) comparisons, that is just slightly less than n* log 2 (n). We are used to consider sorting an O (n* log 2 (n)) problem. Actually there are algorithms that can do the sorting with little less t...

Godel and psychological types

“There are two types of people in the world, those who divide everybody into types and those who do not”. I am part of the second type ;) Is the text above true or false?

Backup your photos for 20 years or more - ideas

Image
External hard drives Will you have your digital photos after 20 years from now? Will you regret to not have them? How can you safely store your digital photos in order to still have them in 20 years or more? I am talking, for example, about the pictures or movies that you take with your smartphone or with your digital camera. I know I will want to have them after years. Digital pictures tends to be even more fragile than paper pictures. Do you still have all the digital pictures that you have taken 10 years ago? What if your smartphone gets stolen, or your desktop hard drive fails? What if you delete the pictures by mistake when re-installing the operating system? Here are some ideas that I got when I evaluated the way to keep my pictures for 20 years or more. I am already using some of this methods for my pictures. I am open to other suggestions and comments. General considerations  No single solution for storing digital content is perfectly safe for 20 years or more ...