Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Exercise 1

1. Dijkstra’s shortest path


The following is a graph with 9 vertices, each side identifying the distance. lease give its

sptSet and distSet for each step.

• 2. Using the numbers below to create a binary tree

61,87,59,46,34,72,50,98,38,92

3. In the next class, we will discuss several distance


measures in artificial intelligence. Please find relevant
information for discussion in class, such as the following
distances:
1.Manhattan distance
2.Euclidean distance
3. Chebyshev distance
4. Minkowski distance
5. Mahalanobis distance
6 .Distance between Han and Ming Dynasties
7. Cosine similarity
We will discuss their distance formulas and their
advantages and disadvantages in class.

You might also like