Research Article

TV Stream Structuring

Algorithm 2

Post-processingβ€”Type 1.
(1) For all pairs ( 𝑅 𝑖 , 𝑅 𝑖 + 1 ) of successive RepSets
  (a) If 𝑅 𝑖 and 𝑅 𝑖 + 1 have the same number of elements 𝑛
    (i) For j ranging from 1 to 𝑛
         d i s t [ 𝑗 ] = 𝑆 𝑗 𝑖 + 1 β‹… s t a r t _ t i m e βˆ’ 𝑆 𝑗 𝑖 β‹… e n d _ t i m e
    (ii) πœ• ( 𝑅 𝑖 , 𝑅 𝑗 ) = ( m e a n ( d i s t ) , s t a n d a r d _ d e v i a t i o n ( d i s t ) )
      If mean(dist) < 𝛼 and standard_deviation(dist) < 𝛽
         Insert ( 𝑖 , 𝑖 + 1 ) in the result
(2) Return the result