I want to know which search algorithm does lsearch in tcl uses in the background. Also, if the list is sorted and we have not given the option -sorted in the lsearch, does it still uses binary search to perform the search. And if there is any way to make lsearch more efficient, Do let me know.
I tried different cases and i am still confused as which way is the most efficient.