Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
English

Binary search trees

  • A binary search tree (BST) stores values so they stay sorted and are fast to find.
  • Each node holds a value and links to up to two children: a left and a right.
  • The top node is the root. A node with no children is a leaf.
ไทย

Binary Search Trees

  • Binary search tree (BST) เก็บค่าเพื่อให้มันคงความเป็น sorted และค้นหาได้เร็ว
  • แต่ละ node เก็บค่าและเชื่อมต่อกับ children สูงสุด สอง ตัว:一个 left和一个 right。
  • Node ด้านบนคือ root. Nodeที่ไม่มี children คือ leaf

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP