Friday, March 28, 2025

A Poker Hand's A Clue (Eric Wright, The Last Hand, 2001)

Eric Wright. The Last Hand (2001) Charlie Salter is approaching retirement, and has been assigned office duties.  An apparently simple murder case turns out not to be. Salter gets the case because one of the people close to the victim wants him to do it. He’s assigned Terry Smith, a brand new constable, an immigrant from Glasgow, to work with him. After a lot of palaver and fact checking, we find out what we probably inferred around the quarter mark: it was a passion-driven murder. A very large pile of misleading information and surmise has to be cleared away, mostly because a lot of it, if true, would implicate a lot of important legal people in corruption and scandal.

A good read, but not a great one. Salter goes off into the sunset of retirement happy that he’s played one last hand. A poker game figures in the solution by providing the clue that unravels the knot.

OK, that’s enough cliches. I enjoyed the book because I like the Salter series. The book could have stood a lot more story about Salter and Smith.  **½

Tuesday, March 25, 2025

Nasturtium

 


September 2009. This was a test of the close-up capability of my then-new Canon SX-20 digital camera.

Sunday, March 09, 2025

The Library of Babel (The Universal Library) (long read)


Some thoughts on the Universal Library problem

The problem was fictionalised by Luis Borges. It may be stated thus: Can we specify a procedure for writing a Universal Library? A universal library contains all texts ever written and ever to be written, in all the languages that have ever and will ever be spoken, and many more that will never be spoken by anyone. The paradoxical answer to this question is yes, and several proofs exist that such a library is not only possible, but is of a finite size, albeit a very large one. One such procedure (adapted from one described by Martin Gardner) is the following:

Suppose a book of 100 pages of 100 lines of 100 characters each. Each such book contains a total of 10^6 characters, including the space. Using the Latin alphabet in upper and lower case (52 characters), 7 punctuation marks and the space, and 10 numerals bring the total to 70 characters. The total number of books, if each contains exactly one permutation will be 70^(10^6), a very large number. It is so large that if every atom in the universe were a printing machine printing at the rate of one character per second, it would take many lifetimes of our universe to print all the books.

Clearly, very, very large library. Does this library in fact contain all possible books?

Each book in the library is a specific combination of characters. Each such combination is 10^6 characters long. Given that any printed book is a combination of characters, that combination will occur at least once somewhere in the library. A book shorter than 10^6 characters will occur many times, since there will be (100-n)^(10^6) permutations of the characters filling out the book to 10^6 characters.

The same consideration applies to books not yet written, for each such book is a combination of characters. Books that will never be written by anyone will also occur in this library. And since all spoken languages can be represented by some scheme of matching characters to sounds, books written in all possible spoken languages will occur in this library.



This summary proof shows that all books ever written, ever to be written, and never to be written occur in this library, many of them more than once. Since every book can be printed with typographical errors, all possible combinations of typographical errors will also occur. In short, not only will all possible books occur, all possible variations on each book will occur. What’s more, a very large proportion of the books will be nonsense in any language, including languages not spoken on Earth (if there are such.) That includes Klingon, and any other fictional language.

This Universal Library is too large. It’s clear that “too large” means not only “utterly infeasible”, it also means “containing too much nonsense.” But mulling over the consequences of the procedure for constructing the library is a useful exercise in handling very large numbers, numbers that are unimaginably large. The Universal Library problem shows that we can conceive of entities that we cannot imagine, and that we can reason accurately about them.


Can the Library be made smaller? Yes, by using an encoding scheme that compresses the data. One might work as follows.

Suppose we use binary code. The we use only 2 characters, and the size of the library will be 2^(10^6), still a very large number. Is it smaller than the library using 60 characters? Yes. The fraction is [2^(10^6) / 70^(10^6)], a very small fraction. 

That’s still enormous, though. Is it enormous enough to contain all possible books? Paradoxically, yes. Every character will be encoded in binary, and hence every combination of characters will occur as a combination of binary characters. What’s more, since binary code can be represented by some combination of alphabetic characters (e.g, a for 1, b for 0), this binary-coded Universal Library will be included in the alphabetic one, once for every encoding of the binary characters. For example, (a,b), or (one, zero) and their equivalent in every possible, known, and unknown language. No wonder encoding the universal library using the alphabet is so inefficient.

Hence the supposedly larger set of books containing every possible combination of 70 characters will be contained in the smaller set of books containing every possible combination of only two characters. Thus, the library utilising 70 characters encodes its information very inefficiently. Can we improve that efficiency?


Suppose we limit ourselves to English books. Since any conceivable language should be translatable into English, surely we can reduce the size of the library? Yes, we can. We need only ensure the inclusion of every combination of characters that represents an English translation of a book written in some other language. But our multilingual library would include all translations of all books into every language. Limiting ourselves to one language to represent all possible books omits those multiple translations. If there are L possible languages, then there are L! translations of all books into all languages. Thus limiting ourselves to one language, the library’s size will be  {[2^6(10^6)]/L!}. This will be a fraction of the multilingual library. But it will still be enormous.

Nevertheless, we can estimate its size. Suppose there are 500,000 English words. Suppose the average length of an English word is 10 characters, including one space. Then each of our English books of 10^6 characters will have an average of (10^6)/10 or 10^5 English words. The size of this library (in binary characters) will be 2^(10^5) books. This is still very large: it’s [2^(10^6)]/[2^(10^5)], which is 10% smaller than the complete library. Not much of a saving. What’s more, it will be this size regardless of the total number of languages.



Wednesday, February 19, 2025

AI: A Conceptual Problem


AI is really a conceptual problem.

What is "human intelligence"? I think for most people it's a fuzzy concept combining self-awareness, reasoning, information processing, problem solving, symbol manipulation, insight, etc. In other words, not clear enough to make good sense when thinking about machine intelligence.

What is "thinking"? ChatGPT seems to think, but all it does it string together words and phrases and sentences, based on some probability calculations that it made during its training. I've tried it several times, and what I notice about it is that it uses vast amounts of cliche. Which is not at all surprising, since cliches by definition are more likely to occur in text than original tropes. Its output makes sense, but it's yawn-inducing boring.

On the other hand, I think all those processes, plus processes not yet understood or recognised, are necessary for sentience and self awareness. Will machines get there? Maybe. The real danger is that we will confuse their making sense with wisdom, and rely on them for to do things only humans should do. Such a judge guilt and innocence.


Footnote: The most common imagery of robots shows them as humanoid. But almost all robots currently at work are machines that look nothing like human beings. They're basically arms.





Monday, February 17, 2025

Financial Shenanigans: The Roaring '80s (Smith, 1988)

Adam Smith. The Roaring ‘80s (1988) “Adam Smith” (George Goodman) was a financial adviser with a knack for story-telling.  For some time he told those stories for Esquire and other magazines. This book is one of several that collected his columns. He understands his subject, and he knows enough people in the moneysphere that he can always get the interview that will clarify the current economic crisis or hiccup. And most crises turn out to be hiccups. His style is breezy (for once the cliche fits), a mix of high, medium, and low-level explanation, and illustrative anecdotes. Lots of anecdotes. The effect is that, at least while you’re reading about it, the most abstruse economic theory seems plausible. Or not, depending on Smith’s thesis.

What Smith demonstrates most, though, is that economics isn’t just about the money, and that collectively we have at best a confused mess of notions about finance and the economy generally. At worst, we suffer from a mess of contradictory superstitions, chief of which are the ones surrounding the concept of a free market. Smith’s accounts of financial shenanigans make it quite clear that all markets are distorted by players with market clout. And that these players all eventually succumb to the temptation to use their clout to make the market work for their exclusive benefit. Financial crime may lack gore, but there's no shortage of victims.

A page turner. The time frame is the Reagan years, plus and minus, and all that’s changed since then is that the libertarians have more clout than ever. They will finish the work of economic destruction that began under Reagan. That destruction did not succeed. Smith (and his group of financial gurus) predicted the financial crisis that hit in 2008. Without government bailouts, that crisis would have destroyed the American financial industry. This time, with the government apparatus being systematically gutted, there may be nothing to save the us from the wreck.

Recommended. ****

Wednesday, February 12, 2025

Happy Rockers Help Solve Crime (I Only Read Murder, 2023)

Ferguson, Ian and Will. I Only Read Murder. (2023) Miranda Abbott, aka Pastor Fran of TV crime series fame, a wise fool of an actor who’s past her prime and bankability, rides to Happy Rock, Washington, on a bus (!) when summoned by her (soon-to-be ex-) husband. He operates a bookshop whose name supplies the title for the novel. Miranda becomes entangled in an amateur play productions, and when the lead dies after ingesting real poison, she must use what she has learned from her role as amateur sleuth to untangle the murderous knot. Which she does, and she gets her husband back, too (you didn’t think it would end otherwise, did you?)

A mildly amusing entertainment, which I think would work better edited down to about two-thirds of its length. Or maybe not. Happy Rock is a bucolic place, where people live at half-speed, so the laid-back pace of the story matches the ambience. And the Happy Rockers are much wiser and more charitable than Miranda realises.

The Fergusons are Canadian, so why have they set this novel in the USA? Are they angling for a TV series? What a hook: A TV series featuring an amateur sleuth who acted in a TV series.... Maybe they should angle for salmon instead. The fishing is good on the Tillamook river, they say.

Recommended for any mystery fan. **½

X (is for Unknown) (Grafton, 2015)



Sue Grafton. X. (2015) A rambling novel with several subplots. The main one ends with Kinsey’s near-death (usual) and an unresolved crime (unusual). All the regulars appear, even Dietz, who supplies a crucial (but distant) clue. 498 pages in the paperback version, which shows the publisher let Grafton write as she wished. What she wished was a kaleidoscopic view of the world she had created. As if to remind herself. She died two years after the publication of this novel.

A good read. ***

A Poker Hand's A Clue (Eric Wright, The Last Hand, 2001)

Eric Wright. The Last Hand (2001) Charlie Salter is approaching retirement, and has been assigned office duties.  An apparently simple murd...