Computer Science, asked by banerjeeshri3223, 1 year ago

State true or false. Sum of ascii values of two anagrams is always same.


Anonymous: ___k off

Answers

Answered by mahekvats
0

I have this idea (using C language) for checking whether two strings formed from ASCII letters are anagrams of one another:

Check if the strings are the same length.

Check if the sum of the ASCII values of all chars is the same for both strings.

Check if the product of the ASCII values of all chars is the same for both strings.

I believe that if all three are correct, then the strings must be anagrams of one another. However, I can't prove it.

Hope this helps...

Answered by ansiyamundol2
0

Answer:

The given statement is true. Sum of ASCII values of two anagrams will always be the same.

Explanation:

ASCII : The most used character encoding system for text data in computers and on the internet is ASCII (American Standard Code for Information Interchange).

There are unique values for 128 alphabetic, numeric, or special extra characters and control codes in normal ASCII-encoded data.

Since sum of ASCII values will be the same for the same set of letters,  sum of ASCII values of two anagrams will always be the same.

Similar questions