Code Monkey home page Code Monkey logo

hashingpractice's Introduction

This project was created for Algorithms for Bioinformatics at Johns Hopkins University 
as part of the AAP M.S. Bioinformatics degree plan.
This program takes an input file of integers and hashes each integer using either a
midsquare or modulo hashing scheme.

The source code in this assignment can be compiled with Java SE 8 from the command line.
It was constructed using Atom v1.53.0.

To run the program, enter: java HashingMain [inputFile].txt [outputFile.txt] (int)[divisor] (int)[bucketSize]

Note: If output file already exists, new output will be appended to existing file.

For Midsquare hashing, enter a divisor value of 0. For modulo division hashing, enter an integer greater than 0
that is a factor of 120. 
The maximum number of bucket slots is 120. Any bucketsize > 1 will divide the number of
buckets by that amount (i.e. a bucket size of 2 = 120/2 = 60 buckets of size 2.

Each separate input value must be on its own line. Values are processed by line. Any lines in the input file 
containing letters or that are empty will be ignored. Only lines with numbers will be processed.

hashingpractice's People

Contributors

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