Question

In: Computer Science

Considering Google Maps as a graph, list four possible weights that can be associated with edges...

Considering Google Maps as a graph, list four possible weights that can be associated with edges of the graph.

Solutions

Expert Solution

Considering Google Maps as a Graph, Google Maps must have been using a complex set of attributes to assign weights to the edges.

Edges, here, are nothing but, roads or to be more specific, paths(the path between New York and England are not connected via roads). Two places may be connected by a clean and straight pathway or they may be connected by a network of roads, turns, etc.

So, according to how optimal or how effective the path provided by Google Maps is, there can be a number of attributes that we can assign to the paths. We will design our function for determining weight.

Here is the list of 4 such attributes (and why?) :

1. Distance: We cannot consider the distance between the two places marked on a map. We need to consider the full distance, the actual path distance, the alleys that will come in the way, the turns that need to be taken, all that needs to be covered and hence, adds up to the final distance from the source to the destination. This is significant measure that can be taken as the "weight" of the edge while finding the optimal route, the user certainly would want to take the smallest path possible.

2. Traffic: Traffic is one of the major attribute that must be considered as the "weight" of the edge. The user certainly want to have a smooth drive to reach the destination. Traffic is unpredictable, it can easily turn minutes to hours. And even if we don't consider the checking stops, speed breakers and other stoppages, it is a major attribute that must be taken.

3. Number of Crossroads and Traffic lights: Crossroads are another time consuming places, that must have a part in the weight of the graph. The path with less number of crossroads means less traffic lights, less stoppage, hence, will be preferred. Crossroads too, can become a source of traffic, which makes it a part of the weight function.

4. Features of the Path: Not all paths are built the same. Some paths may have potholes(holes formed on the road using traffic), ruts(deep, narrow marks on the roads), etc, and they are the source of decreased speed and therefore, wasting time, bad experience. The user will obviously prefer to go from a smooth road path rather than the one filled with holes. Maybe not in the whole world, bad roads can certainly be the part of the weight function.

So, that compiles the different types of weights that can be associated with edges of the graph, in no specific order.

Please note that there can a number of other weights possible and that the weights mentioned here may or may not work in a certain place.


Related Solutions

Is it possible for a planar graph to have 6 vertices, 10 edges and 5 faces?...
Is it possible for a planar graph to have 6 vertices, 10 edges and 5 faces? Explain.
1. List 4 possible causes of ABO discrepancies associated with the presence or absence of ABO...
1. List 4 possible causes of ABO discrepancies associated with the presence or absence of ABO antigens 2. List 4 possible causes of ABO discrepancies associated the presence or absence of ABO antibodies
What would the possible impact of Brexit on China? (Please list four possible impacts within 200...
What would the possible impact of Brexit on China? (Please list four possible impacts within 200 words)
What are possible drawbacks associated with not considering opportunity costs and time value of money when...
What are possible drawbacks associated with not considering opportunity costs and time value of money when making financial decisions? Describe risks that you might encounter when making financial decisions over the next few years.
What are the three main ways of assigning a probability? List four possible outcomes needed to...
What are the three main ways of assigning a probability? List four possible outcomes needed to determine probabilities? An experiment consists of three stages. There are three possible outcomes in the first stage, four possible outcomes in the second stage, and two possible outcomes in the third stage. What is the total number of outcomes? A box has 12 balls. If 3 balls are randomly selected with replacement from the box, how many possible samples are there? 3 students will...
List 2 possible consequences associated with UNPAID preferred Dividends. Cite 3 chararcteristics of Preferred Stock which...
List 2 possible consequences associated with UNPAID preferred Dividends. Cite 3 chararcteristics of Preferred Stock which are comparable to a long term debt instrument.
How can I return in a list all possible paths from a grid if I can...
How can I return in a list all possible paths from a grid if I can only go right and down? For example consider the following table: A B C D E F If I go right I need to insert in my list 'H' if I go down I need to insert in my list 'V'. For example the path A - > B -> C -> F would be H - H - V The path A ->...
1. Identify the three categories of the accounting equation, and list at least four accounts associated with each category.
 1. Identify the three categories of the accounting equation, and list at least four accounts associated with each category. 2. What is the purpose of the chart of accounts? Explain the numbering typically associated with the accounts. 3. What does a ledger show? What's the difference between a ledger and the chart of accounts? 4. Accounting uses a double-entry system. Explain what this sentence means.
1.       A firm is considering four possible independent project options. Project A has a present value...
1.       A firm is considering four possible independent project options. Project A has a present value cost of $9,000 and yields benefits of $4,280 per year for 4 years. Project B has a present value cost of $10,000 and yields benefits of $4,560 per year for 3 years. Project C has a present value cost of $8,000 and yields benefits of $3,500 per year for 3 years. Project D has a present value cost of $7,500 and yields a benefit...
1.       A firm is considering four possible independent project options. Project A has a present value...
1.       A firm is considering four possible independent project options. Project A has a present value cost of $9,000 and yields benefits of $4,280 per year for 4 years. Project B has a present value cost of $10,000 and yields benefits of $4,560 per year for 3 years. Project C has a present value cost of $8,000 and yields benefits of $3,500 per year for 3 years. Project D has a present value cost of $7,500 and yields a benefit...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT