"Hero Programming Experience Course" Lesson 12 | Recursion

Zero, written in front

  This chapter is excerpted from "Static Writing Algorithm in the Deep of Night" , mainly explaining the most basic search algorithm, and the idea used in it is recursion. Of course, if you already know this set of experience courses well, you can contact me through the full set of algorithm time discount.
  All the blogger’s courses are based on c/c++. I don’t know java, but I always emphasize that learning algorithms has nothing to do with language. Algorithms are just an idea. As long as you learn a language well, you can learn algorithms. , but the code cannot be typed out, that is, the language level has not passed.

1. The principle of the search algorithm

  • The principle of the search algorithm is enumeration. Utilize the high performance of computers, give the rules formulated by humans, enumerate all feasible situations, and find feasible solutions or optimal solutions.

Guess you like

Origin blog.csdn.net/WhereIsHeroFrom/article/details/129218590