menu
bartleby
search
close search
Hit Return to see all results
close solutoin list

Route Planning Brian needs to visit the pet store, the shopping mall, the local farmers market, and the pharmacy. His estimated driving times (in minutes) between the locations are given in the table below. Use the greedy algorithm and the edge-picking algorithm to find two possible routes, starting and ending at home, that will help Brian minimize his total travel time.

BuyFindarrow_forward

Mathematical Excursions (MindTap C...

4th Edition
Richard N. Aufmann + 3 others
Publisher: Cengage Learning
ISBN: 9781305965584

Solutions

Chapter
Section
BuyFindarrow_forward

Mathematical Excursions (MindTap C...

4th Edition
Richard N. Aufmann + 3 others
Publisher: Cengage Learning
ISBN: 9781305965584
Chapter 5.2, Problem 27ES
Textbook Problem
132 views

Route Planning Brian needs to visit the pet store, the shopping mall, the local farmers market, and the pharmacy. His estimated driving times (in minutes) between the locations are given in the table below. Use the greedy algorithm and the edge-picking algorithm to find two possible routes, starting and ending at home, that will help Brian minimize his total travel time.

Chapter 5.2, Problem 27ES, Route Planning Brian needs to visit the pet store, the shopping mall, the local farmers market, and

To determine

To find two possible routes, starting and ending at home, that will help Brain minimize his total travel time, using the greedy algorithm and the edge-picking algorithm.

Explanation of Solution

Given information:

Given, Brian needs to visit the pet store, the shopping mall, the local farmers market, and the pharmacy.

His estimated driving times (in minutes) between the locations are given in the table below:

His starting and ending points are home and needs to have a minimum total travel time.

  

Calculation:

Given, there are five locations to visit which starts and ends at Home.

Hence five vertices corresponding to the five locations are marked with respective names.

And then making the complete graph by marking every possible edge with every edge marked with the weight represented in the table between the locations.

The driving time between Home and Pet store is 18. Hence the edge drawn between them has a weight of 18.

Similarly marking all the edges with respective weights, the graph is given as:

  

Greedy algorithm:

To use the greedy algorithm, the graph must be Hamiltonian.

(Since, Brian needs to visit each location only once)

A path in a Hamiltonian graph is said to be a Hamiltonian Circuit if it begins and ends at the same vertex and passes through each vertex of a graph exactly once.

The greedy algorithm states to travel along a connected edge that has the smallest weight that is not yet visited. This process continues till all the vertices are visited and returned to the starting vertex.

Here, the vertex representing Home is selected.

Vertex representing Home is of degree 4 and the weights of the connected edges are 18, 27, 15, 8

Hence, as per the Greedy Algorithm the edge with weight 8 is selected i.e. path reaches vertex representing Pharmacy.

Vertex representing Pharmacy is of degree 4 and the weights of the connected edges are 8, 10, 32, 22

The least of the weights is 8 but it leads to vertex representing Home which is already visited. Hence, as per the Greedy Algorithm the edge with weight 10 is selected i.e. path reaches vertex representing Pet Store.

Vertex representing Pet Store is of degree 4 and the weights of the connected edges are 18, 24, 22, 10

The least of the weights is 10 but it leads to vertex representing Pharmacy which is already visited. The next least of the weights is 18 but it leads to vertex representing Home which is already visited.

Hence, as per the Greedy Algorithm the edge with weight 22 is selected i.e. path reaches vertex representing Farmers market.

Vertex representing Farmers market is of degree 4 and the weights of the connected edges are 15, 22, 20, 22

The least of the weights is 15 but it leads to vertex representing Home which is already visited.

Hence, as per the Greedy Algorithm the edge with weight 20 is selected i.e. path reaches vertex representing Shopping mall.

Vertex representing Shopping mall is of degree 4 and the weights of the connected edges are 27, 24, 20, 32

The least of the weights is 20 but it leads to vertex representing Farmers market which is already visited...

Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started

Chapter 5 Solutions

Mathematical Excursions (MindTap Course List)
Show all chapter solutions
add
Ch. 5.1 - Determine (a) the number of edges in the graph,...Ch. 5.1 - Determine (a) the number of edges in the graph,...Ch. 5.1 - Determine (a) the number of edges in the graph,...Ch. 5.1 - Determine whether the two graphs are equivalent.Ch. 5.1 - Determine whether the two graphs are equivalent.Ch. 5.1 - Determine whether the two graphs are equivalent.Ch. 5.1 - Determine whether the two graphs are equivalent.Ch. 5.1 - Explain why the following two graphs cannot be...Ch. 5.1 - Label the vertices of the second graph so that it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - (a) determine whether the graph is Eulerian. If it...Ch. 5.1 - Parks in Exercises 23 and 24, a map of a park is...Ch. 5.1 - Parks in Exercises 23 and 24, a map of a park is...Ch. 5.1 - Transportation For the train routes given in...Ch. 5.1 - Transportation For the direct air flights given in...Ch. 5.1 - Pets The diagram below shows the arrangement of a...Ch. 5.1 - Transportation A subway map is shown below. Is it...Ch. 5.1 - Architecture, a floor plan of a museum is shown....Ch. 5.1 - Architecture, a floor plan of a museum is shown....Ch. 5.1 - Degrees of Separation In the graph below, an edge...Ch. 5.1 - Social Network In the graph below, an edge...Ch. 5.1 - Bridges of a Graph An edge of a connected graph is...Ch. 5.1 - Travel A map of South America is shown at the...Ch. 5.2 - Continue investigating Hamiltonian circuits in...Ch. 5.2 - Use the greedy algorithm and the weighted graph...Ch. 5.2 - Use the edge-picking algorithm to find a...Ch. 5.2 - Use Dirac's theorem to verify that the graph is...Ch. 5.2 - Use Dirac's theorem to verify that the graph is...Ch. 5.2 - Use Dirac's theorem to verify that the graph is...Ch. 5.2 - Use Dirac's theorem to verify that the graph is...Ch. 5.2 - Transportation For the train routes given in...Ch. 5.2 - Transportation For the direct air flights given in...Ch. 5.2 - Use trial and error to find two Hamiltonian...Ch. 5.2 - Use trial and error to find two Hamiltonian...Ch. 5.2 - Use trial and error to find two Hamiltonian...Ch. 5.2 - Use trial and error to find two Hamiltonian...Ch. 5.2 - Use the greedy algorithm to find a Hamiltonian...Ch. 5.2 - Use the greedy algorithm to find a Hamiltonian...Ch. 5.2 - Use the greedy algorithm to find a Hamiltonian...Ch. 5.2 - Use the greedy algorithm to find a Hamiltonian...Ch. 5.2 - Use the edge-picking algorithm to find a...Ch. 5.2 - Use the edge-picking algorithm to find a...Ch. 5.2 - Use the edge-picking algorithm to find a...Ch. 5.2 - Use the edge-picking algorithm to find a...Ch. 5.2 - Travel A company representative lives in...Ch. 5.2 - Travel A tourist is staying in Toronto, Canada,...Ch. 5.2 - Travel Use the edge-picking algorithm to design a...Ch. 5.2 - Travel Use the edge-picking algorithm to design a...Ch. 5.2 - Travel Nicole wants to tour Asia. She will start...Ch. 5.2 - Travel The prices for traveling between five...Ch. 5.2 - Travel Use the edge-picking algorithm to find a...Ch. 5.2 - Travel Use the edge-picking algorithm to find a...Ch. 5.2 - Route Planning Brian needs to visit the pet store,...Ch. 5.2 - Route Planning A bike messenger needs to deliver...Ch. 5.2 - Scheduling A research company has a large...Ch. 5.2 - Computer Networks A small office wishes to network...Ch. 5.2 - Route Planning A security officer patrolling a...Ch. 5.2 - Route Planning A city engineer needs to inspect...Ch. 5.2 - Draw a connected graph with six vertices that has...Ch. 5.2 - Assign weights to the edges of the following...Ch. 5.3 - The tetrahedron in figure 5.20 consists of four...Ch. 5.3 - The following graph is the projection of one ofthe...Ch. 5.3 - If we form a graph by a projection of the...Ch. 5.3 - Give a reason why the graph below Cannot be the...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is planar by finding a planar...Ch. 5.3 - Show that the graph is not planar.Ch. 5.3 - Show that the graph is not planar.Ch. 5.3 - Show that the graph is not planar.Ch. 5.3 - Show that the graph is not planar.Ch. 5.3 - Show that the following graph contracts to K5.Ch. 5.3 - Show that the following graph contracts to the...Ch. 5.3 - Show that the graph is not planar by finding a...Ch. 5.3 - Show that the graph is not planar by finding a...Ch. 5.3 - Count the number of vertices, edges, and faces,...Ch. 5.3 - Count the number of vertices, edges, and faces,...Ch. 5.3 - Count the number of vertices, edges, and faces,...Ch. 5.3 - Count the number of vertices, edges, and faces,...Ch. 5.3 - Count the number of vertices, edges, and faces,...Ch. 5.3 - Count the number of vertices, edges, and faces,...Ch. 5.3 - If a planar drawing of a graph has 15 edges and 8...Ch. 5.3 - If a planar drawing of a graph has 100 vertices...Ch. 5.3 - Sketch a planar graph (without multiple edges or...Ch. 5.3 - Sketch a planar graph (without multiple edges or...Ch. 5.3 - Explain why it is not possible to draw a planar...Ch. 5.3 - If a planar drawing of a graph has twice as many...Ch. 5.3 - Show that the complete graph with five vertices,...Ch. 5.3 - Dual Graph Every planar graph has what is called a...Ch. 5.4 - A one-way road ends at a two-way street. The...Ch. 5.4 - A one-way road intersects a two-way road in a...Ch. 5.4 - A two-way road intersects another two-way road in...Ch. 5.4 - Map Coloring A fictional map of the countries of a...Ch. 5.4 - Map Coloring A fictional map of the countries of a...Ch. 5.4 - Map Coloring A fictional map of the countries of a...Ch. 5.4 - Map Coloring A fictional map of the countries of a...Ch. 5.4 - Map Coloring Represent the map by a graph and find...Ch. 5.4 - Map Coloring Represent the map by a graph and find...Ch. 5.4 - Map Coloring Represent the map by a graph and find...Ch. 5.4 - Map Coloring Represent the map by a graph and find...Ch. 5.4 - Show that the graph is 2-colorable by finding a...Ch. 5.4 - Show that the graph is 2-colorable by finding a...Ch. 5.4 - Show that the graph is 2-colorable by finding a...Ch. 5.4 - Show that the graph is 2-colorable by finding a...Ch. 5.4 - Show that the graph is 2-colorable by finding a...Ch. 5.4 - Show that the graph is 2-colorable by finding a...Ch. 5.4 - Determine (by trial and error) the chromatic...Ch. 5.4 - Determine (by trial and error) the chromatic...Ch. 5.4 - Determine (by trial and error) the chromatic...Ch. 5.4 - Determine (by trial and error) the chromatic...Ch. 5.4 - Determine (by trial and error) the chromatic...Ch. 5.4 - Determine (by trial and error) the chromatic...Ch. 5.4 - Scheduling Six student clubs need to hold meetings...Ch. 5.4 - Scheduling Eight political committees must meet on...Ch. 5.4 - Scheduling Six different groups of children would...Ch. 5.4 - Scheduling Five different charity organizations...Ch. 5.4 - Scheduling Students in a film class have...Ch. 5.4 - Animal Housing A researcher has discovered six new...Ch. 5.4 - Wi-Fi Stations An office building is installing...Ch. 5.4 - Map Coloring Draw a map of a fictional continent...Ch. 5.4 - If the chromatic number of a graph with five...Ch. 5.4 - Edge Coloring In this section, we colored vertices...Ch. 5.4 - Scheduling Edge colorings, as explained in...Ch. 5 - (a) determine the number of edges in the graph,...Ch. 5 - (a) determine the number of edges in the graph,...Ch. 5 - Soccer In the table below, an X indicates teams...Ch. 5 - Each vertex in the graph at the left represents a...Ch. 5 - Determine whether the two graphs are equivalent.Ch. 5 - Determine whether the two graphs are equivalent.Ch. 5 - Find an Euler path if possible, and (b) find an...Ch. 5 - Find an Euler path if possible, and (b) find an...Ch. 5 - Find an Euler path if possible, and (b) find an...Ch. 5 - Find an Euler path if possible, and (b) find an...Ch. 5 - Parks The figure shows an arrangement of bridges...Ch. 5 - Architecture The floor plan of a sculpture gallery...Ch. 5 - Use Dirac's theorem to verify that the graph is...Ch. 5 - Use Dirac's theorem to verify that the graph is...Ch. 5 - Travel The table below lists cities serviced by a...Ch. 5 - Travel For the direct flights given in Exercise...Ch. 5 - Use the greedy algorithm to find a Hamiltonian...Ch. 5 - Use the greedy algorithm to find a Hamiltonian...Ch. 5 - Use the edge-picking algorithm to find a...Ch. 5 - Use the edge-picking algorithm to find a...Ch. 5 - Efficient Route The distances, in miles, between...Ch. 5 - Computer Networking A small office needs to...Ch. 5 - Show that the graphs is planar by finding a planar...Ch. 5 - Show that the graphs is planar by finding a planar...Ch. 5 - Show that the graph is not planar.Ch. 5 - Show that the graph is not planar.Ch. 5 - Count the number of vertices, edges, and faces in...Ch. 5 - Count the number of vertices, edges, and faces in...Ch. 5 - Map Coloring, a fictional map is given showing the...Ch. 5 - Map Coloring, a fictional map is given showing the...Ch. 5 - Show that the graph is 2-colorable by finding a...Ch. 5 - Show that the graph is 2-colorable by finding a...Ch. 5 - Determine (by trial and error) the chromatic...Ch. 5 - Determine (by trial and error) the chromatic...Ch. 5 - Scheduling A company has scheduled a retreat at a...Ch. 5 - Social Network Each vertex in the graph at the...Ch. 5 - Determine whether the following two graphs are...Ch. 5 - Answer the following questions for the graph shown...Ch. 5 - Recreation The illustration below depicts bridges...Ch. 5 - a. What does Dirac's theorem state? Explain how it...Ch. 5 - Low-Cost Route The table below shows the cost of...Ch. 5 - Use the greedy algorithm to find a Hamiltonian...Ch. 5 - Sketch a planar drawing of the graph below. Show...Ch. 5 - Answer the following questions for the graph shown...Ch. 5 - Map Coloring A fictional map of the countries of a...Ch. 5 - For the graph shown below, find a 2-coloring of...Ch. 5 - A group of eight friends is planning a vacation in...

Additional Math Textbook Solutions

Find more solutions based on key concepts
Show solutions add
Fill in the blanks. 8. a. The statement limxf(x) = L means that f(x) can be made arbitrarily close to _________...

Applied Calculus for the Managerial, Life, and Social Sciences: A Brief Approach

A population with a mean of = 8 has SX = 40. How many scores are in the population?

Statistics for The Behavioral Sciences (MindTap Course List)

Solve each equation and check: 14b=57

Elementary Technical Mathematics

Sketching a Polar Graph In Exercises 81-92, sketch a graph of the polar equation. r2=4sin

Calculus: Early Transcendental Functions (MindTap Course List)

True or False: If f′(x) = g′(x), then f(x) = g(x).

Study Guide for Stewart's Single Variable Calculus: Early Transcendentals, 8th

In Problems 710 the independent variable x is missing in the given differential equation. Proceed as in Example...

A First Course in Differential Equations with Modeling Applications (MindTap Course List)

1. Consider the following time series data. Week 1 2 3 4 5 6 Value 18 13 16 11 17 14 Using the naive method (m...

Modern Business Statistics with Microsoft Office Excel (with XLSTAT Education Edition Printed Access Card) (MindTap Course List)

Sketching Graphs In Exercises S-26 through S-35, sketch a graph with the given properties. We note that for eac...

Functions and Change: A Modeling Approach to College Algebra (MindTap Course List)