X_eTaL Algorithms

Classic algorithms written in X_eTaL, the eXperimental Extensible Typed Array Language, three ways side by side (the textbook way, the functional way, the array way), each checked against its laws, its execution recorded so it can be replayed. Every page runs X_eTaL in your browser (WebAssembly); nothing runs on a server.

Libraries

LibraryWhatPage
Processesfactorial and Fibonacci as computational processes: recursive, iterative, tree recursion, as arrayslive
Prefixthe running total written out: scans, differences, range sums and updates, Hillis-Steele and Blelloch scans level by levellive
Bisectsearching written out: linear and binary search with every probe, lower and upper bounds, exponential and interpolation searchlive
FixedPointfixed points, half-interval and Newton's methodsnext
Sortingsorts written out, with every state and countplanned
Windowssliding windows, two pointers, maximum subarrayplanned

Related

The X_eTaL playground · X_eTaL demos · X_eTaL libraries