Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Scrabble: We\'re given a dictionary of n strings, each with length L characters.

ID: 3532144 • Letter: S

Question

Scrabble: We're given a dictionary of n strings, each with length L characters. Eachstring in the dictionary has an associated number of points. We're also given a set of available characters S (which may include repeats). We'd like to determine if we can select at most k strings from the dictionary which can be simultaneously constructed from S and are worth at least P points total. For example, we may have characters S = A; A;C;C;R; T. We can form CAT and CAR simultaneously, but we cannot form CAT and RAT simultaneously (because there is only one T). Either prove that this problem is NP-Complete, or give a polynomial-time solution.

Explanation / Answer

Please rate me 5 star pleaseeeeeeeeeeee (I would like to help you in anyway related to algorithms)
We can consider this problem as Anagram solver.So lets prove that Anagram solving is NP complete:

f you'd prove that solving anagram finding (not more than polynomial number of times) solves subset sum problem - it would be a revolution in computer science (you'd prove P=NP).

Clearly finding anagrams is polynomial-time problem:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote