logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
HimanshuComputer science
(/5)

813 Answers

Hire Me
expert
Neil BissonnetteBusiness
(5/5)

733 Answers

Hire Me
expert
Sikhar AggarwalMathematics
(5/5)

958 Answers

Hire Me
expert
Priyanka TanwarCriminology
(5/5)

505 Answers

Hire Me
Others
(5/5)

write a Prolog program to search a road route from any city to any other city using this data

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

1. Use the city “roaddistance” data given with this assignment. Assume that only these roads between the cities exist.

2. Write a Prolog program to search a road route from any city to any other city using this data. It should work for both cities that are directly connected (say, Ahmedabad to Indore) as well as for two cities that are not directly connected (say, Agartala to Hubli).

3. Now your program should either do option (a) or (b). Each option has two parts and both parts have to be done; have an input to decide which part is to be shown.

a. Show Depth First Search and Best-first search on this data. OR

b. Show Breadth First Search and A* search on this data.

4. You should use Prolog features such as Lists, Input/ Output, Recursion, Backtracking etc.

5. Create your own heuristics that are meaningful. 6. Should work for different inputs for different cities. That is, don’t make it hard-coded for one set of cities.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme