Dual-Number Associative Arrays for One-Pass Provenance and Sensitivity
Abstract
Associative arrays and GraphBLAS express sparse computations as matrix operations over a chosen semiring, but the result normally contains only the ordinary value. We define a dual-number extension that carries this value together with independent auxiliary channels in the same computation. We prove that the construction is a split square-zero extension of any commutative semiring. Over min-plus, the auxiliary value is the weight of the shortest walk constrained to use the corresponding edge, excluding the weight of that edge. This gives an exact shortest-path membership test for that edge, although ties return the union of the edges on all optimal paths. We implement the min-plus construction using sparse \texttt{python-graphblas} operations, with a fixpoint test that checks the value and auxiliary components together. We validate the implementation across 18,692 checks, including 2,825 tied target pairs. On random graphs with 100,000 vertices and 32 seed edges, the dual method is faster than the sequential algorithm but slower than a min-plus-specific batched method. This difference is largely explained by the dual method requiring as many sweeps. Thus, the main contribution is a general algebraic approach with competitive sparse performance, rather than information that specialized min-plus algorithms cannot already compute.
Create a lesson
Metadata
- Comments
- 5 pages, 1 figure
Related papers
Better-than-3 Approximation for 2ECSS Using the Primal-Dual Method
Shared title terminologycs.DSAna Cezara Danciu, Sharat Ibrahimpur
Improved Asymptotic Approximation Guarantees for Continuous-Review Lost-Sales and Dual-Sourcing Inventory Models
Shared title terminologycs.DSWeitian Tong, Yao Xu
A 4.542-approximation for the Small Cuts Cover problem via a multi-rate primal-dual algorithm
Shared title terminologycs.DSZeev Nutov, Elazar Koren
Dual-Slack Frontier Matching: Parallel Approximate Maximum-Product Matching
Shared title terminologycs.DSMarc A. Tunnell, Oguz Selvitopi, Xiaoye Sherry Li
Minimum Membership Dominating Set and Its Generalization: Leafage vs. Asteroidal Number
Shared title terminologycs.DSYuma Tamura, Daichi Wakayama, Akira Suzuki et al.
Coresets for Capacitated Clustering via Dual Concentration
Shared title terminologycs.DSMilind Prabhu, Chris Schwiegelshohn, Sudarshan Shyam et al.