~/lightning

Lightning Talk: Simple Compile Time Dynamic Programming

Lightningat C++ on Sea 2025 · 2025-06-23..06-25· [compilers-and-language-design]
slides:none on file

Uses constexpr functions with plain arrays and loops to run bottom-up dynamic programming at compile time, building a DP cost matrix and a split-point matrix and returning the split table. Demonstrates matrix chain multiplication and a compile-time graph shortest path example. Benchmarking compiles a 12-matrix chain and shows the naive runtime at 172 ms versus the compile-time-optimized parenthesization at 9 ms, proving the technique produces correct, large speedups.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.