Question

In: Computer Science

Discuss the characteristics of graph data structure; use three examples to demonstrate the kinds of questions...

Discuss the characteristics of graph data structure; use three examples to demonstrate the kinds of questions that graph can solve.

Solutions

Expert Solution

A Graph is a pictorial representation of finite number of objects in which some of the objects (pairs) are connected by link. The objects which are interconnected through these links are called nodes, vertices, station, host and links thorough which these objects are connected is called edges, branches, wire etc.

By definition a Graph consists finite number set of vertices and edges (V, E). Edges connect the vertices and form a graph.

Various real life of examples are there which can be solved by the graph, from which three most popular of them are explained below:

1.Konigsberg Bridge problem:

Konigsberg bridge problem is one of the famous problem which leads to the inception of graph theory. In 1736 this problem marked as negative by famous mathematician Eular. The Königsberg city is in Prussia (now Kaliningrad, Russia) was situatedon both sides of a river named as Pregel, and had total 4 islands each of which was connected well through seven bridges. The problem was to walk through the city that would cross each of those bridges once and only once. Eular proved that this problem had no solution back in 1736


2. Travelling salesman problem:

This is very famous problem in which a salesman is there to sell some items in several cities, now the what is running inside this salesman's mind is that how to cover all the cities so that the distance which he cover is minimal. It means that salesman have to cover all the city once and come back to the source while covering minimum distance.

3. Shortest path Algorithm:

This algorithm which is implemented on graphs can relate very easily to real life examples and can be implemented to solve problems like how to cover shortest path from a source to destination.

For example:

Consider the graph shown in figure on right side. A TSP tour in the graph is 1-2-4-3-1. The cost of the tour is 10+25+30+15 which is 80.

Hope this may help you

Thank you ?


Related Solutions

Discuss two advantages of using a database for storing data and provide examples to demonstrate these...
Discuss two advantages of using a database for storing data and provide examples to demonstrate these benefits.
Your answers to these kinds of questions demonstrate an ability to comprehend and apply ideas discussed...
Your answers to these kinds of questions demonstrate an ability to comprehend and apply ideas discussed in this chapter.  Please use the key terms from the chapter to help you answer the following questions.  I expect thorough, well-thought out answers for each question.  Make sure to number your answers to the questions accordingly and proofread before submitting.   1. What is the relationship between each of the substages in Piaget’s theory of the sensorimotor period? How does the infant get from...
Discuss the difference between job order costing and process cost systems.  Use examples to demonstrate the...
Discuss the difference between job order costing and process cost systems.  Use examples to demonstrate the differences.
list three subjective data you could use to assess substance use and three subjective data questions...
list three subjective data you could use to assess substance use and three subjective data questions you would use to assess domestic violence.
Use the table and graph to answer three questions. Real GDP (in $ Trillions) Price Level...
Use the table and graph to answer three questions. Real GDP (in $ Trillions) Price Level Supplied Demanded 100 4 16 110 10 15 140 14 12 200 15 6 Using the table and graph answer the questions a. What is the equilibrium price level? b. What is the equilibrium output? c. If the quantity of output demanded at ever price level increases by $2 trillion, what happens to equilibrium output and prices?
Discuss the three properties (characteristics) of data and explain some of the descriptive measures associated with...
Discuss the three properties (characteristics) of data and explain some of the descriptive measures associated with each property.
Three examples of the kinds of tangible assets for which depreciation deductions are not available. ___...
Three examples of the kinds of tangible assets for which depreciation deductions are not available. ___ ___ ___ In addition, give three examples of the kinds of intangible assets for which amortization deductions are not available. ___ ___ ___
Discuss five sources of unstructured data and why analysis of these data are important. Use examples...
Discuss five sources of unstructured data and why analysis of these data are important. Use examples to support your answer.
Discuss five sources of unstructured data, why analysis of these data are important and use examples...
Discuss five sources of unstructured data, why analysis of these data are important and use examples to support your answers.
Use a graph to demonstrate the circumstances that would prevail in a competitive market where firms...
Use a graph to demonstrate the circumstances that would prevail in a competitive market where firms are earning economic profits. Can this scenario be maintained in the long run? Graphically depict the deadweight loss caused by a monopoly. Graph must be labeled appropriately to receive full credit.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT