Browse Source

switch function

master^2
Charles Reid 9 months ago
parent
commit
008e1daec5
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      tries.py

+ 3
- 4
tries.py View File

@@ -233,8 +233,7 @@ class TryTrieTree(object):
node.count = len(large_children)


def trie_search(n):
verbose = False
def trie_search(n, verbose=False):

words = get_words()
words = words[:n]
@@ -296,7 +295,7 @@ if __name__=="__main__":
if n > 5757:
n = 5757

#_,_ = trie_search(n)
_,_ = trie_search(n, verbose=True)

trie_table()
#trie_table()


Loading…
Cancel
Save