1891
GB
Aho-Corasick algorithm is used for?
IN
अहो-कोरासिक एल्गोरिथम का उपयोग किसके लिए किया जाता है?
A
Single pattern matching
एकल पैटर्न मिलान
B
Multi-pattern string matching in O(n+m+k) time
O(n+m+k) समय में बहु-पैटर्न स्ट्रिंग का मिलान
C
Sorting strings
तारों को क्रमबद्ध करना
D
Compression
दबाव
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Aho-Corasick finds all occurrences of multiple patterns simultaneously in O(n+sum of pattern lengths+matches).
व्याख्या (हिन्दी)
अहो-कोरासिक O(n+पैटर्न लंबाई का योग+मिलान) में एक साथ कई पैटर्न की सभी घटनाओं को पाता है।