Skip to content · ⁨الانتقال إلى المحتوى⁩

Binary search trees · ⁨أشجار البحث الثنائية⁩

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.
العربية

أشجار البحث الثنائية

  • شجرة البحث الثنائية (BST) تخزن قيمًا بحيث تبقى مرتبة وسهلة العثور عليها.
  • كل عقدة تحمل قيمة وترتبط بما يصل إلى طفلين: left وright.
  • العقدة العليا هي الجذر. عقدة بدون أطفال هي ورقة.

Handout · ⁨ورقة عمل⁩

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP