Skip to content

Conversation

@theplatypus
Copy link
Owner

Summary

  • rewrite Graph.to_tree, Tree.enumerate_nodes, and Tree.score_tree to use iterative DFS
  • add new BFS/DFS helpers on graphs and trees
  • keep recursive versions for benchmarking and create a small benchmark script

Testing

  • python3 -m compileall -q scott
  • PYTHONPATH=. python3 test/bench/bench_recursion.py | head -n 20

https://chatgpt.com/codex/tasks/task_e_68592c87ace4832fa12ca256a245431d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants