~/talk

Traversing mazes pythonic way and other algorithmic adventures

Talkat PyCon Sette 2016 · 2016-04-15..04-17· [python]
slides:none on file

Shows concrete Python code for representing graphs with adjacency lists vs adjacency matrix and compares time and space tradeoffs, implements unweighted and weighted edges with dicts and sets, and demonstrates traversal by swapping fringe types to get DFS or BFS from the same loop. Provides a memoization decorator and a Pythonic Floyd–Warshall for all‑pairs shortest paths, notes complexity bounds, and recommends using NetworkX and scipy sparse matrices for production.

AI-written summary · about

  1. 0:00Introduction to mazes and graphs
  2. 1:52Algorithm analysis basics
  3. 8:09Graph data structures overview
  4. 14:24Graph representations in Python
  5. 21:58Weighted graph implementations
  6. 23:48Adjacency matrix deep dive
  7. 31:47Choosing graph representations
  8. 32:10Maze traversal fundamentals
  9. 36:57Connected components and DFS
  10. 38:47Depth-first search implementation
  11. 40:54Lazy traversal with yield
  12. 41:15Shortest path algorithms
  13. 43:00All-pairs shortest paths
  14. 45:12Memoization in Python
  15. 46:37Floyd-Warshall algorithm
  16. 48:34Q&A session
~/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.