The walls in the subtrees should be in the same order as before the split.
If a wall is aligned (co-linear) with the partitioning wall, classify that wall as above or left i.e. place it in the left subtree.
Likewise, a vertical partitioning wall can split horizontal walls into two pieces if the x-component is between the x-components of a horizontal wall.
The two pieces of a wall that has been split end up on the left and right subtrees of the partitioning wall.
Make sure that you've compiled and tested your code on the campus unix timeshare before submitting. On the unix timeshare, put materials in a folder named hwk4 and zip it up. Note that you should not include any sample input or sample output files in your submission.
Submit on unix timeshare. Use the command: submit cse101-ap.f21 hwk4 hwk4.zip
You can submit as often as you want up until the deadline. We will only look at your most recent submission.
Last modified:
11/13/2021