-
Notifications
You must be signed in to change notification settings - Fork 14k
translation: Update algorithms_are_everywhere.md #1733
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
base: main
Are you sure you want to change the base?
Conversation
|
||
Before formally discussing algorithms, there's an interesting fact worth sharing: **you have already unconsciously learned many algorithms and have become accustomed to applying them in your daily life**. Here, I will give a few specific examples to prove this point. | ||
Before we start discussing about algorithms officially, there's an interesting fact worth sharing: **you've learned many algorithms without realizing it and are used to applying them in your daily life**. Here, I will give a few specific examples to prove this point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the "unconsciously" is better than "without realizing it" for the Chinese idioms "不知不觉".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing that out!
|
||
**Example 1: Looking Up a Dictionary**. In an English dictionary, words are listed alphabetically. Suppose we're searching for a word that starts with the letter $r$. This is typically done in the following way: | ||
**Example 1: Looking Up a Dictionary**. In an English dictionary, words are listed alphabetically. Assuming we're searching for a vocabulary that starts with the letter $r$, this is typically done in the following way: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vocabulary is the total number of words you know. Using the word "word" is correct.
Reference:
https://www.wikihow.com/Use-a-Dictionary Part 2 Looking Up a Word
|
||
1. Open the dictionary to about halfway and check the first letter on the page, let's say the letter is $m$. | ||
2. Since $r$ comes after $m$ in the alphabet, we can ignore the first half of the dictionary and focus on the latter half. | ||
1. Open the dictionary to about halfway and check the first vocabulary of the page, let's say the letter starts with $m$. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"vocabulary" -> "letter". "starts with" > "is".
The Chinese is "首字母", which is the first letter. Dictionaries arrange words from A to Z. We need to locate the first letter of the target word.
Reference:
https://www.wikihow.com/Use-a-Dictionary Part 2 Looking Up a Word
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, are we checking for the first complete word in the list, or the first letter of the first word on the page?
E.g. The list is
['apple', 'banana', 'corn']
, are we checking forapple
or are we checking fora
?
For your reference:
Vocabulary vs. Word - What's the Difference?
1. Open the dictionary to about halfway and check the first letter on the page, let's say the letter is $m$. | ||
2. Since $r$ comes after $m$ in the alphabet, we can ignore the first half of the dictionary and focus on the latter half. | ||
1. Open the dictionary to about halfway and check the first vocabulary of the page, let's say the letter starts with $m$. | ||
2. Since $r$ comes after $m$ in the alphabet, the first half can be ignored and the search is narrowed down to the second half. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
search space?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that will be more accurate. Thanks.
|
||
**Example 3: Making Change**. Suppose we buy goods worth $69$ yuan at a supermarket and give the cashier $100$ yuan, then the cashier needs to give us $31$ yuan in change. They would naturally complete the thought process as shown in the figure below. | ||
**Example 3: Making Change**. Imagine purchasing items costing $\$69$ at a supermarket. If you give the cashier $\$100$, they will need to provide you with $\$31$ in change. This process can be clearly understood as illustrated in the figure below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imagine > Assuming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I've reread this sentence, it sounds a bit awkward. Would "Assume making a purchase of $69 at a supermarket..." sound more fluent?
Thank @beatrix-chan for the PR! Did you use an AI agent to help optimize the translation? If so, which model do you use? |
Hi @krahets thanks for asking. In terms of translation, I did not use any AI models, all translations are done by me. But I have used Grammarly to check the grammars, and Microsoft Copilots to check the fluency. Hopefully that helps 😺 |
If this pull request (PR) pertains to Chinese-to-English translation, please confirm that you have read the contribution guidelines and complete the checklist below:
English Edit Description
General Modifications
Deviation Explanations
Tip
If you have any questions or need further explanations from me, please don't hesitate to comment below! I will get back to you as soon as possible.
简体中文修改说明
主要修改
Note
简体中文直接翻译 “词汇” 和 “字母” 成英语是 “word” 和 “letter” 没错,但英语词语里它们的意思跟中文有点差异。用“vocabulary”(或简写 “vocab”)比较合适。
偏差解释
Tip
若有问题或希望我更详细地解释的话,可以在下面留言!我会尽快回复。