from ps3_p2_lib import *
 
"""
    This is the skeleton file for problem set 3, problem 2.
"""
 
def distance(p, q):
    return 0  #return distance 
 
def closest(points, p):
    return [5,5]  #return closest point
 
def nearest_neighbors(points):
    return  [[0,0], [5,5]]  #return pair of points
 
def in_rect(points, p, q):
    return 0   #return number of points
 
cs190c/ps3problems2.py.txt · Last modified: 2008/01/25 11:35 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki