Question: In Python, create a depth first search and A* algorithm based on the following CSV files. The algorithm should track the spread of a virus
In Python, create a depth first search and A* algorithm based on the following CSV files. The algorithm should track the spread of a virus from 'Three River' to all other cities:
cities.csv

distances.csv

\begin{tabular}{|r|l|r|r|} \hline 1 & Abilene & 32.4543 & 99.7384 \\ \hline 2 & Alice & 27.7556 & 98.0653 \\ \hline 3 & Amarillo & 35.1989 & 101.831 \\ \hline 4 & Austin & 30.3006 & 97.7517 \\ \hline 5 & Beaumont & 30.085 & 94.1451 \\ \hline 6 & Brownsvil & 25.998 & 97.4565 \\ \hline 7 & College St & 30.5852 & 96.296 \\ \hline 8 & Columbus & 29.7055 & 96.5563 \\ \hline 9 & Corpus Ch & 27.7261 & 97.3755 \\ \hline 10 & Dalhart & 36.0579 & 102.512 \\ \hline 11 & Dallas & 32.7936 & 96.7662 \\ \hline 12 & Del Rio & 29.3708 & 100.88 \\ \hline 13 & El Paso & 31.8479 & 106.431 \\ \hline 14 & Fort Wortl & 32.7812 & 97.3472 \\ \hline 15 & Galveston & 29.5112 & 95.1979 \\ \hline 16 & Gonzalez & 29.5126 & 97.4472 \\ \hline 17 & Houston & 29.7869 & 95.3905 \\ \hline 18 & Jamaica Bi & 29.1905 & 94.9801 \\ \hline 19 & Kenedy & 28.8176 & 97.8518 \\ \hline 20 & Laredo & 27.5617 & 99.4874 \\ \hline 21 & Lubbock & 33.5642 & 101.887 \\ \hline 22 & McAllen & 26.2273 & 98.2471 \\ \hline 23 & Midland & 32.0249 & 102.114 \\ \hline 24 & Victoria & 28.8285 & 96.985 \\ \hline 25 & Waco & 31.5597 & 97.1882 \\ \hline 26 & Odessa & 29.6997 & 98.1148 \\ \hline 27 & Palestine & 31.8831 & 102.341 \\ \hline 28 & Round Ror & 30.5254 & 95.6471 \\ \hline 29 & San Angel & 31.9426 & 97.6659 \\ \hline 30 & San Anton & 29.4658 & 98.5254 \\ \hline 31 & San Marcc & 29.8736 & 98.529 \\ \hline 32 & Suguin & 29.5891 & 97.9661 \\ \hline 33 & Temple & 31.1076 & 97.3894 \\ \hline \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
