Class Connected

java.lang.Object
org.drip.sample.graphsearch.Connected

public class Connected
extends java.lang.Object
Connected reads in a file and outputs whether two specified cities are connected. The References are:

  • Aziz, A., and A. Prakash (2010): Algorithms for Interviews http://users.ece.utexas.edu/~adnan/afi-samples-new.pdf
  • Coppin, B. (2004): Artificial Intelligence Illuminated Jones and Bartlett Learning
  • Cormen, T., C. E. Leiserson, R. Rivest, and C. Stein (2009): Introduction to Algorithms 3rd Edition MIT Press
  • Russell, S., and P. Norvig (2003): Artificial Intelligence: Modern Approach 2nd Edition Prentice Hall
  • Wikipedia (2020): Breadth-first Search https://en.wikipedia.org/wiki/Breadth-first_search




Author:
Lakshmi Krishnamurthy
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] argumentArray)
    Entry Point
    static void ProcessFromFile​(java.lang.String[] argumentArray)
    Process From File

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • main

      public static final void main​(java.lang.String[] argumentArray) throws java.lang.Exception
      Entry Point
      Parameters:
      argumentArray - Command Line Argument Array
      Throws:
      java.lang.Exception - Thrown on Error/Exception Situation
    • ProcessFromFile

      public static final void ProcessFromFile​(java.lang.String[] argumentArray) throws java.lang.Exception
      Process From File
      Parameters:
      argumentArray - File
      Throws:
      java.lang.Exception - Thrown if the File cannot be processed