B树教学演示系统 Pro

交互式可视化学习B树数据结构 - 增强版

键盘快捷键

  • I 插入模式
  • D 删除模式
  • S 查找模式
  • Z 撤销
  • Y 重做
  • R 重置
  • P 暂停/继续
  • ? 切换帮助

控制面板

历史记录: {{ historyIndex + 1 }} / {{ history.length }}

教学案例

{{ animationSpeed }}ms

算法步骤 - {{ currentOperation.type }}

{{ index + 1 }}

步骤 {{ currentStepIndex + 1 }}: {{ currentOperation.steps[currentStepIndex].title }}

{{ currentOperation.steps[currentStepIndex].description }}

{{ line.text }}
                        

B树结构可视化 动画进行中...

操作日志

{{ log.operation }} {{ log.detail }}
{{ log.time }}

暂无操作记录

调试检查器

B树属性

  • 节点总数: {{ debugInfo.nodeCount }}
  • 树高: {{ debugInfo.height }}
  • 键总数: {{ debugInfo.totalKeys }}
  • 叶子节点数: {{ debugInfo.leafCount }}

验证状态

  • B树有效性: {{ debugInfo.isValid ? '✓ 通过' : '✗ 失败' }}
  • 平衡性: {{ debugInfo.isBalanced ? '✓ 平衡' : '✗ 不平衡' }}
  • 键序: {{ debugInfo.keysInOrder ? '✓ 有序' : '✗ 无序' }}

性能统计

  • 插入操作: {{ stats.insertCount }} 次
  • 删除操作: {{ stats.deleteCount }} 次
  • 查找操作: {{ stats.searchCount }} 次
  • 节点分裂: {{ stats.splitCount }} 次