Ask a Question

Which object search strategy is better?

SOLVED
automation_ph
Occasional Contributor

Which object search strategy is better?

Which is better - Depth-first or Breadth-first?

 

I already scanned through the documentation (link below) and already compared both by running a simple script, but I don't see much time difference.

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.h... 

Any thoughts on which would be better on certain occasions?

1 REPLY 1
rraghvani
Champion Level 3

Best to leave it as default.

 

If you were to use the Find method; starting from the top most node and searching for a node at the bottom (height tree is 40), that's when you'll see differences. See Binary search tree

cancel
Showing results for 
Search instead for 
Did you mean: