View Single Post
Old Apr 26th, 2006, 4:07 AM   #11
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
iteration > recursion usually...

I don't see how a binary tree is better than a linear comparison for checking if two strings are equal. I understand if you're searching through sorted data, but binary tree or linear comparison, you still have to compare the whole of each string
Jimbo is offline   Reply With Quote