What is the complexity of the substring search algorithm in a string, and how is it calculated? Please explain. (the algorithm is damp but simplified as an example and for understanding)
text='bla-bla-this-bla' subtext='this' for i,element in enumerate(text): if element == subtext[0]: if subtext == text[i:i+len(subtext)]: print(i)