6.1.9 Recursion - Recursive Algorithms Assignment
6.1.9 Recursion - Recursive Algorithms Assignment
DetectColonies2 Application
Create a DetectColonies2 application that is based on DetectColonies presented in this unit. This application gives
improved colony results because slides are now digitized to report colour. For example, a slide file could look similar to:
00550000
00050000
00005500
01200000
01111000
00000030
The digits 1 through 9 represent various colours. The digit 0 represents black(background colour).
The DetectColonies2 application should display a listing of the size, location, and colour value of each colony on the
slide. A colony is defined as a connected (horizontally or vertically) sequence of cells holding the same colour value. For
the above slide, the application should report:
Maze Application
A maze can be defined in a file using X characters to represent walls, space characters to represent paths, and a $ character to
represent the goal. For example, a file containing a maze should look similar to:
8
10
XXXXXXXXXX
X X
XX XXX XXX
XX X X
XXXX X X X
X X XXX
X XXXX $X
XXXXXXXXXX
The starting point is assumed to be location (1, 1) and the maze is assumed to have a border. Create a Maze application that displays
the sequence of positions in a path from the start to the goal, or indicate if no path is available. For example, for the maze above, the
application should report:
Total: /50
Program 2 – Maze Application
Criteria Yes No/Needs Some Work Marks
Thinking, Inquiry, and Problem Solving
Your program is fully functional using correct
code conventions.
/10
Thinking, Inquiry, and Problem Solving
Recursive searching algorithm is correctly
implemented.
/10
Application
Path is found using correct recursive
algorithm.
/5
Application
Coordinates of path are displayed.
/5
Knowledge & Understanding
You properly formatted your program with
correct class and method declaration
conventions. /5
Knowledge & Understanding
You properly formatted your program with
correct indentation and spacing.
/5
Communication
You properly documented your program: File
heading, internal documentation, internal
mechanics of program explained. /10
Total: /50
Assignment Total: /100