Suppose a step in an algorithm must examine every possible (nonempty) subset or combination of n nodes. Show that the complexity of this step is O (2n).
Suppose a step in an algorithm must examine every possible permutation of n nodes. Show that the complexity of this step is O (n!).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here