MCPcopy Create free account
hub / github.com/tdewolff/canvas / Print

Method Print

path_intersection.go:707–709  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

705}
706
707func (n *SweepNode) Print(w io.Writer) {
708 n.print(w, "", 0)
709}
710
711// TODO: test performance versus (2,4)-tree (current LEDA implementation), (2,16)-tree (as proposed by S. Naber/Näher in "Comparison of search-tree data structures in LEDA. Personal communication" apparently), RB-tree (likely a good candidate), and an AA-tree (simpler implementation may be faster). Perhaps an unbalanced (e.g. Treap) works well due to the high number of insertions/deletions.
712// In any case, measure the amount of finds and inserts/deletes. If finds >> inserts probably AVL is better, if somewhat similar or inserts > finds then perhaps an RB tree (store color in sign bit of node's height).

Callers 1

StringMethod · 0.45

Calls 1

printMethod · 0.95

Tested by

no test coverage detected