Author
Stoyan Ivanov Dimitrov
Recent research
- AI & ComputingOpen access
BFS versus DFS for Fixed-Level Targets in Ordered Trees
Abstract. We find the average time complexity of the breadth-first search (BFS) and the depth-first search (DFS) algorithms, when one searches for a target node selected uniformly at random among all nodes at level [Formula: see text] in the set of ordered trees with [Formula: se...