Skip to content

How to traverse? #4

@trans

Description

@trans

I am trying to utilize MDAG as the data structure for an optimized Levenshtein distance function as explained here. The MDAG takes the place of a Trie in the original definition. But I'm running into a problem because I don't understand how to traverse the graph. For example I need to translate this Python code to the equivalent Java where trie becomes mdag.

for letter in trie.children:
    searchRecursive( trie.children[letter], letter, ... )

So, what's is the general pattern for traversal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions