Select the asymptotic worst-case time complexity of the following algorithm:AlgorithmInput: a1, a2, ..., an, a sequence of numbersn, the length of the sequencex, a numberOutput: ??For i = 1 to n-1For j = i+1 to nFor k = 1 to nIf ((ai)^2 + (aj)^2 = (ak)^2) Return( "True" )End-forEnd-forEnd-forReturn( "False" )a. ?(1)b. ?(?)c. ?(?2)d. ?(?3)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here