Giter Club home page Giter Club logo

words_test's Introduction

#words_test By Brian Stone

##What is word_test? A program used to solve the following problem: Write a program which, given a dictionary, generates two output files, 'sequences' and 'words'. 'sequences' should contain every sequence of four letters (A-z) that appears in exactly one word of the dictionary, one sequence per line. 'words' should contain the corresponding words that contain the sequences, in the same order, again one per line.

###Requirements:

  1. Ruby 2.0+ installed

###Getting Started

  1. Clone words_test
  2. Run ruby word_program.rb
  3. Pass in dictionary.txt
  4. View created files

###Additional Files dictionary.txt Contains a large number of words and should be used to achieve the final solution.

test_dict.txt Contains a small number of words used for testing on a smaller scale.

word_program_demos.rb Contains similar code as word_program.rb, but includes small tests for clarification. Can be run seperately if needed.

sequences Sequences is created after word_test is finished running and contains the desired 4 letter sequences.

words Words is created after word_test is finished running and contains the words corresponding to each 4 letter sequence.

words_test's People

Contributors

brianstone avatar

Watchers

 avatar  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.