Explore BrainMass

Explore BrainMass

    Write an algorithm

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    In English like pseudo-code, or structured English -- just to make sure everyone can read it; write an algorithm to determine if a string is a palindrome. A palindrome is a word or phrase that is spelled the same whether you are reading it forwards or backwards (ex. race car, Madam I'm Adam). Your algorithm should ignore spaces and punctuation. Make sure to clearly state your assumptions before presenting your answer and to justify your use of data structure: what data structure did you choose (from lists, stacks, queues or trees) and why, and briefly explain why you did not choose the others.

    See the attached file.

    © BrainMass Inc. brainmass.com December 24, 2021, 6:08 pm ad1c9bdddf
    https://brainmass.com/computer-science/trees/formulating-algorithm-93809

    Attachments

    Solution Preview

    Please see the attached file.

    In English like pseudo-code, or structured English -- just to make sure everyone can read it; write an algorithm to determine if a string is a palindrome. A palindrome is a word or phrase that is spelled the same whether you are reading it forwards or backwards (ex. race car, Madam I'm Adam). Your algorithm should ignore spaces and punctuation. Make ...

    Solution Summary

    An algorithm is formulated in the solution.

    $2.49

    ADVERTISEMENT