আপনার গোপনীয়তার পছন্দ

প্রাপ্তবয়স্ক দর্শকদের বুঝতে, সম্পন্ন সাইন-আপ পরিমাপ করতে এবং ক্যাম্পেইন উন্নত করতে KiwiBee ঐচ্ছিক Google Analytics, Google Ads ও Meta Pixel কুকি ব্যবহার করে। প্রয়োজনীয় কুকি সবসময় চালু থাকে। OpenAI-এর ChatGPT Ads Pixel বিজ্ঞাপনের সম্মতির পরে পৃষ্ঠা দেখা ও জমা দেওয়া অনুসন্ধানও পরিমাপ করে এবং মিল খোঁজার জন্য হ্যাশ করা যোগাযোগের তথ্য ব্যবহার করতে পারে। গোপনীয়তা নীতি

মূল কনটেন্টে যান

Binary Search Tree & AVL 3D

  • গণিত
—

এই সিমুলেশন সম্পর্কে

Binary Search Tree & AVL 3D visualizes hierarchical data structures in three-dimensional space. Every node displays its integer key and live AVL balance factor BF = height(Left) − height(Right), color-coded emerald for balanced nodes and coral red when |BF| exceeds 1. A glowing gold comparison orb hops down the tree from the root, testing whether the target key is smaller (go left) or larger (go right) than each ancestor. Students can switch between Sorted Skewed Input, Balanced Input, and Random Keys, click any node to measure exact search comparisons, and toggle Auto-balance AVL rotations to see LL, RR, LR, and RL rotations keep tree height logarithmic.

শিক্ষার্থীরা কী অনুসন্ধান করতে পারে

  • Select Sorted Skewed Input and turn off Auto-balance AVL rotations to see the keys 10, 20, 30... form a degenerate diagonal chain of height 7.
  • Turn Auto-balance AVL rotations back on and watch the tree immediately fold into a balanced 3-level pyramid of height 3 with BF = 0 everywhere!
  • Click any node sphere in the 3D tree to launch the gold comparison orb from the root and count how many steps it takes to reach that key.
  • Press Insert Next Key repeatedly to watch new numbers drop into position and trigger automatic single or double AVL rotations.
  • Drag any node in 3D space to inspect its left and right subtrees, then release to watch it spring back into layout.

শিখন উদ্দেশ্য

  1. 1State the Binary Search Tree ordering invariant: all keys in the left subtree are smaller than the parent, and all keys in the right subtree are larger.
  2. 2Explain why inserting sorted keys into an unbalanced BST degrades search time from O(log n) to O(n).
  3. 3Compute the balance factor BF = height(L) − height(R) of any tree node and identify when an AVL rotation is required.
  4. 4Compare the worst-case number of search comparisons in a balanced AVL tree versus a skewed BST.

শিক্ষকদের সাধারণ প্রশ্ন

What makes a Binary Search Tree (BST) fast for searching?

At every node, the BST invariant tells you whether the target key must lie in the left subtree or the right subtree. In a balanced tree, each comparison eliminates half of the remaining nodes, requiring at most log₂(n) steps.

What is the worst-case scenario for a standard BST?

If keys are inserted in ascending or descending sorted order (such as 10, 20, 30, 40...), every new key attaches as a right child. The tree degenerates into a linked list of height n, slowing searches down to O(n).

How does an AVL tree prevent the tree from becoming skewed?

Named after inventors Adelson-Velsky and Landis (1962), an AVL tree tracks each node's balance factor BF = height(L) − height(R). Whenever an insertion causes |BF| to reach 2, the tree performs a local Left or Right rotation in O(1) time to restore |BF| ≤ 1.

Why does the simulation color some nodes green, cyan, and red?

Emerald green nodes have perfectly equal left and right subtree heights (BF = 0), cyan nodes differ by one level (|BF| = 1, still valid AVL), and red nodes have |BF| ≥ 2, indicating an unbalanced subtree that needs rotation.

এই সিমুলেশন এমবেড করুন

আপনার এলএমএস, ব্লগ বা ক্লাসের সাইটে বসিয়ে দিন — বিনামূল্যে।

<iframe src="https://kiwibee.io/bn/simulations/binary-search-tree-avl-3d-3d-simulation/embed" title="Binary Search Tree &amp; AVL 3D | KiwiBee" loading="lazy" allowfullscreen style="width:100%;height:min(70vh,620px);min-height:420px;border:0;border-radius:16px"></iframe>

ইন্টারঅ্যাকটিভ বিজ্ঞান আপনার শ্রেণিকক্ষে নিয়ে আসুন

KiwiBee-এর বিনামূল্যের শিক্ষক কর্মক্ষেত্র পাঠ পরিকল্পনা, ওয়ার্কশিট, শ্রেণিকক্ষের সরঞ্জাম ও গ্রেডবুক এক জায়গায় নিয়ে আসে।

বিনামূল্যে শুরু করুন এবং আপনার প্রথম ক্লাস তৈরি করুন

অথবা শিক্ষক কর্মক্ষেত্র ঘুরে দেখুন →