Prof. Cohen Goes To A Party


Prof. Haskell Cohen and his wife, Lois, attended a party with four other couples. During the course of the evening some of the people shook hands with each other. Of course, no one shook hands with themselves or their mates. Afterwards Prof. Cohen asked each of the nine others how many people they shook hands with. Surprisingly, each one gave a different answer. Question: How many people did Lois shake hands with?

From Department of Mathematics and Statistics, University of Massachusetts, Amherst, Newsletter. Prof. Haskell Cohen, Problem Editor (and my freshman year calc Prof!)


Hint: After I thought about some of the properties of the problem, I used a graph to solve it. You may use the graph editor below as a scratch pad to help you solve the problem.



A Simple Graph Editor
(Directions for use are below the editor)

This is a large applet (95K), but it is all in one jar file, so it should load relatively quickly. This applet requires JDK 1.1. If you do not have JDK 1.1, you will have to load 180K in 37 files. It isn't worth it...



Directions


Add A Node (a shape)

A node is an endpoint in a graph. You may use nodes to represent different people at the party.

Add An Edge (a line connecting shapes)

An edge represents a relationship between the nodes. You connect nodes with edges. You may use an edge to show that two people have shaken hands.

Move

You may want to reposition the nodes and edges. Of course, the edges will stay attached to their edges as the elements are repositioned.

Size

You may want to change the size a node.

Delete

You may want to get rid of some of the elements.

Changing Colors Of Outlines


Changing Colors Of Fills



Please, please, please, if you have any problems with this page (especially the applet) please write. I just put it on the web on Feb. 24. I have only tested it under Netscape 3.0. I welcome all mail. determan@world.std.com