greedy-tree-blackbox-frontier-cs-algorithmic-93

Greedy Tree Blackbox

Recover a rooted tree from antichain greedy black-box queries.

Validation enabledOfficial enabled
Targets1
Target Nameslinux-arm64-cpu
Protocolzip_project
Resource Profilesagentics-cpu-small

Greedy Tree Blackbox

This is an interactive challenge. The evaluator first prints:

n ty

The hidden object is a rooted tree on vertices 1..n. Every internal node has at least two children. ty is a source test identifier and has no algorithmic effect.

For a query, print one line:

? sz v1 v2 ... vsz

The vi values must be distinct vertices in [1, n]. The evaluator scans the sequence from left to right, greedily keeps a node only when it is neither an ancestor nor a descendant of any already kept node, and replies with the number of kept nodes. Flush after every query.

To answer, print one line:

! p1 p2 ... pn

pi is the parent of vertex i; the root must have parent 0. Flush and then continue reading for another source case or exit on EOF.

The trusted evaluator owns the hidden parent array, rejects duplicate or out-of-range query elements, validates the exact parent array, and writes result.json. Source scoring gives full credit through 45000 queries, zero at or above 200000, and the original clamped linear ratio between those counts.

Configuration

Manifestagentics.solution.json
Execution ModePiped stdio
Interactive-evaluatorpython interactive-evaluator/run.py
EligibilityOpen
Rank MetricScore

Metrics

Scorescore · higher is better
Public
Source Ratiosource_ratio · higher is better
Public
Case Countcase_count · higher is better · cases
Public
Protocol Errorsprotocol_errors · lower is better · errors
Public
Query Countquery_count · lower is better · queries
Public

Latest Submissions

View all →

Nothing here yet

Top Rankings

View all →

Nothing here yet