Questions tagged [sequence]
The sequence tag has no summary.
24 questions
-1 votes
3 answers
407 views
Running series of steps depending on implementation
What is the "best way" to implement something like this: I have a list of steps that will be iterated and ran for an IContext instance. But, some steps will only apply to a specific instance ...
0 votes
1 answer
421 views
How to return an new Object as Value ?[Sequence Diagram]
within the sequence diagram it is possible to return a value, with return of a method edge, however this is usually done with a simple numeric or string value. Is it possible to return a whole object? ...
2 votes
3 answers
2k views
Algorithm for optimizing text compression
I am looking for text compression algorithms (natural language compression, rather than compression of arbitrary binary data). I have seen for example An Efficient Compression Code for Text ...
3 votes
1 answer
340 views
Design patterns for handling patterns in object sequences
There some times appears a task when you have a sequence of object and you need perform some action when a particular pattern (subsequence?) occurs. As more concrete example we can imagine a log ...
-1 votes
1 answer
1k views
Find missing number in sequence in string [closed]
I have a string that contains numbers in sequence. There are no delimiters between numbers. I have to find missing number in that sequence. For example: 176517661768 is missing the number: 1767 ...
4 votes
3 answers
809 views
Determine frequency-range that matches closest to input list of frequencies
Since this question is not about "code not working", I'm asking my first question here instead of StackOverflow. Inform me if any required information is missing from the question. Setup: I have two ...
2 votes
2 answers
659 views
Shuffle/Randomize a collection without knowing the number of items? [closed]
Let's say I have a sequence of items of unknown length, n. I want to randomize the order of this sequence without having to go through the entire sequence. Are there any algorithms that can do this? ...
-1 votes
2 answers
3k views
'Tuple' vs 'List' operations in python
Only two operations are allowed on tuple, as shown below. Operations like insert / delete at an index is not allowed. I learnt that tuple is an immutable data model. list allows insert and delete ...