CSE 101 -- Hwk 4

Due before midnight, Sunday, November 21, 2021.
Late submissions will not be accepted/graded.

Changelog:

  • Nov 16, 2021: Modify parameter names and update function description in Wall.c and Wall.h. Delete SEGMENT_WALL_SIDE_COLLINEAR in enum ESegmentWallSide in Wall.h.
  • Nov 16, 2021: Add clarification of what 'above' means to html.
  • Nov 17, 2021: Changed hwk4.c (comment field of List.c) to room.c
  • Nov 17, 2021 Changed cairo font size in DrawBSP to a smaller value (32) to make images more readable
  • Nov 18, 2021 Corrected error in sample output. Sample output images and output text should now be correct.
  • Nov 18, 2021 Add a clarification that y-axis is downwards.

    Objectives:

    Implement a Binary Space Partition (BSP) ADT.

    Description:

    A BSP is a special type of binary tree that partitions space into two each time. This is commonly used in computer graphics to speed up rendering of complex scenes but have also been used in computer games. This homework will focus on partitioning of 2D space. You will implement functionalities for a BSP ADT and the application program.

    Details:

    Resources:

    Submission:


    Last modified: 11/13/2021