Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 1.56 KB

binarytree.md

File metadata and controls

33 lines (30 loc) · 1.56 KB

Tree

  • Vanilla Tree
    • A collection of special values (a.k.a. nodes) that points to others
    • refer to linked list
  • Zipper Tree
    • a node and its context
    • context: a collection of "breadcrumbs" that leads to the node
      • why: a node itself can only go to any of its children; its breadcrumbs enable path to parent and siblings
      • structure: each node has its own breadcrumbs, resulting the context to be a list or a recursive struct
    • zipper concept can also be applied to other structures e.g. linked list

Quizzes