3 ms·
Sorry, what optimization are you talking about? If you're just path compression, then I don't think this works because you miss out on generating failure links
by saagarjha 8y ago
Sorry, what optimization are you talking about? If you're just path compression, then I don't think this works because you miss out on generating failure links as you go along.
- chillee 8y agoIt basically is path compression. You still need to maintain failure links, but at every step, when you step up your parents to find all matches, you jump directly to leaves.