Ciro Santilli OurBigBook.com  Sponsor €¥ 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
This is a bit harder than iterative pre-order: now we have to check if there is a left or right element or not:
  • (START) push current
  • if there is left:
    • move left
  • else:
    • (ELSE) pop
    • visit
    • if there is right
      • move right
      • GOTO START
    • else:
      • GOTO ELSE
The control flow can be slightly simplified if we allow NULLs: www.geeksforgeeks.org/inorder-tree-traversal-without-recursion/

Ancestors

  1. In-order depth-first search
  2. Depth-first search
  3. Tree traversal
  4. Tree
  5. Type of graph
  6. Graph
  7. Discrete mathematics
  8. Area of mathematics
  9. Mathematics
  10. Ciro Santilli's Homepage