I use this blog as a soap box to preach (ahem... to talk :-) about subjects that interest me.
Tuesday, July 12, 2011
Giza-IQ Test - Questions 3 and 4
Here are two more questions to test your intelligence with mathematical and geometrical problems. The first problem I propose to you today was one of the problems I encountered when in 1967 I attended in Rome the selections for the Italian National Math championship. I qualified for the national championship and there I reached the fifth place, thanks to which I became part of the Italian team sent to the IX International Mathematics Olympiad.
Monday, July 11, 2011
Giza-IQ Test - Questions 1 and 2
As you might know, in 2010 I joined several High-IQ societies. half a year later, I started working on an Intelligence Test. After developing twenty-three questions, as it often happens to me, I lost interest and left it unfinished. As I don’t think I will ever complete it, I will publish the questions in this blog. To see the correct answers, you will have to send me an email or comment online.
Monday, June 27, 2011
Testing for Rare Medical Conditions
I am not a Medical Doctor, but I know enough about statistics to talk about the validity of [some of] the tests currently used to screen for prostate cancer.
Sunday, June 26, 2011
Equinoxes in Canberra
I noticed a discrepancy in Canberra equinoxes that I cannot explain. Perhaps one of you will be able to shed some light on this puzzle.
Wednesday, June 22, 2011
Arrays of Functions in Java
A couple of months ago, shortly after publishing the book Sudoku Programming (also see the post in this blog), I asked myself whether I should have written the programs in Java instead of classic C.
I had chosen C because I thought it would be easier for non-programmers to deal with a procedural language rather than with Object Oriented programming, with its class inheritance and operator overloading. But, looking at the number of functions I needed for the C implementation, I began thinking that in Jva the implementation would probably have been simpler. I simply had to re-develop Solver and Generator in Java. I simply had to do it.
One of the first problems I encountered was how to implement in Java an array of function pointers.
Sunday, May 29, 2011
Tuesday, May 24, 2011
Casualties
Another Australian soldier has died in Afghanistan. It saddens me to think that a hail of nails and ball bearings on a dusty road killed a young, strong, and courageous man. Like most people, I know what it means to lose somebody you care about, and my thoughts go to Sergeant Wood’s wife.
Wednesday, May 4, 2011
Refugees
The members of Mensa Australia exchange ideas via a mailing list.
On May 1st, one of the members posted the following message, under the heading “cost-benefit of refugees”:
To an Economist, cost and benefit is everything.
Sunday, April 24, 2011
Sudoku Programming
I have finally completed my book “Sudoku Programming”.
The purpose of this book is to teach you how to write computer programs to solve and generate Sudoku puzzles. If you love Sudoku and have some knowledge of computer programming, you will have no problem in understanding the code of my Sudoku Solver and Sudoku Generator.
Saturday, April 16, 2011
Code Red
I haven’t been posting anything for a while. I thought, perhaps I can entertain you with a micro-story I wrote last year. It is a slightly modified version of a story that was shortlisted in the “Positive Words” mini-competition of February 2010, open to stories not longer than 100 words. I tell you, it wasn't easy to write a story with a character and a plot in 100 words...
I clench my teeth. The cockpit is a cacophony of beeping sounds. The instrument panel a kaleidoscope of flashing red lights.
“Captain...”
I nod, without taking my eyes off the angry sea of grey before me. With all the checklists exhausted, there is nothing more to say.
Few seconds later, the plane hammers onto the tarmac, its frame jarred by the impact. The engines scream in reverse.
A lineup of fire trucks emerges from the fog on the right side of the runway. This time they will not be needed.
In the back, the passengers erupt into applause.
I clench my teeth. The cockpit is a cacophony of beeping sounds. The instrument panel a kaleidoscope of flashing red lights.
“Captain...”
I nod, without taking my eyes off the angry sea of grey before me. With all the checklists exhausted, there is nothing more to say.
Few seconds later, the plane hammers onto the tarmac, its frame jarred by the impact. The engines scream in reverse.
A lineup of fire trucks emerges from the fog on the right side of the runway. This time they will not be needed.
In the back, the passengers erupt into applause.
Monday, March 7, 2011
KenKen - One more case
Here is one more interesting strategy I discovered when solving one of my CleverClever puzzles.
The four-cell cage on the right shows all possible candidates of each cell. We can discard the 1 of (5,8) because the sum must be even and the three other cells only have even candidates. Then, as the 1 of row 5 can only be in (5,1), we can remove all other candidates from that cell and the corresponding candidates in the other cell of the cage.
Sunday, March 6, 2011
KenKen - A non-trivial case
Solving one of my CleverClever puzzles, I encountered the following configuration:
Suppose that the 112x cage is solved by the combination [8 7 2 1]. Then, the 8 must be in (7,5), because there is already an 8 in either (3,6) or (4,6). But if that is the case, then the remaining three cells of the cage, all in column 6, must contain 7, 2, and 1. This leads to a contradiction, because it would force us to remove the 1s in (2,6) and (8,6), thereby leaving both cells with a 9 as the only possible candidate. Therefore, the 112x cage must be solved with [7 4 2 2] (which, incidentally, means that (7,5) must contain a 2).
I don’t have a name for this strategy, but it is a nice example of a technique that does not (and cannot) occur in Sudoku.
Saturday, March 5, 2011
KenKen Strategies
Most of the strategies used to solve Sudoku rely on the interplay of boxes and lines. Therefore, it is not surprising that they are not transferable to KenKen® (registered trademark of Nextoy LLC).
Wednesday, February 23, 2011
KenKen
Some weeks ago, I discovered the Sudoku-like puzzle KenKen® (registered trademark of Nextoy LLC). In Japanese, Ken means ‘clever’. I say ‘Sudoku-like’ because it consists of a grid to be filled with digits. Like with Sudoku, every digit can only appear once within its row and once within its column. But, instead of square boxes, KenKen® contains cages, which can hold between one and seven (the largest cage I have encountered) contiguous cells. There are no initial clues, but for every cage, the puzzle provides a number and an operation with which the number is to be achieved.
Sunday, February 20, 2011
Watch Your Language!
Intelligent Design is an affirmation of a belief, not a scientific theory. To maintain that Nature is too complex to have evolved on its own and then deduce from such an arbitrary concept that a Creator/Designer must exist is an affirmation of faith, not a scientific statement.
It is important that magazines focussed on popularising Science maintain the highest standards of objectivity, not just in what they say but also in how they say it. Statements that purport to be scientific but are formulated with elements of superstition can have deleterious effects on the minds of the younger readers.
What prompted this tirade is the article by Lauren Monaghan titled “Grand Delusions” that appeared in Cosmos (self proclaimed “Australia’s #1 Science Magazine”) Issue 28 of Aug/Sep 2009. On page 46, it contained the following sentence:
“...we always have — and always will — want to believe in the fantastic. In fact, many scientists believe we are even programmed to do so.” (my italics)
In the same article was also the following statement made by an experimental psychologist:
“Humans are born with brains designed to make sense of the world, and that sometimes leads to beliefs that go beyond natural explanations.” (again, my italics)
Do you see what I mean? The words “programmed” and “designed” imply the existence of a Programmer and a Designer. They should have never appeared in a Science magazine.
Bah...
It is important that magazines focussed on popularising Science maintain the highest standards of objectivity, not just in what they say but also in how they say it. Statements that purport to be scientific but are formulated with elements of superstition can have deleterious effects on the minds of the younger readers.
What prompted this tirade is the article by Lauren Monaghan titled “Grand Delusions” that appeared in Cosmos (self proclaimed “Australia’s #1 Science Magazine”) Issue 28 of Aug/Sep 2009. On page 46, it contained the following sentence:
“...we always have — and always will — want to believe in the fantastic. In fact, many scientists believe we are even programmed to do so.” (my italics)
In the same article was also the following statement made by an experimental psychologist:
“Humans are born with brains designed to make sense of the world, and that sometimes leads to beliefs that go beyond natural explanations.” (again, my italics)
Do you see what I mean? The words “programmed” and “designed” imply the existence of a Programmer and a Designer. They should have never appeared in a Science magazine.
Bah...
Sunday, February 6, 2011
GLUT in C with Eclipse on the Mac
For the past couple of months, for my book on Sudoku, I have been writing C programs with Eclipse running under Mac OS.
Subscribe to:
Posts (Atom)



