Programming Assignment 10 - Node Pairing

Concurrent Programming, Summer 2003


Due Date

This assignment is due by 2:00 p.m. on Tuesday, 12 August.

See the assignment turn-in page (last modified on 16 July 2003) for instructions on turning in your assignment.

Background

Given an undirected graph, nodes can be paired according to the following rules:

A single node is a node that is not paired. The graph itself is said to be paired when it does not contain two single nodes directly connected by an edge (that is, the graph does not contain any single nodes that could be paired).

The Problem

The code in /export/home/class/cs-598/a10/NodeRunnable.java is an initial attempt at writing code that takes an unpaired graph and turns it into a paired graph. Your job is to finish writing the code.

The following files and code are also of interest, although they are part of the problem and not part of the solution:

Because NodePairing.java and Graph.java are part of the problem and not part of the solution, they should not be turned in along with your solution. You may change these files to help you implement and test your solution, but your solution should not depend on the changes you make because you have no way to turn-in those changes along with your solution.

As long as you don't change what already exists, you may change NodeRunnable.java as you see fit; you may implement whatever classes and files you feel are appropriate to pairing graphs.


This page last modified on 22 July 2003.