GithubHelp home page GithubHelp logo

cs-4403-lab-1's Introduction

CS-4403-Lab-1

The task

Every student has a a student number comprised of 7 digits.

Write a short program which randomly generates a 7 digit value and then write some code to test for the following:

  1. Find the first student number which repeats the last two digits of a previously generated student number. Record how many tries it took to encounter this "collision". Run this code 200 times (with different seeds please), record the counts, and present the data in a nice visual. Have a look at https://matplotlib.org/ for some help creating visualizations in Python. There are also some simple examples in my intro notebook.
  2. Repeat for the last three digits.
  3. Repeat for the last four digits.

Consider using a binary array or hashmap.

cs-4403-lab-1's People

Contributors

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