Files
hello-algo/ja/docs/chapter_tree/binary_tree.assets/binary_tree_definition.a11y.json
T
Yudong Jin 53611a0ae9 Add screen-reader figure descriptions for English, Japanese, Korean, and Russian (#2043)
* Translate screen-reader figure descriptions into four book languages

* Clarify the spoken exponent in the time-complexity table

* Polish translated figure explanations and spoken math after full-book review
2026-11-18 16:23:32 +08:00

69 lines
2.4 KiB
JSON

{
"schema_version": 2,
"title": "二分木のノードと部分木",
"summary": "根とその左右の枝を例に、直接つながった 1 個の子ノードと、その子孫すべてを含む部分木の違いを示します。",
"context": [
"4 層のパーフェクト二分木に 15 個のノードがあります。根は 1 で、上の層から順に、各層を左から右へ見ると値は 1 から 15 まで並びます。最下層の 8 から 15 は子のない葉です。1 から 7 までの、葉ではない 7 個のノードについて、左右の子を表に示します。"
],
"description": [
"オレンジ色で囲んだ領域は根 1 の左部分木、青色の領域は右部分木です。各領域には部分木の根とそのすべての子孫が含まれます。"
],
"tables": [
{
"caption": "図のすべての内部ノードとその左右の子",
"headers": [
"親ノード",
"左の子ノード",
"右の子ノード"
],
"rows": [
[
"1",
"2",
"3"
],
[
"2",
"4",
"5"
],
[
"3",
"6",
"7"
],
[
"4",
"8",
"9"
],
[
"5",
"10",
"11"
],
[
"6",
"12",
"13"
],
[
"7",
"14",
"15"
]
],
"row_header": 0
}
],
"result": "親子や部分木の関係は、どのノードを基準にするかで決まります。1 は 2 と 3 の親で、2 は 4 と 5 の親です。図の「親ノード」は、根 1 が 2 と 3 の親であることを示します。根自身には親がありません。",
"frames": [
{
"id": "source-89",
"book_path": "chapter_tree/binary_tree.assets/binary_tree_definition.png",
"title": "二分木のノードと部分木",
"explanation": "根 1 を基準にすると、直接つながっている左の子はノード 2、右の子はノード 3 です。左部分木は 2 を根とする木全体で、2、4、5、8、9、10、11 の 7 個を含みます。右部分木は 3 を根とし、3、6、7、12、13、14、15 の 7 個を含みます。部分木はその根だけでなく、すべての子孫を含みます。"
}
]
}