~/talk

Spontaneous Swift Sudoku Solving

Talkat try! Swift NYC 2017 · 2017-09-05..09-06· [ios]
slides:none on file

Live-codes a working Sudoku solver in Swift that first applies constraint propagation (fill cells with a single candidate) and then a recursive backtracking brute force that picks the unsettled cell with the fewest candidates to prune the search tree. Uses Swift’s Sequence/Collection protocols for indexing and filtering, models failures with Swift error handling (a consistency error to reject branches), and relies on deep copy via structs to mutate trial boards. Optimization yields roughly a 3–4× speedup and produces solved boards within seconds.

AI-written summary · about

  1. 0:00Start
  2. 8:18Sanity Check
  3. 11:04Naked Twin Strategies
  4. 12:37The Naive Solver
  5. 12:50Strategy
  6. 16:08Consistency Error
  7. 16:43Recursion
  8. 18:00Optimization
  9. 21:12Swift Features
  10. 21:49Swift's Sequencing Collection System
~/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.