Posts 81 - 90 of 127

結果: Fun

Brad Efron’s Nontransitive Dice

Do not get involved in a bar bet with Brad Efron and his dice until you have read this.... 続きを読む >>

C^5, Cleve’s Corner Collection Card Catalog 2

I have been writing books, programs, newsletter columns and blogs since 1990. I have now collected all of this material into one repository. Cleve's Corner Collection consists of 458 "documents", all available on the internet. There are... 続きを読む >>

Levenshtein Edit Distance Between Strings

How can you measure the distance between two words? How can you find the closest match to a word in a list of words? The Levenshtein distance between two strings is the number of single character deletions, insertions, or substitutions required to transform one string into the other. This is also known as the edit distance.... 続きを読む >>

“Half Precision” 16-bit Floating Point Arithmetic 5

The floating point arithmetic format that requires only 16 bits of storage is becoming increasingly popular. Also known as half precision or binary16, the format is useful when memory is a scarce resource.... 続きを読む >>

A Roman Numeral Object, with Arithmetic, Matrices and a Clock 3

A MATLAB object for arithmetic with Roman numerals provides an example of object oriented programming. I had originally intended this as my April Fools post, but I got fascinated and decided to make it the subject of a legitimate article.... 続きを読む >>

Bank Format and Metric Socket Wrenches 2

A report about a possible bug in format bank and a visit to a local hardware store made me realize that doing decimal arithmetic with binary floating point numbers is like tightening a European bolt with an American socket wrench.... 続きを読む >>

My Erdös Number and My Trump Number 3

I've long known that my Erdös Number is 3. This means that the length of the path on the graph of academic coauthorship between me and mathematician Paul Erdös is 3. Somewhat to my surprise, I recently discovered that I can also trace a chain of coauthorship to Donald J. Trump. My Trump number is 5.... 続きを読む >>

Morse Code, Binary Trees and Graphs 6

A binary tree is an elegant way to represent and process Morse code. The new MATLAB graph object provides an elegant way to manipulate binary trees. A new app, morse_tree, based on this approach, is now available in version 2.40 of Cleve's Laboratory.... 続きを読む >>

Hypercubes and Graphs

The adjacency matrix of a hypercube demonstrates the new MATLAB graph object.... 続きを読む >>

Patience Chinese Rings Puzzle

MIT's Professor Daniel Frey recently introduced me to an ancient mechanical puzzle known as "Chinese Rings", "Patience", or "Baguenaudier." I have modified Daniel's simulator to produce a new app. The state space of the puzzle forms a hypercube.... 続きを読む >>

Posts 81 - 90 of 127