A Search and MST’s (Discussion 13) - Christine Zhou
Génération de l'aperçu...
Description
Discussion 13: A* Search and MST’s Christine Zhou Agenda Announcements Review: Dijkstra’s and A* Search Problem 1 Review: MST’s Problem 2 Announcements HW7 due today! Even if you can’t push, remember to commit your work Proj3: Gitlet is out! Due 12/6, Wednesday of dead week Last discussion and lab is next week! :O Tentative dead week schedule: No discussion section Lab sections Final review (no project questions) Each lab will be focused on a particular topic OH Project questions No extra OH Dijkstra’s Algorithm Any lingering questions about Dijkstra’s algorithm? What if we only wanted to find a path from SF to NYC? Would Dijkstra’s work? Yes, but we can do better... A* Search Useful when we have a single target in mind, we only search in a direction that brings us closer to our goal Introduce heuristics: an estimate from any vertex to the goal vertex These values will be provided for you by someone/something Do the same procedure as Dijkstra’s, except add “distTo(v) + h(v)” to the fringe instead of “distTo(v)” Fringe will contain total distances from the start to the end Explore the path to the goal that is the smallest, according to our heuristic Keep exploring until we have popped off the goal Heuristics Admissible: heuristic cannot overestimate distance from the current vertex to the goal Consistent: change in heuristic between v and w cannot exceed actual change in distance between v and w 1 A* Search a) Given the weights and heuristic values for the graph below, what path would A* search return, starting from A and with G as a goal? b) Is the heuristic admissible? Why or why not? Minimum Spanning Trees Tree: must have V-1 edges, no cycles Spanning: the set of edges must connect all vertices Minimum: the spanning tree must have the smallest total weight MST: a tree that connects all vertices with the smallest total weight Prim’s Algorithm Pick an arbitrary starting point Always pick the m
Résumé IA
- Nom du document
- A Search and MST’s (Discussion 13) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Contenu
- Tài liệu thảo luận về thuật toán tìm kiếm A* và Cây Trùm Cực Tiểu (MST). Nó ôn lại Dijkstra, giới thiệu A* với heuristic, và trình bày các bài toán áp dụng Prim, Kruskal, cùng với cấu trúc dữ liệu Weighted Quick Union.
- Table des matières
- Agenda
- Announcements
- Dijkstra’s Algorithm
- A* Search
- Heuristics
- 1 A* Search
- Minimum Spanning Trees
- Prim’s Algorithm
- 2 Minimum Spanning Trees
- Kruskal’s Algorithm
- Weighted Quick Union with Path Compression
- WQUF w/ PC
- Pages
- 16 pages
- Téléversé par
- Uni24h
Foire aux questions
Ce document est-il gratuit ?
Oui. « A Search and MST’s (Discussion 13) - Christine Zhou » est gratuit — il suffit de vous connecter et de cliquer sur Télécharger pour obtenir le fichier original.
Combien de pages compte ce document ?
Le document contient 16 pages, pour le cours Lập trình Java. Vous pouvez le prévisualiser en ligne avant de le télécharger.
Puis-je prévisualiser avant de télécharger ?
Oui. Vous pouvez prévisualiser ce document directement sur cette page avec le lecteur en ligne, puis décider de le télécharger ou non.
A Search and MST’s (Discussion 13) - Christine Zhou
Génération de l'aperçu...
Discussion 13: A* Search and MST’s Christine Zhou Agenda Announcements Review: Dijkstra’s and A* Search Problem 1 Review: MST’s Problem 2 Announcements HW7 due today! Even if you can’t push, remember to commit your work Proj3: Gitlet is out! Due 12/6, Wednesday of dead week Last discussion and lab is next week! :O Tentative dead week schedule: No discussion section Lab sections Final review (no project questions) Each lab will be focused on a particular topic OH Project questions No extra OH Dijkstra’s Algorithm Any lingering questions about Dijkstra’s algorithm? What if we only wanted to find a path from SF to NYC? Would Dijkstra’s work? Yes, but we can do better... A* Search Useful when we have a single target in mind, we only search in a direction that brings us closer to our goal Introduce heuristics: an estimate from any vertex to the goal vertex These values will be provided for you by someone/something Do the same procedure as Dijkstra’s, except add “distTo(v) + h(v)” to the fringe instead of “distTo(v)” Fringe will contain total distances from the start to the end Explore the path to the goal that is the smallest, according to our heuristic Keep exploring until we have popped off the goal Heuristics Admissible: heuristic cannot overestimate distance from the current vertex to the goal Consistent: change in heuristic between v and w cannot exceed actual change in distance between v and w 1 A* Search a) Given the weights and heuristic values for the graph below, what path would A* search return, starting from A and with G as a goal? b) Is the heuristic admissible? Why or why not? Minimum Spanning Trees Tree: must have V-1 edges, no cycles Spanning: the set of edges must connect all vertices Minimum: the spanning tree must have the smallest total weight MST: a tree that connects all vertices with the smallest total weight Prim’s Algorithm Pick an arbitrary starting point Always pick the m
Lire le document entier
- Nom du document
- A Search and MST’s (Discussion 13) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Contenu
- Tài liệu thảo luận về thuật toán tìm kiếm A* và Cây Trùm Cực Tiểu (MST). Nó ôn lại Dijkstra, giới thiệu A* với heuristic, và trình bày các bài toán áp dụng Prim, Kruskal, cùng với cấu trúc dữ liệu Weighted Quick Union.
- Table des matières
- Agenda
- Announcements
- Dijkstra’s Algorithm
- A* Search
- Heuristics
- 1 A* Search
- Minimum Spanning Trees
- Prim’s Algorithm
- 2 Minimum Spanning Trees
- Kruskal’s Algorithm
- Weighted Quick Union with Path Compression
- WQUF w/ PC
- Pages
- 16 pages
- Téléversé par
- Uni24h
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !
Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
Final Review Solutions (Cấu trúc dữ liệu heap, hàng đợi ưu tiên và duyệt đồ thị) - Ching and Christines
Giáo trình Lập trình Java
Inheritance (Discussion 4) (Kế thừa trong Java) - Christine Zhou
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !