Please enable JavaScript.
Coggle requires JavaScript to display documents.
BST, 20 (left, right), 10 (left, right), f (b, a), f (b, c), checkBST(20,…
-
-
-
-
-
checkBST(20, null, null)
On the left hand side
(min , MAX <=20)
-
On the right hand side
(min > 20, MAX )
-
weave
first [ 5, 2, 7], second [ 20, 30], prefix [10]
first [ 2, 7], second [ 20, 30], prefix[10, 5]
first [7], second [ 20, 30], prefix[10, 5, 2]
first [ ], second [ 20, 30], prefix[10, 5, 2, 7]
first [7], second [30], prefix[10, 5, 2, 20]
first [7], second [30], prefix[10, 5, 2, 20]
first [ ], second [30], prefix[10, 5, 2, 20, 7]
-
first [7], second [ ], prefix[10, 5, 2, 20, 30]
-
-
first [2, 7], second [ 30], prefix[10, 5, 20]
first [7], second [ 30], prefix[10, 5, 20, 2]
first [], second [ 30], prefix[10, 5, 20, 2, 7]
-
first [7], second [ ], prefix[10, 5, 20, 2, 30]
-
first [2, 7], second [ ], prefix[10, 5, 20, 30]
-
first [5, 2, 7], second [30], prefix[10, 20]
first [2, 7], second [30], prefix[10, 20, 5]
first [7], second [30], prefix[10, 20, 5, 2]
first [ ], second [30], prefix[10, 20, 5 , 2 ,7]
-
first [7], second [], prefix[10, 20, 5, 2, 30]
-
first [2, 7], second [], prefix[10, 20, 5, 30]
-
first [5, 2, 7], second [ ], prefix[10, 20, 30]
-
-
-
- rule
all left data <= current.data < right data
-
-
-
- ex1
projects: a, b, c, d, e, f
dependencies: (a, d), (f, b), (b, d), (f, a), (d, c)
outputs: f, e, b, a, d, c
-
- ex2
projects: a, b, c, d, e, f, g
dependencies: (f, b), (a, e), (c, a), (f, c), (b, a), (d, g)
outputs: f, d, b, c, g, a, e