Joke Collection Website - Mood Talk - What are the uses of trees and graphs in C language?

What are the uses of trees and graphs in C language?

Tree and graph are two common data structures, which are widely used in computer technology. They are also two ways of thinking and are often used to solve practical problems. The most intuitive use of trees is to express the pedigree of human society and various social organizations with the image of trees. Trees are also widely used in the computer field. For example, when compiling the source program as follows, a tree can be used to represent the following syntax structure of the source program. In the database system, the tree structure is also one of the important organizational forms of information, and all problems with hierarchical relationships can be described by trees. The data structure diagram is the abstraction of the actual situation, that is, the logical model, and then the problem is solved by computer programming. For example, a very complicated map with many cities and roads, how to find the shortest path? Of course, if you use a computer to calculate, you have to use a chart to express it and so on. There are many uses. If you study mathematical modeling, you will often meet them. Study hard.