Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nearest Neighbor Repetitive Nearest Neighbor (Unit 10) SOL: DM.2

Similar presentations


Presentation on theme: "Nearest Neighbor Repetitive Nearest Neighbor (Unit 10) SOL: DM.2"— Presentation transcript:

1 Nearest Neighbor Repetitive Nearest Neighbor (Unit 10) SOL: DM.2
Classwork worksheet Homework (day 68) Worksheet (Continue working on Project)

2 Nearest Neighbor (until 5:15) https://www. youtube. com/watch

3 Nearest Neighbor Is performed by continually taking an edge with the smallest weight. This will give you approximate solutions to traveling salesperson problems.

4 Steps to solving Nearest Neighbor
Start at the designated starting vertex. If there is no designated staring vertex pick any vertex. From the starting vertex go to its nearest neighbor (i.e. the vertex for which the corresponding edge has the smallest weight). From each vertex go to the nearest neighbor, choosing only among the vertices that have not been visited (if there are more than one nearest neighbor with the same measure choose from them at random). Continue the process until all the vertices have been visited. From the last vertex return to the starting vertex.

5

6

7 Repetitive Nearest Neighbor https://www. youtube. com/watch
Is similar to nearest neighbor but you choose which vertex to start from. Repeat the process several times, each time starting from a different vertex. You may find different “nearest neighbor solutions” Then you can pick the best.

8

9

10


Download ppt "Nearest Neighbor Repetitive Nearest Neighbor (Unit 10) SOL: DM.2"

Similar presentations


Ads by Google