Discover Packages
github.com/truflation/tsn-db
internal
benchmark
trees
package
Version:
v1.1.11
Opens a new window with list of versions in this module.
Published: Nov 19, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func CalculateTreeDepth(qtyStreams, branchingFactor int ) int
type NewTreeInput struct {
QtyStreams int
BranchingFactor int
}
type Tree struct {
Nodes []TreeNode
MaxDepth int
QtyStreams int
BranchingFactor int
}
ToDisplay returns a string representation of the tree
to visualize it here: https://csacademy.com/app/graph_editor/
basically each line must be:
<parent1> <child1>
<parent1> <child2>
<parent2> <child3>
type TreeNode struct {
Parent int
Children []int
Index int
IsLeaf bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.