Skip to content

Implementation of A* search using linear distance as heuristic function

Notifications You must be signed in to change notification settings

soumyargade/aStarSearch

Repository files navigation

A* Search

How It Works

  • Implementation of A* Search to find the shortest path between individuals.
  • Linear distance was used as the heuristic function.
  • The input file fixed_question_data.txt augments each individual in the social network with latitude and longitude information to indicate their location on Earth.
  • On each iteration of the main loop, the program prints out the current queue with current f-scores as a list and notes the person being expanded. Once a search is complete, the final path and path cost are printed.

Compile Instructions

javac Edge.java

javac Node.java

javac Assign3Search.java

jar cmf Assign3Search.mf Assign3Search.jar Assign3Search.class Node.class Edge.class Assign3Search\$1.class

java -jar Assign3Search.jar <inputfile> <startname> <endname>

Depiction of Social Network

social network

About

Implementation of A* search using linear distance as heuristic function

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages