history-traversal-benchmark
收藏资源简介:
该数据集服务于确定性分层遍历模型,这是一个专为确定性历史遍历和后向导航设计的导航模型。其核心目标是提供一个替代传统后退/前进堆栈的系统,在该系统中,所有输入被永久保存,导航光标在一个完全持久化的序列中移动,从而确保即使在从历史记录中间进行分支时,遍历行为也能保持一致性和可预测性。主要数据集文件navigation_dataset.txt经过了字节级的、彻底的人工手动审查和验证,被确立为100%正确的基准真值数据,用于模型训练和评估。数据以纯文本格式组织,模拟了一个基于标准输入/输出的交互环境:程序从标准输入逐行读取指令,任何非连字符(-)的输入行代表访问一个新路径或节点,而连字符(-)则指示光标沿着已保存的、扁平化的历史遍历序列向前或向后移动。每次输入后,程序在标准输出中仅打印当前的路径位置,格式简洁,无额外文本。该数据集具有确定性、状态保持、分支历史保留、方向保持和完全历史持久化等特性。它特别适用于评估AI代码生成能力、算法实现正确性、序列推理技能,以及进行自动化测试和基准测试,尤其是在需要处理复杂状态化导航逻辑的场景中。
This dataset serves the Deterministic Hierarchical Traversal Model, a navigation model specifically designed for deterministic history traversal and backward navigation. Its core objective is to provide an alternative to traditional back/forward stacks, where all inputs are permanently saved, and the navigation cursor moves within a fully persistent sequence, ensuring consistent and predictable traversal behavior even when branching from the middle of the history. The main dataset file navigation_dataset.txt has undergone byte-level, thorough manual review and validation, established as 100% correct ground truth data for model training and evaluation. The data is organized in plain text format, simulating an interactive environment based on standard input/output: the program reads instructions line by line from standard input, where any non-hyphen (-) input line represents accessing a new path or node, while a hyphen (-) indicates the cursor moving forward or backward along the saved, flattened history traversal sequence. After each input, the program prints only the current path position in standard output, in a concise format without additional text. The dataset features determinism, state preservation, branch history retention, direction preservation, and complete history persistence. It is particularly suitable for evaluating AI code generation capabilities, algorithm implementation correctness, sequence reasoning skills, as well as for automated testing and benchmarking, especially in scenarios requiring handling complex stateful navigation logic.
数据集概述:Deterministic Hierarchical Traversal Model
基本信息
- 数据集名称: Deterministic Hierarchical Traversal Model
- 数据集地址: https://huggingface.co/datasets/usermma/history-traversal-benchmark
- 许可证: MIT
- 语言: 英语
- 标签: code, navigation, deterministic, back-navigation, persistent-history, stateful-traversal, branch-preserving, algorithm-benchmark, coding-benchmark, sequence-reasoning, reproducible, dataset, testing, input-output, cursor-tracking, reference-implementation
核心概念
该数据集定义了一个确定性历史遍历与回退导航模型,核心思想是将导航视为在持久化遍历路径中的移动。与传统的后退/前进栈不同,该模型将所有输入永久保存,并在一个完全持久化的序列中移动导航游标。
输入规则
- 程序从stdin逐行读取输入
- 任何不是
-的输入被视为新路径/页面/节点,按下回车后立即打印当前位置 - 输入
-符号表示沿历史序列移动游标,方向在边界处自动反弹,每次输入后打印当前位置
输出规则
- 每次回车后仅打印当前路径
- 无提示、标签或额外文本
数据集验证
- navigation_dataset.txt 文件是完全人工验证的(100%正确),由创建者逐字节手动编写和审阅
- 其他文件通过自动化测试进行验证,而非逐行人工检查
- 仅
navigation_dataset.txt被视为完全人工验证的ground truth
关键特性
- 确定性: 输出可完全复现
- 有状态遍历: 维护导航状态
- 分支保持历史: 从中间分支时不销毁历史记录
- 方向保持遍历: 自动保留遍历方向
- 完全持久化输入历史: 所有输入永久保存
适用场景
- AI代码生成基准测试
- 算法评估与推理基准测试
- 有状态导航测试
- 序列推理任务评估
- 输入输出测试
- 算法合成评估
参考实现
数据集中包含C语言参考实现,也可用C++、Python、JavaScript等其他语言实现。




