Coder Social home page Coder Social logo

csc212associations's Introduction

CSC212Associations

Tree and Hash assignment for CSC212 S2020 (remote).

About this Assignment

This assignment has fewer missing methods than our previous assignments but there's comparatively more content, and more thinking involved in each. All the tree methods require thinking about the recursive structure.

  • IntBST - a binary search tree storing a set of integers.
    • TODO: implement BSTNode.addToSortedList (in-order traversal)
    • TODO: implement BSTNode.getHeight - recursive height-calculation.
    • TODO: implement BSTNode.contains - recursive search for a specific value (insert/remove done for you).
  • IntExpr - a "mathematical" expressions tree that evaluates over integers.
    • TODO: implement BinaryExpr.evaluate for op=+,-,/,*, and %. IfExpr and UnaryExpr are examples.
  • StrIntHashMap - a hashmap with singly-linked-lists as buckets.
    • TODO: implement StrIntHashMap.get (easier), and StrIntHashMap.put (medium). StrIntHashMap.remove (hard) is completed for you as a rosetta stone for how the data structure works.

Grading (Automatic)

Right now, when I run all the tests in this project, I get the following output:

Tests run: 33, Failures: 0, Errors: 21, Skipped: 0

So there are 12 passing tests, and 21 failing tests.

Your score on this assignment will range up to 100% -- the fraction of the tests that pass on your code (minus the tests that already pass), provided:

  1. you do not use uncited online resources.
  2. there are no code compilation problems with your code (red lines or Problems in Eclipse).
  3. you do not rename any methods or modify the tests in any way, and
  4. you resolve any infinite loops in your code (better to comment out that method and have it crash than run forever -- it prevents other tests from running.

csc212associations's People

Contributors

jjfiv avatar

Watchers

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