← Search

Data · dataset · 2026

PSTACK-COMPRESS: Experimental Code v2

Listed in Teesside University Research Data Repository

This dataset contains the complete Python source code accompanying the paper: Piotr Frydrych, "The Preisach Extremum Stack as an Order-2 Davenport–Schinzel Sequence: Online Compression and Sufficient Statistics for Rate-Independent Streams," Discrete Applied Mathematics, submitted May 2026.

Description

The code implements PSTACK-COMPRESS (Algorithm 1 from the paper): an online, linear-time algorithm for lossless compression of rate-independent data streams based on the Preisach extremum stack.

The extremum stack Π_n records the alternating local maxima and minima of a discrete sequence that survive the Preisach wiping-out rule. The paper proves that Π_n is the Kolmogorov-minimal sufficient statistic for the class R of all computable rate-independent functionals, and that PSTACK-COMPRESS is asymptotically optimal: no online algorithm can produce a shorter exact representation for any R-query. The dataset includes: pstack_dam_experiments.py — full implementation of PSTACK-COMPRESS, eight synthetic signal generators (monotone, slow sine, trend+noise, white noise, piecewise/SCADA-like, ECG-like, financial random walk, adversarial worst-case), a self-test suite verifying the Definition 4 stack invariant at every time step, and benchmark routines reproducing all numerical results reported in Sections 7.1–7.4 of the paper (compression ratios, adversarial lower bound verification, white noise k/n distribution, speedup of online vs. naive algorithm).

Read the rest (2 more)

README.md — detailed usage instructions, description of all signal classes, code examples reproducing specific tables and figures from the paper, and citation information. No real-world datasets are used. All signals are generated synthetically and deterministically from fixed random seeds, ensuring full reproducibility of every number reported in the paper.

Keywords Preisach operator, extremum stack, Davenport–Schinzel sequences, rate-independent functionals, online compression, Kolmogorov complexity, sufficient statistic, time series, data streams, hysteresis Related publication Frydrych, P. (2026). The Preisach Extremum Stack as an Order-2 Davenport–Schinzel Sequence: Online Compression and Sufficient Statistics for Rate-Independent Streams.

Links

Where it is published

Catalogue records · 1

Topics

Provenance · 1 source records, 8 field assertions
SourceKeyLast seenRaw
Teesside University Research Data Repositoryoai:data.mendeley.com/9xbszvtvfh.110 h agoJSON v1
FieldAssertionExtractorEvidence
access_levelsource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].anzsrc:field:400607mapping · researchdata tees ac ukvocabulary-mapper@1.0.0keywords['Signal Processing']
concepts[field].local:field:computer-science-aimapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].local:field:earth-environmentalmapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
descriptionsource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0/metadata/dc/description
licensesource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0/metadata/dc/rights
publication_datesource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
titlesource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0/metadata/dc/title