See the assignment turn-in page (last modified on 23 February 2010) for instructions on turning in your assignment.
The absolute deadline for turning-in Assignment 3 is Saturday, 4 December at 11:30 p.m. It is not possible to turn-in Assignment 3 after the absolute deadline.
Write the method match() that accepts a source binary tree and a pattern
binary tree, and returns the root of an occurrence of the pattern in the
source, if it exists. The pattern tree may occur anywhere in the source tree.
match() is defined in the interface
/export/home/class/cs-305/pa3/TreeMatch.java
The BinaryTree interface used in TreeMatch does not need an
implementation. The BinaryTree interface has already been implemented,
and is part of the jar file.
/export/home/class/cs-305/pa3/pa3.jarby typing
$ java -classpath jar-path/pa3.jar:. main class-name
where jar-path is the path to pa3.jar and class-name
is the name of the class implementing the TreeMatcher interface. For
example, if the class MatchTree implements TreeMatcher and you’re using pa3.jar in the public class directory, you would type
$ java -classpath /export/home/class/cs-305/pa3/pa3.jar:. main MatchTree
| This page last modified on 27 November 2010. |