-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Add intial translation of the figures for the chapters of dynamic programming, greedy #1336
Conversation
Please review the translation based on the following aspects:
In addition to content, please pay attention to the format:
|
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.
overall looks good to me.
the texts are accurately translated. its just some colors and stuff. some text is grey in CN but different in EN. also bolds. etc
...hapter_dynamic_programming/dp_problem_features.assets/climbing_stairs_constraint_example.png
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/dp_solution_pipeline.assets/min_path_sum_dfs.png
Outdated
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/dp_solution_pipeline.assets/min_path_sum_dp_step1.png
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/dp_solution_pipeline.assets/min_path_sum_dp_step3.png
Outdated
Show resolved
Hide resolved
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 word "grid" on EN is not grey.
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.
Same comment as above, plus
I understand that the author wants to keep the words on the same line, but "Min path sum" is actually pretty confusing to many.
I'd suggest spelling everything out and changing it to "Minimize the sum of numbers on the path from the..."
Also, "Move one grid" is grammaly incorrect – it should've been "move by one grid"
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.
Minimize the sum of numbers on the path from the...
https://leetcode.com/problems/minimum-path-sum/
Min path sum
is the heading of the problem, so I believe it is not ambiguous, and it's clear to show the relationship between the original problem and the sub-problems.
en/docs/chapter_dynamic_programming/knapsack_problem.assets/knapsack_dp_comp_step1.png
Outdated
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/knapsack_problem.assets/knapsack_dp_comp_step2.png
Outdated
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/knapsack_problem.assets/knapsack_example.png
Outdated
Show resolved
Hide resolved
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.
Apple in EN while Banana in CN!!!!!
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.
yep
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.
Besides the above, it should've been "the pineapple with weight = 30". "30 weight pineapple" is hard to read for native speakers.
en/docs/chapter_greedy/greedy_algorithm.assets/coin_change_greedy_vs_dp.png
Show resolved
Hide resolved
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.
Great work! No substantial problem, plz consider the mentioned points.
...hapter_dynamic_programming/dp_problem_features.assets/climbing_stairs_constraint_example.png
Show resolved
Hide resolved
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.
should the text alignment be centered in the text box?
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.
Both terms are okay for me, although I personally prefer left-aligned English texts.
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.
yep
en/docs/chapter_greedy/max_product_cutting_problem.assets/max_product_cutting_greedy_infer1.png
Show resolved
Hide resolved
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.
Please see my comments. I didn't repeat my comment for all the pictures where I think 面值 should have been translated to "face value"
...hapter_dynamic_programming/dp_problem_features.assets/climbing_stairs_constraint_example.png
Show resolved
Hide resolved
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.
"state transition equation" is grammarly correct but harder to understand.
"equation of state transition" is better.
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.
I saw a relevant usage of "state transition equation" here, in the first section, point five.
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.
"state-transition equation" has its dedicated meaning, background here:
https://en.wikipedia.org/wiki/State-transition_equation
Again it's grammarly correct, but harder to read.
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.
Fom GPT-4: In the context of dynamic programming, the term "state transition equation" is more commonly used and recognized. This term describes the mathematical expression or formula that defines how the state of a dynamic system changes from one state to another based on certain inputs or actions. The equation typically encapsulates how the current state and the decisions made influence the next state.
The phrase "equation of state transition" might convey a similar meaning, but it is less standard and might not be immediately recognized or understood in the field of dynamic programming or related disciplines like control theory and systems engineering.
en/docs/chapter_dynamic_programming/dp_problem_features.assets/min_cost_cs_example.png
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/dp_solution_pipeline.assets/min_path_sum_dp_step1.png
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/dp_solution_pipeline.assets/min_path_sum_dp_step12.png
Show resolved
Hide resolved
en/docs/chapter_greedy/greedy_algorithm.assets/coin_change_greedy_strategy.png
Show resolved
Hide resolved
en/docs/chapter_greedy/greedy_algorithm.assets/coin_change_greedy_vs_dp.png
Show resolved
Hide resolved
en/docs/chapter_greedy/max_capacity_problem.assets/max_capacity_moving_long_board.png
Show resolved
Hide resolved
en/docs/chapter_greedy/max_capacity_problem.assets/max_capacity_moving_short_board.png
Show resolved
Hide resolved
en/docs/chapter_greedy/max_product_cutting_problem.assets/max_product_cutting_greedy_infer1.png
Show resolved
Hide resolved
...hapter_dynamic_programming/dp_problem_features.assets/climbing_stairs_constraint_example.png
Show resolved
Hide resolved
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.
I saw a relevant usage of "state transition equation" here, in the first section, point five.
...hapter_dynamic_programming/dp_problem_features.assets/climbing_stairs_constraint_example.png
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/edit_distance_problem.assets/edit_distance_dp_step10.png
Outdated
Show resolved
Hide resolved
en/docs/chapter_dynamic_programming/edit_distance_problem.assets/edit_distance_dp_step2.png
Show resolved
Hide resolved
en/docs/chapter_greedy/max_capacity_problem.assets/max_capacity_moving_short_board.png
Show resolved
Hide resolved
en/docs/chapter_greedy/max_capacity_problem.assets/max_capacity_moving_long_board.png
Show resolved
Hide resolved
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.
I think "denomination" is correct as it says in the dictionary here
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.
Frank did a good job of addressing the few concerns I had. Overall looks good. I understand these are captions, so the language needs to be short and direct. I focused on making sure they are consistent (which is the only feedback I gave)
Thanks for your thorough review! @frankliuao, @pengchzn, @yuelinxin, @K3v123, @RafaelCaso, most of the comments have been addressed. |
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: