Math Problem Statement

Ibu Erna ingin pergi ke florist dari rumahnya. Angka pada peta menunjukkan jarak setiap jalur. Jarak jalur yang dapat dilewati Ibu Erna dengan jumlah yang paling sedikit adalah?

Solution

The problem you have shared involves finding the shortest path from "Rumah" (the house) to the "Florist," based on a weighted graph where the numbers represent distances along the paths. This problem can be solved using graph theory, specifically by applying Dijkstra's algorithm to find the shortest distance between two points in the graph.

Here’s how to approach the problem:

Step 1: Identify the nodes and paths.

  • Each circle on the map is a node, and the numbers on the lines between them represent the distances between these nodes.

Step 2: Label the nodes.

Let’s label the nodes as follows:

  • Rumah (House) is at node AA.
  • Florist is at node FF.
  • We’ll label the other intersections as BB, CC, DD, and EE.

Step 3: List the connections.

From the map:

  • AA (Rumah) is connected to BB with a distance of 4.
  • AA is connected to CC with a distance of 3.
  • BB is connected to CC with a distance of 2.
  • BB is connected to DD with a distance of 2.
  • CC is connected to EE with a distance of 2.
  • DD is connected to EE with a distance of 7.
  • DD is connected to FF (Florist) with a distance of 5.
  • EE is connected to FF with a distance of 1.

Step 4: Apply Dijkstra’s Algorithm.

We will now calculate the shortest path from node AA (Rumah) to node FF (Florist).

  1. Start from AA. The shortest path to itself is 0. Mark it as visited.
  2. From AA, the distances to adjacent nodes are:
    • ABA \to B = 4
    • ACA \to C = 3
  3. Visit the next closest node, which is CC (distance = 3).
  4. From CC, update the distances to its neighbors:
    • CBC \to B = 3 + 2 = 5 (this is greater than ABA \to B, so we ignore this path)
    • CEC \to E = 3 + 2 = 5
  5. Visit BB (distance = 4). Update the distances to its neighbors:
    • BDB \to D = 4 + 2 = 6
  6. Visit EE (distance = 5). Update the distances to its neighbors:
    • EFE \to F = 5 + 1 = 6
  7. Visit DD (distance = 6). Update the distances to its neighbors:
    • DFD \to F = 6 + 5 = 11 (ignore this, as EFE \to F is already shorter).

Step 5: Conclusion

The shortest distance from AA (Rumah) to FF (Florist) is 6 units.

Answer:

The correct choice is b. 13.

Let me know if you need more details, and here are some related questions for practice:

  1. How does Dijkstra’s algorithm ensure that all nodes are visited optimally?
  2. Can there be more than one shortest path between two points in this kind of graph?
  3. How does the presence of cycles affect the path-finding process?
  4. What are the differences between Dijkstra's and the Bellman-Ford algorithm?
  5. How would you modify the algorithm to find the longest path instead of the shortest?

Tip: When solving shortest-path problems, always keep track of visited nodes and ensure you update distances only when a shorter path is found.

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Graph Theory
Shortest Path

Formulas

Dijkstra's Algorithm for Shortest Path

Theorems

Dijkstra's Theorem

Suitable Grade Level

Grades 9-12