I have a large string A and a set of relatively small strings B*.
How can I efficiently find the number of occurrences of each string from B* inside A?
I suspect that suffix tree can be used here but I don't know how exactly to do that.
I have a large string A and a set of relatively small strings B*.
How can I efficiently find the number of occurrences of each string from B* inside A?
I suspect that suffix tree can be used here but I don't know how exactly to do that.