0
$\begingroup$

This question is asking for the pseudocode mainly:

Design an algorithm that would play "Word Game." In Word Game an English word is supplied, then one is supposed to form as many words that are at least 4 letters long as one can from the letters. If the word was "combinatorics " we get:

antics, arts, boast, etc.

The design should be in high-level terms. Assume avail. of an online dictionary that permits O(1) lookups, that is, the amount of time is not affected by word length. With this assumption, estimate the time complexity of solution in terms of O(f(n)), where (f(n) is a function of n, the length of the given word.

I'm stumped overall, also am not sure that is meant by "complexity of solution in terms of O(f(n))"

Thanks so much

1 Answers 1

2

I think the coding question is off-topic here, and there are other sites for it. To say the complexity is, say, $O(n^2)$, is to say that the number of operations (lookups and comparisons and such) that you have to do is, for large $n$, less than $Cn^2$ for some constant $C$.