#
Tag Archives: algorithm

Previously, I wrote that I’m skeptical of interpretation as an analytic tool. In physical reality, generally speaking, I think there is a single correct interpretation (more of a *true account* than an interpretation). Every other interpretation is a fiction, usually made obvious by complexity and entropy.

I recently encountered an argument *for* interpretation that involved the truth table for the boolean logical **AND** being seen — if one inverts the **interpretation** of all the values — as the truth table for the logical **OR**.

It turns out to be a tautology. A logical **AND** *mirrors* a logical **OR**.

Continue reading

8 Comments | tags: algorithm, AND gate, boolean logic, computation, computationalism, consciousness, human consciousness, interpretation, logic gate, NAND gate, NOR gate, OR gate, Theory of Consciousness, theory of mind, truth table | posted in Computers, Math, Philosophy

Back at the start of March Mathness I promised the math would be “fun” (really!), but anyone would be forgiven for thinking the previous two posts about Special Relativity weren’t all that much “fun.” (I really enjoy stuff like that, so it’s fun for *me*, but there’s no question it’s not everyone’s cup of tea.)

Trying to reach for something a bit lighter and potentially more appealing as the promised “fun,” I present, for your dining and dancing pleasure, a trio of number games that anyone can play and which might just tug at the corners of your enjoyment.

We can start with **277777788888899** (and why it’s special).

Continue reading

2 Comments | tags: 277777788888899, algorithm, calculation, Collatz conjecture, computation, Mandelbrot, mathematics, multiplicative persistence, Numberphile | posted in Math

Credit where credit is due, both the major ideas in this post come from Fareed Zakaria on his CNN Sunday program, *GPS*. If you follow TV news at all, you know Sunday mornings have such long-running standards as *Meet the Press* (on NBC since 1947!) and *Face the Nation* (on CBS since 1954). (Or was it *Meet the Nation* and *Face the Press*?)

Zakaria is one of the good ones: very intelligent, highly educated, calm and measured. He’s well worth listening to. (I’ve realized one attraction to TV news is the chance to — at least sometimes — hear educated, intelligent talk. It’s a nice respite from most TV entertainment.)

Two things on Zakaria’s last episode really rang a bell with me.

Continue reading

23 Comments | tags: AI, algorithm, Antonin Scalia, cable news, CNN, computer code, DNA, electrons, Face the Nation, Fareed Zarkaria, fire, genetic code, genetics, internet, interweb, language, mechanical physics, Meet the Press, printing press, quantum physics, robotics, TV | posted in Science

No, sorry, I don’t mean the Bletchey Bombe machine that cracked the Enigma cipher. I mean his *theoretical* machine; the one I’ve been referring to repeatedly the past few weeks. (It wasn’t mentioned at the time, but it’s the secret star of the *Halt! (or not)* post.)

The Turing Machine (TM) is one of our fundamental definitions of calculation. The Church-Turing thesis says that *all* algorithms have a TM that implements them. On this view, any two *actual* programs implementing the same algorithm do the same thing.

Essentially, a Turing Machine *is* an algorithm!

Continue reading

8 Comments | tags: Alan Turing, algorithm, Church-Turing thesis, flowchart, state diagram, Turing Halting Problem, Turing Machine, Universal Turing Machine | posted in Computers

The ultimate goal is a consideration of how to create a working model of the human mind using a computer. Since no one knows how to do that yet (or if it’s even possible to do), there’s a lot of guesswork involved, and our best result can only be a very rough estimate. Perhaps all we can really do is figure out some minimal requirements.

Given the difficulty we’ll start with some simpler software models. In particular, we’ll look at (perhaps seeming oddity of) using a computer to *model* a computer (possibly even itself).

The goal today is to understand what a software model is and does.

Continue reading

4 Comments | tags: algorithm, American checkers, checkers, complexity, computer model, computer program, English draughts, Kolmogorov complexity, software, software model, state space | posted in Computers

We started with the idea of *code* — *data* consisting of instructions in a special language. Code can express an *algorithm*, a process consisting of instruction steps. That implies an *engine* that understands the code language and *executes* the steps in the code.

Last time we started with Turing Machines, the abstract computers that describe algorithms, and ended with the concrete idea of modern digital computers using stored-programs and built on the Von Neumann architecture.

Today we look into that architecture a bit…

Continue reading

17 Comments | tags: address bus, algorithm, assembly language, bits, code, computer language, computer program, CPU, data, data bus, RAM, source code, stored program computer, Von Neumann architecture | posted in Computers

Is that you, HAL?

Last time, in *Calculated Math*, I described how information — *data* — can have special characteristics that allow it to be interpreted as *code*, as instructions in some special language known to some “engine” that executes — *runs* — the code.

In some cases the code language has characteristics that make it Turing Complete (TC). One cornerstone of computer science is the Church-Turing thesis, which says that all TC languages are equivalent. What one can do, so can all the others.

That is where we pick up this time…

Continue reading

1 Comment | tags: Alan Turing, algorithm, Church-Turing thesis, code, data, flowchart, lambda calculus, state diagram, stored program computer, Turing Machine, Universal Turing Machine, Von Neumann architecture | posted in Math

The previous post, *Halt! (or not)*, described the Turing Halting Problem, a fundamental limit on what computers can do, on what can be *calculated* by a program. Kurt Gödel showed that a very similar limit exists for any (sufficiently powerful) mathematical system.

This raises some obvious questions: What is *calculation*, exactly? What do we mean when we talk about a *program* or *algorithm*? (And how does all of this connect with the world of mathematics?)

Today we’re going to start exploring that.

Continue reading

7 Comments | tags: Alan Turing, algorithm, binary digits, calculation, Church-Turing thesis, code, computer program, data, information theory, lambda calculus, mathematical expression, Turing Machine, Universal Turing Machine | posted in Math, Opinion

evaluate(2B || !2B)

Hamlet’s famous question, “*To be or not to be?*” is just one example of a question with a yes/no answer. It’s different from a question such as, “What’s your favorite color?” or, “How was your day?” What it boils down to is that the young Prince’s question requires only one bit to answer, and that bit is either yea or nay.

Computers can be very good at answering yes/no questions. We can write a computer program to compare two numbers and tell us — yea or nay — if the first one is bigger than the second one. Computers are also very good at calculations (they’re just big calculators, after all). For example, we can write a computer program that divides one number by another.

But there are questions computers can’t answer, and calculations they can’t make.

Continue reading

2 Comments | tags: Alan Turing, algorithm, calculation, Cantor's Diagonal, discrete mathematics, Halting Problem, Turing, Turing Halting Problem | posted in Computers, Sideband