Giter VIP home page Giter VIP logo

assignment_data_structures's Introduction

assignment_data_structures

Buckets and buckets of data!

A Ruby-based data structures assignment for the Viking Code School which uses arrays, hashes, linked lists, structs, graphs and trees

Tamal Riedman

  1. O(1) --simple math to access exact memory location, time won't change with size of data
  2. O(n) --array must be rebuilt to do that
  3. O(n) --low level language needing to rebuild whole array
  4. O(n) --whole string must be gone through, duration directly proportional to length of string
  5. O(n) --same as above
  6. O(n) --must iterate through each item
  7. O(n) --might require checking whole array. lucky if it doesn't
  8. O(n^2) --each item must be sorted through and compared to previous max value
  9. O(n) --each char in string must be gone through to turn into array
  10. O(1) or O(n) --depends on specific hash implementation
  11. O(n) --at the very least, each bucket must be searched

assignment_data_structures's People

Contributors

triedman99 avatar eriktrautman avatar

Watchers

James Cloos 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.