Algorithms and OOD (CSC 207 2014S) : EBoards
What, exactly, do you want for 2b?
Random tests are nice because they catch cases you wouldn't think of. But "your code is wrong" is not helpful. Need a way to see how the tree was built so, which helps identify problems. Right now: Gives you the list of operations. You want Java code. Do it slowly by hand or write a program. Your goal: Write the program.
Can we change Randy's randomized testing code?
Yes. I assume you will change what you put into the ArrayList and how you print out the ArrayList.
In that same question, you give a block of code that builds a tree and prints a trace. What's the point?
That's a good model for you output.
OOD and Software Construction
Abstract Data Types
Copyright (c) 2013-14 Samuel A. Rebelsky.
This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.