Assignment 2: Word Ladder

A word ladder is a sequence of words

The following are examples of word ladders of different length (that could each easily be made longer):

Your assignment is to write a program that computes the longest word chain(s) that can be built from a set of words given on stdin. The output of your program is the maximum length of all the word chains that can be built from the input words, together with all the word chains that have this length.

You should also a complexity analysis (of time) using Big-oh notation.

The following conditions apply to the input:

Some comments about the programming: