---
title: "An algorithm must be seen to be believed. — Donald Knuth Quote #11 | QuotesBy.net"
description: "An algorithm must be seen to be believed. — a quote by Donald Knuth."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # An algorithm must be seen to be believed.

[Donald Knuth](https://quotesby.net/Donald-Knuth)\#11

[Testing](https://quotesby.net/Donald-Knuth/testing/)[Coding](https://quotesby.net/topics/coding/)[Proof](https://quotesby.net/topics/proof/)[Trust](https://quotesby.net/topics/trust/)[Verification](https://quotesby.net/topics/verification/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CAn%20algorithm%20must%20be%20seen%20to%20be%20believed.%E2%80%9D%20%E2%80%94%20Donald%20Knuth%20https%3A%2F%2Fquotesby.net%2FDonald-Knuth%2F11%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CAn%20algorithm%20must%20be%20seen%20to%20be%20believed.%E2%80%9D%20%E2%80%94%20Donald%20Knuth&url=https%3A%2F%2Fquotesby.net%2FDonald-Knuth%2F11%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FDonald-Knuth%2F11%2F)

## About this quote

What does it mean?Algorithms must be tested to be trusted.In plain termsYou must see an algorithm work to trust it.What can you take from it?Test algorithms empirically rather than trusting theory.

### Where it applies

- coding
- testing
- research

### Putting it to work

- run tests
- verify output
- benchmark

### Questions to consider

- How do you prove a solution works?
- When is proof enough?

### Another view

Some logic can be trusted via formal proof.

## More from Donald Knuth

1. > Email is a wonderful thing for people whose role in life is to be on top of things. But not for me; my role is to be on the bottom of things. What I do takes l…

[Permalink to quote \#10](https://quotesby.net/Donald-Knuth/10/ "Permalink to quote 10")
2. > The sun comes up just about as often as it goes down, in the long run, but this doesn't make its motion random.

[Permalink to quote \#12](https://quotesby.net/Donald-Knuth/12/ "Permalink to quote 12")
3. > I can't go to a restaurant and order food because I keep looking at the fonts on the menu.

[Permalink to quote \#9](https://quotesby.net/Donald-Knuth/9/ "Permalink to quote 9")

## Related quotes

1. > Beware of bugs in the above code; I have only proved it correct, not tried it.

[Donald Knuth](https://quotesby.net/Donald-Knuth)[Donald Knuth quote \#2](https://quotesby.net/Donald-Knuth/2/ "Permalink to quote 2")
2. > I don't believe you on the 'Jimmy' story. No, I don't, and I'm going to prove it if it's the last thing I do.

[Bob Woodward](https://quotesby.net/Bob-Woodward)[Bob Woodward quote \#6](https://quotesby.net/Bob-Woodward/6/ "Permalink to quote 6")
3. > Days to come will prove the surest witness.

[Pindar](https://quotesby.net/Pindar)[Pindar quote \#7](https://quotesby.net/Pindar/7/ "Permalink to quote 7")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "An algorithm must be seen to be believed.",
    "url": "https://quotesby.net/Donald-Knuth/11/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Donald Knuth"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Donald Knuth",
            "item": "https://quotesby.net/Donald-Knuth"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #11",
            "item": "https://quotesby.net/Donald-Knuth/11/"
        }
    ]
}
```
