Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ main
Function
main
dynamic_programming/optimal_binary_search_tree.py:137–140 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
135
136
137
def
main():
138
# A sample binary search tree
139
nodes = [Node(i, randint(1, 50))
for
i in range(10, 0, -1)]
140
find_optimal_binary_search_tree(nodes)
141
142
143
if
__name__ ==
"__main__"
:
Callers
1
optimal_binary_search_tree.py
File · 0.70
Calls
2
find_optimal_binary_search_tree
Function · 0.85
Node
Class · 0.70
Tested by
no test coverage detected