From 060a0280085d0a288c166a4e7d5d664862f02d96 Mon Sep 17 00:00:00 2001 From: K3v123 <123932560+K3v123@users.noreply.github.com> Date: Sun, 24 Dec 2023 15:49:38 +1300 Subject: [PATCH] translation: Update algorithms_are_everywhere.md (#998) * Update algorithms_are_everywhere.md I made changes to yuelinxin's suggestions. again thank you so much for your suggestion yuelinxin! * Update algorithms_are_everywhere.md --- docs-en/chapter_introduction/algorithms_are_everywhere.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-en/chapter_introduction/algorithms_are_everywhere.md b/docs-en/chapter_introduction/algorithms_are_everywhere.md index 47e0e2c63..63e440b64 100644 --- a/docs-en/chapter_introduction/algorithms_are_everywhere.md +++ b/docs-en/chapter_introduction/algorithms_are_everywhere.md @@ -4,10 +4,10 @@ When we hear the word "algorithm", we naturally think of mathematics. However, m Before we formally discuss algorithms, an interesting fact is worth sharing: **you have already learned many algorithms unconsciously and have become accustomed to applying them in your daily life**. Below, I will give a few specific examples to prove this point. -**Example 1: Looking Up a Dictionary**. In a standard dictionary, each word corresponds to a phonetic transcription and the dictionary is organized alphabetically based on these transcriptions. Let's say we're looking for a word that begins 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. Suppose we're searching for a word that starts with the letter $r$. This is typically done in the following way: 1. Open the dictionary around its midpoint and note the first letter on that page, assuming it to be $m$. -2. Given the sequence of words following the initial letter $m$, estimate where words starting with the letter $r$ might be located within the alphabetical order. +2. Since $r$ comes after $m$ in the alphabet, we exclude the first half of the dictionary and narrow the search to the second half. 3. Iterate steps `1.` and `2.` until you find the page where the word begins with the letter $r$. === "<1>"