Data structure is the existence of one or more specific relations between a collection of data elements, including four kinds of basic structures: collection of linear structure, tree structure, figure shape or reticular structure, popular point is the logical structure of data, for example in what structure to store the data in memory,
Algorithm is the actual programming to complete a thing of the methods used in the process, for example when doing math problems both in real life will complete but between them there is a problem with the time is short because of simple method is adopted,
Personal understanding of the algorithms, such as the famous gauss classmate who is genius from an early age (ah), when is a topic, use the different way, the thief quickly, title is: from one to one hundred, the sum, he is first and tail respectively addition, direct 50=101 * 5050, and his next to other children's shoes also is hard to calculate BanZhi head
Nonsense not much said, directly above:
Contrast, obviously, this is a good algorithm for the benefits of the program execution
CodePudding user response:
Supplement, learning algorithms have to know about some of the programming language, learn to really otherwise