Monash University > CSSE > CSE1303 > Part A> Pracs > Prac A1

CSE1303 Computer Science
Summer Semester, 2003
Part A
Prac A1 : Revision : Word-Find Puzzle

This prac covers material from lectures A01 to A02 and Tutorial A1.

Project:

To write a C program to search and solve word-find puzzles.

Background:

A word-find puzzle consists of a 2 dimensional array of characters and a list of words. An example is given below. The object of the puzzle is to find the words in the array of characters. The words can appear in the puzzle going up, down, across, backwards and diagonally. In the example below the words which have been found appear shaded.

(This is the 2d array stored as characters in the file array.txt)

S B U Q P M U Q B P M R
S E L B A T E G E V C T
M A E R C E C I S A U E
H S I F K B Y R N R D C
H P T C A K E S K I O I
T S I R G Z S E B E O U
S E R E E B Y L F T F J
L L K E S S E S O Y A D
A F R R N F S W T Z Q R
E F N J A N N E Z O R F
M A T A E M I I D E R M
I W P T G U P D L O C E

List of words found so far (in the file words.txt):

CAKES MARKET PACKAGES FISH WAFFLES


Preparation (3 marks if completed before class)

The marks for Preparation will be awarded only if the preparation is complete before the start of the class.


Question 1: (2 marks)


Question 2: (2 marks)


Question 3: (3 marks)


Advanced Questions: (2 marks)


[ Top | Home ]

Last modified: Tuesday 02 December 2003 22:29:33