Is there an algorithm to find the minimal sequence(s) within a large sequence?
Without any prior knowledge of what those sequences would be?
For example, given the sequence {2,3,1,2,3,1}, it would return {2,3,1}
Additionally, if there is a non-repeating sequence alongside it, i.e. {2,3,1,2,3,1,1,2,3,4}, that sequence would simply get ignored, and you would get {2,3,1} {1,2,3,4}
And lastly, if there is a non-repeating sequence between, i.e. {2,3,1,1,2,3,4,2,3,1}, you would also get {2,3,1} {1,2,3,4}
Any guidance in this area would be appreciated. I've been playing around with reg-ex's to try and get that to work, but am not sure if that is the best way to go, and even if so, have not been able to get a regex to perform that operation.