Code Monkey home page Code Monkey logo

anagram_spotter's Introduction

Anagram Spotter

This C program determines whether two input strings are anagrams. It encompasses fundamental concepts such as standard input parsing, conditionals, string manipulation, pointers, and modularisation of functions. The repository also emphasises a well-organised folder structure for clarity and maintainability and provides the corresponding makefile.

Getting Started

  1. This program is designed for Linux. For instructions on creating executables for other platforms, please refer to additional resources.

  2. Clone or download the repository to your local machine.

  3. Open a terminal and navigate to the project directory.

  4. Execute the following commands:

    1. To build the program and ensure the program is up-to-date, use the command make.
    2. To run the program, execute ./run.

Method

The method for identifying anagrams follows these steps:

  1. Lexicographical Filtering: Remove non-alphabetic characters from both strings.
  2. Lexicographical Sorting: Sort the remaining alphabetic characters in both strings in lexicographical order using the bubble sort algorithm.
  3. Comparison: Compare the cleaned strings; if they match, the input strings are considered anagrams.

Examples

  1. Anagram
enter string 1: slot machines
enter string 2: cash lost in 'em
anagram
  1. Not an Anagram
enter string 1: chicken burger
enter string 2: juicy peach
not an anagram

Coming Soon

We have exciting plans for future updates to enhance this project. Keep an eye out for upcoming features, including:

  • Unit Testing: We are considering the implementation of unit testing framework to ensure individual components of the program function correctly in isolation.
  • Acceptance Testing: We are exploring the introduction of acceptance tests to verify that the program meets specified requirements and behaves as expected.
  • User Stories: We aim to incorporate user stories to better understand and prioritise user needs, ensuring a more user-centric development process.

anagram_spotter's People

Contributors

sunnygarf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.