Follow your curiosity

What discovery has been shared with you?

FACTREE gives you something interesting to discover every day — and something worth talking about together.

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

The Transfer Matrix Method for Counting Walks on Graphs

Quick fact

The transfer matrix method reduces walk-counting to matrix exponentiation: if M is the transfer matrix, then the (i,j) entry of M^k is exactly the number of walks of length k from vertex i to vertex j. This seemingly simple idea powers tools used in statistical mechanics and algorithm analysis.

Why this is interesting

You can often answer the question 'how many paths of length 10 are there?' with a simple matrix multiplication. But how can a matrix know about walks?