Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translation: chapter_introduction/summary.md #963

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs-en/chapter_introduction/summary.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Summary

- Algorithms are ubiquitous in our daily lives and are not a distant knowledge. In fact, we have learned many algorithms without even realizing it to solve life's problems, big and small.
- The principle of looking up a dictionary is consistent with the binary search algorithm. The binary search algorithm embodies the important algorithmic idea of divide and conquer.
- The process of sorting poker is very similar to the insertion sort algorithm. The insertion sort algorithm is suitable for sorting small data sets.
- The steps in currency change are essentially greedy algorithms, taking the best option that currently seems to be available at each step.
- An algorithm is a set of instructions or operational steps to solve a specific problem in a limited amount of time, while a data structure is the way data is organized and stored in a computer.
- Data structures and algorithms are closely intertwined. The data structure is the cornerstone of the algorithm, while the algorithm is the arena in which the data structure is utilized.
- We can analogize data structures and algorithms to putting together building blocks, where the blocks represent the data, the shapes and connections of the blocks represent the data structure, and the steps in putting the blocks together correspond to the algorithm.
- Algorithms are ubiquitous in daily life and are not as remote and complex as they might seem. In fact, we have already unconsciously learned many algorithms to solve various problems in life.
krahets marked this conversation as resolved.
Show resolved Hide resolved
- The principle of looking up a word in a dictionary is consistent with the binary search algorithm. The binary search algorithm embodies the important algorithmic concept of divide and conquer.
- The process of organizing playing cards is very similar to the insertion sort algorithm. The insertion sort algorithm is suitable for sorting small datasets.
- The steps of making change in currency essentially follow the greedy algorithm, where each step involves making the best possible choice at the moment.
- An algorithm is a set of instructions or operational steps used to solve a specific problem within a finite amount of time, while a data structure is the way data is organized and stored in a computer.
krahets marked this conversation as resolved.
Show resolved Hide resolved
- Data structures and algorithms are closely linked. Data structures are the foundation of algorithms, and algorithms are the stage to utilize the functions of data structures.
- We can liken data structures and algorithms to assembling building blocks. The blocks represent data, the shape and connection method of the blocks represent data structures, and the steps of assembling the blocks correspond to algorithms.
krahets marked this conversation as resolved.
Show resolved Hide resolved