~/talk

Functional Sudoku Solver

Talkat Devoxx UK 2017 · 2017-05-11..05-12· [scala, functional-programming]
links:none on file
slides:none on file

Builds a Sudoku solver in Scala that models a 9x9 grid as a Vector[Vector[Cell]], uses immutable Vector with zipWithIndex, grouped and transpose to extract rows columns and 3x3 squares, and represents cells as either Fixed(value) or Undetermined(candidates). Implements row/column/square checks and a filter step that removes impossible candidates and promotes size-1 cells to fixed ones. Claims it solves many puzzles (tested on 100 simple examples) but no backtracking, so it fails on hardest grids.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:47Sudoku rules explained
  3. 1:08Case classes in Scala
  4. 2:31Vector library overview
  5. 4:18Grouping operator for Sudoku
  6. 5:42Tuples and zip with index
  7. 6:24Transpose operator explained
  8. 6:45Data modeling for Sudoku
  9. 8:09Row and column validation
  10. 8:50Square validation logic
  11. 9:53Filtering Sudoku grid
  12. 12:21Q&A on solvability
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.