Select learning algorithms and data structures of programming languages

   In the previous article, I explained the importance of the algorithm, in this article, I will explain how best to use the C language to write algorithms.

   As a veteran of the C ++ language, the programming language of Big Brother, in a variety of programming environments have dominated the market, especially in the algorithm contest and machine test stage graduate students, and the face of a rising star in Java Python, without the slightest backward. C ++ to my overall feeling is simple and basic, many schools have computer science student in C language as a first programming language, it is because of this reason. The language now used mostly basic algorithm contest is C, C ++, Java, Python, which occupy the top four languages ​​is the perennial list of programming languages ​​several languages.

   C ++ downward inherited the C language, C language can use the functions and libraries, C ++ can be used, but C ++ has also extended C language features not up, such as STL (Standard Template Library) tool, the Standard Template Library, in standard template library, encapsulates many useful container. It does not require effort to achieve their details and a direct call function to achieve a lot of functions, very convenient. I believe a large part of people will use when writing Java or Python algorithm, because now is when students at the school, or the developer at the time of self-study, will select the appropriate language according to the programming and development jobs, most people will manage as it should choose the highest employment rate of the most promising Java and Python. Have to say, these two languages ​​on the problem of large numbers is very good, can solve the problem of difficult to deal with when C ++ data is too large (Note: It is difficult to deal with, is not no way), but they are in high-precision direction the process is very stressful, and Java and Python, more is used in other aspects, such as aspects of the Web browser, network application systems, machine learning, large data, already highly packaged, the data structure is not conducive to learning this type of knowledge.

   Personal recommendations or learning algorithm in C ++ or C language as a starting point, as long as able to understand the meaning of algorithms and data structures, no matter what language can easily deal with.

Guess you like

Origin blog.51cto.com/14591368/2446107