in reply to Re^2: True Brute Force Longest Common Sub Sequence
in thread True Brute Force Longest Common Sub Sequence
If you just want to use brute force then using a hash is really cheating as it is already the begining of optimisation.
Have another look. That claim just isn't true.
common still visits every single combination of inputs, so it's brute force. Said nasty embedded loops *are there* and the hash doesn't affect the complexity.
common uses a hash to remove dups, something that isn't even necessary. It actually slows things down, if anything.
Even with the optimized common, said nasty embedded loops *are there* overall and the using the optimized common doesn't affect the overall complexity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: True Brute Force Longest Common Sub Sequence
by tachyon-II (Chaplain) on Nov 26, 2007 at 00:31 UTC | |
by ikegami (Patriarch) on Nov 26, 2007 at 06:35 UTC | |
by tachyon-II (Chaplain) on Nov 28, 2007 at 00:06 UTC | |
by ikegami (Patriarch) on Nov 28, 2007 at 01:13 UTC |