Assignment 2: Ordered Word Ladders

An ordered word ladder is an alphabetically-ordered sequence of words where each word in the sequence differs from its predecessor by:

The following are examples of word ladders of different length:

Your assignment is to write a program that computes the longest word ladder(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 ladders that can be built from the input words, together with all the word ladders 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: