Question: Computer science (math lab) The attached Excel file 3000words.xlsx contains the most important 3000 words in the English language. Two words are said to be

Computer science (math lab)

The attached Excel file 3000words.xlsx contains the most "important" 3000 words in the English language.

Two words are said to be anagrams if they consist of the same letters, but are in a different arrangement.

So, "war" and "raw" are anagrams. "weak" and "wake" are also anagrams. "dare", "dear", and "read" are also anagrams of each other.

Consider the 3000 words in the Excel file. How many of the 3000 words in the Excel file have at least one anagram in the file?

To clarify, if our word list was:

aba abc bbc cab cba cbb ccc

Our analysis would be:

aba - No anagram in the list DOES NOT COUNT abc - Two anagrams in the list, cab and cba, COUNTS AS ONE bbc - One anagram in the list, cbb, COUNTS AS ONE cab - Two anagrams in the list, abc and cba, COUNTS AS ONE cba - Two anagrams in the list, abc and cab, COUNTS AS ONE cbb - One anagram in the list, bbc, COUNTS AS ONE ccc - No anagram in the list, DOES NOT COUNT

So the number of words with anagrams in this 7-word list is 5. Only two of them have no anagrams.

Hint: Two words are anagrams if they become the same when you sort() their letters.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!