A Systematic Approach to Algorithms

Vijay K. Garg · The University of Texas at Austin

LL Playground

Write an LLP program, compile it, and run it — entirely in your browser.

Type or paste an LL program (the same forbidden / advance notation used throughout the book) into the box below and press Compile & run. The page compiles it to JavaScript using the same compiler (llc.py) the book's own demos are built with.

This playground supports LLP programs written with an explicit forbidden (j) : … => advance : … rule (array, linked-list, or in-place form), plus plain guard-free (imperative) LL programs, which step through their assignments and loop iterations instead. See What are LLP Algorithms? for the framework, or Chapter 2 for worked examples.

Loading Python runtime (Pyodide)… this can take a few seconds the first time.
Show compiled JavaScript