Menu building pattern
I’m having troubles getting my head around the active-state handling of a menu when the menu isn’t used for routing.
Performing a Depth First Search iteratively using async/parallel processing?
Here is a method that does a DFS search and returns a list of all items given a top level item id. How could I modify this to take advantage of parallel processing? Currently, the call to get the sub items is made one by one for each item in the stack. It would be nice if I could get the sub items for multiple items in the stack at the same time, and populate my return list faster. How could I do this (either using async/await or TPL, or anything else) in a thread safe manner?
Performing a Depth First Search iteratively using async/parallel processing?
Here is a method that does a DFS search and returns a list of all items given a top level item id. How could I modify this to take advantage of parallel processing? Currently, the call to get the sub items is made one by one for each item in the stack. It would be nice if I could get the sub items for multiple items in the stack at the same time, and populate my return list faster. How could I do this (either using async/await or TPL, or anything else) in a thread safe manner?
How exactly is an Abstract Syntax Tree created?
I think I understand the goal of an AST, and I’ve built a couple of tree structures before, but never an AST. I’m mostly confused because the nodes are text and not number, so I can’t think of a nice way to input a token/string as I’m parsing some code.
How exactly is an Abstract Syntax Tree created?
I think I understand the goal of an AST, and I’ve built a couple of tree structures before, but never an AST. I’m mostly confused because the nodes are text and not number, so I can’t think of a nice way to input a token/string as I’m parsing some code.
Which data structures and algorithms should I consider for a directed rooted tree that has high churn?
I need to represent a directed rooted tree in memory.
Which data structures and algorithms should I consider for a directed rooted tree that has high churn?
I need to represent a directed rooted tree in memory.
Data structures and algorithms for a directed rooted tree with inherited properties?
I need to represent a directed rooted tree in memory. The caveat is, that nodes have properties.
Data structures and algorithms for a directed rooted tree with inherited properties?
I need to represent a directed rooted tree in memory. The caveat is, that nodes have properties.
In which of the following tree traversal all the child nodes are visited first before the parent node [closed]
Closed 9 years ago.