View full-text article in PMC Entropy (Basel). 2023 Jul 14;25(7):1066. doi: 10.3390/e25071066 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 SDM Input:Stream X, distance metric d(·,·), parameter ε∈(0,1), solution size k∈Z+ Output:A set S⊆X with |S|=k 1:U={dmin(1−ε)j:j∈Z0+∧(1−ε)j≥dmindmax} 2:Initialize Sμ=∅ for each μ∈U 3:for all x∈X do 4: for all μ∈U do 5: if |Sμ|<k and d(x,Sμ)≥μ then 6: Sμ←Sμ∪{x} 7:return S←arg maxμ∈U:|Sμ|=kdiv(Sμ)