This was the first.
Before I read Tolkien at the suggestion of the wonderful Miss Reese, my teacher for my last year of primary school; before I pulled Diana Wynne Jones, Alan Garner, Susan Cooper and others from the shelves of Bawtry’s small, but enchanting branch library; before Anne McCaffrey’s DragonSong found me in my school library and set a fire in my imagination. Before all that, I read A Wizard of Earthsea and it stuck with me.
In the last post I handwaved the way I represented bakery formulae in the bakery database, so here’s a little more detail. It helps to think of a bakery formula as a node on a directed acyclic1 graph with weighted edges, where the weights are literally weights. Here’s the graph a for a couple of products