Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A person wanted to move between cities according to the following map: Required : Create a class named Cities that contains the following: A function

A person wanted to move between cities according to the following map:

Required :

Create a class named Cities that contains the following:

A function to create a directory named createCities

Create a hisuristic function named createH

Create the A* function inside the class

Create the function for calculating greeay inside the class

*When calling A* or greedy the output is saved to a JSON file

The main list of the project consists of:

1- Add city and history

2- A* algorithm

3- Greedy algorithm

4- Exit

image text in transcribed
image text in transcribed
\begin{tabular}{|c|r|} \hline \multicolumn{2}{|c|}{ heuristic } \\ \hline Gaza & 75 \\ \hline Cairo & 60 \\ \hline Amman & 45 \\ \hline Makkah & 45 \\ \hline Dubai & 25 \\ \hline Damascus & 40 \\ \hline Yafa & 30 \\ \hline Morocco & 0 \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

Incompatibility of hardware and software

Answered: 1 week ago

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago