Resources of one step of a stack search with a leaf oracle #
The fine-grained branching algorithms run a stack search, one step at a time: when the stack is
empty the state is kept; when the node on top is a leaf, an oracle g is called on it and its
answer is recorded in the state; otherwise the node is expanded in place. If everything except
the oracle call is polynomial-time, one step takes polynomial time and space in the encoded state,
plus the time (respectively space) of the oracle on the node, plus a polynomial in the encoded
state and answer, the last two charged only on leaf steps.
Main results #
Cslib.Complexity.exists_computableInO_searchStep: the time and space of one search step.
The time and space of one search step. A step that keeps a finished state (done),
records the oracle's answer g (top x) on a leaf (isLeaf) and otherwise expands the state
(expand) runs within a polynomial in the encoded state, plus, on leaf steps only, the time
(respectively space) of g on top x and a polynomial in the encoded state and answer.