in reply to Re^2: Check if string A and B are made up of same chars
in thread Check if string A and B are made up of same chars
Like
For instance a linear approach like mine will most likely dominate for longer strings, which are equal.
But how likely are a bunch of totally random long strings ever to be equal???
That's a microscopic chance, and any algorithm which is managing to opt out as early as possible will dominate, little matter the complexity of the approach in total.
define the problem space and provide a generator to create representative input.
write a Benchmark suite based on this input.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|