THE MOST ON DOCSITY
Find users

Vector Representation - Data Structures - Exams

Exams, Data Structures

Post: April 2nd, 2013
Description
Main points of this exam paper are: Vector Representation, Pcc Function, Homework Assignment, Class Intervalcollection, Intervalcontaining Method, Methods Calls, Case Running, Null Reference, Private Variable, Running Time
Main points of this exam paper are: Vector Representation, Pcc Function, Homework Assignment, Class Intervalcollection, Intervalcontaining Method, Methods Calls, Case Running, Null Reference, Private Variable, Running Time
-
Embed this document

Report Report

Reason:

Send Message

Login or register to download this document!

If you are already registered, login otherwise Register , it just takes 1 minute!

Uploaded by:

shashidhar_...

shashidhar_p43
Universityuni_5documents_40doc_answ
Embed this document
Get the App
Contents
CS 61B, MT2 Version B, Spring 1999 CS 61B, Spring 1999 MT2 Version B Professor M. Clancy Background Some of the problems on this exam involve intevals of integers. (Note the difference between these intervals and thsoe you worked with in homework assignment 4, which represented intervals on the real number line.) The interval [a,b] represents all the integers that are greater than or equal to a and less than or equal to b. For example, [3,5] represents the set of integers {3, 4, 5}, [-5,-4] represents the set {-5,-4}, and the interval [5,3] represents the empty set. The Interval class is defined as follows. public class Interval { private int myLeft; private int myRight; Constructor. // public Interval (int left, int right) { ... } Return this's left endpoint. // public int left ( ) { return myLeft; } Return this's right endpoint. // public int rightt ( ) { return myRight; } Return a hash value forthis. // public int hashCode ( ) { ... } Return exactly whenthis represents the smae in..

Docsity.com

Learning becomes social!

Authentication required

This feature is reserved for registered user

Register Login

Docsity.com

Learning becomes social!

Authentication required

Hi!
In order to freely download all the documents on Docsity, please register or login:

Register Login