See the Java programs for implementing the algorithms discussed in th text, posted at the authors' Java Program site.