What is Data Structures and Algorithms

What is Data Structures and Algorithms

Why Study Data Structures and Algorithms:

  • Usually when learning a programming language, it seems there is no need to learn these, we just learn a language in understanding: basic grammar -> Advanced Grammar -> Read the mainstream framework -> make the interface effect -> business logic on it

  • So, when just trying to understand the language of the application level, data structures and algorithms is not so important,

  • However, if you want to learn the language of design level, data structures and algorithms is very important

What is a data structure:

  • Popular talk: is the data structure in the computer, stored and blocking data. The computer is a very large amount of data, how to prevent and stored in an efficient manner is what we need to explore the issue?
  • Like: library storing a lot of books, we not only want to book into them, should also be at the right time to take him out
    • Casually put, according to the phonetic title to put, the shelves are divided into a few areas, by category put, there are many ways to store books
    • Is the data structure of data stored in various ways: data, stack, list, graph, hash tables, queues, trees, stacks, etc.

What is the algorithm (Algorithm)

  • In the process of solving problems, not only will affect the data storage efficiency, the pros and cons will affect the efficiency of the algorithm, then the algorithm in the end what is it?
  • Algorithm definition:
    • A limited instruction set, each instruction described not language dependent
    • Accept some input
    • Generating an output
    • Terminated after a certain limited steps
  • Is the solution to the problem and steps logic
  • Implementing data structures, algorithms can not be separated

———————————————————

Before the class is not no good school, now so far as to learn about, and implementation using js to learn.

Here thank courses offered ilovecoding teacher, speaking of awesome! !

Guess you like

Origin www.cnblogs.com/JCDXH/p/11905923.html