固定参数可处理的线性化监测
Fixed Parameter Tractable Linearizability Monitoring
AI总结:
针对栈、队列、优先队列和映射等数据结构,提出以进程数为参数的固定参数可处理算法,将线性化监测归约为图上的语言可达性问题,并实现显著性能提升。
摘要:
我们研究线性化监测问题,即判断给定的数据结构并发历史是否等价于同一数据结构的某个顺序执行。通常,该问题是$\textsf{NP}$-难的,即使对于寄存器等简单对象也是如此。最近的工作已经确定了受限历史类的可处理情况,特别是无歧义和区分历史。我们从细粒度、参数化的角度重新审视可处理边界。我们证明,对于广泛的数据结构类——包括栈、队列、优先队列和映射——当以进程数为参数时,线性化监测是固定参数可处理的。具体地,我们给出一个运行时间为$O(c^{k} \cdot \textsf{poly}(n))$的算法,其中$n$是历史大小,$k$是进程数,$c$是常数,当$k$较小时性能高效。我们的方法将线性化监测归约为图上的语言可达性问题,即判断带标签图是否存在一条路径,其标签序列属于固定语言$L$。我们识别出捕获上述数据结构顺序规范的语言类,并证明在并发历史诱导的图结构上语言可达性是可高效求解的。我们的结果补充了先前的困难结果和现有的可处理子类,并提供了一个统一的算法框架。我们实现了该方法,并展示了相比现有算法(具有指数级最坏情况行为)的显著运行时间改进。
英文摘要:
We study the linearizability monitoring problem, which asks whether a given concurrent history of a data structure is equivalent to some sequential execution of the same data structure. In general, this problem is $\textsf{NP}$-hard, even for simple objects such as registers. Recent work has identified tractable cases for restricted classes of histories, notably unambiguous and differentiated histories. We revisit the tractability boundary from a fine-grained, parameterized perspective. We show that for a broad class of data structures -- including stacks, queues, priority queues, and maps -- linearizability monitoring is fixed-parameter tractable when parameterized by the number of processes. Concretely, we give an algorithm running in time $O(c^{k} \cdot \textsf{poly}(n))$, where $n$ is the history size, $k$ is the number of processes, and $c$ is a constant, yielding efficient performance when $k$ is small. Our approach reduces linearizability monitoring to a language reachability problem on graphs, which asks whether a labeled graph admits a path whose label sequence belongs to a fixed language $L$. We identify classes of languages that capture the sequential specifications of the above data structures and show that language reachability is efficiently solvable on the graph structures induced by concurrent histories. Our results complement prior hardness results and existing tractable subclasses, and provide a unified algorithmic framework. We implement our approach and demonstrate significant runtime improvements over existing algorithms, which exhibit exponential worst-case behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。