Questions tagged [sequence]
24 questions
6
votes
1 answer
Difference between statechart and sequence diagram
I realise these two diagrams are very similar, with the obvious difference one models the sequence of a certain function, whilst the other models the state throughout a function being carried out.
The differences that I have identified are as…

Prisoner
- 343
- 2
- 4
- 10
5
votes
2 answers
Is there a common mathematical symbology for collections?
I am being asked to define several of my algorithms in mathematical terms to describe my work to a customer. I am trying to determine if anybody knows whether common operators for collections like sequences, lists, tuples, etc have been defined. If…

sesteel
- 75
- 5
5
votes
4 answers
What's stopping Oracle from supporting identity (auto-numeric) columns?
EDIT: As gavenkoa's answer points out, Oracle Database 12c (released a couple of years after this question was asked) has support for Identity Columns.
As far as I know, Oracle's RDBMS is one of the few (the only?) SQL database products that…

Sergio Acosta
- 9,568
- 3
- 25
- 36
4
votes
3 answers
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 dictionaries of type Dictionary…

Abbas
- 543
- 3
- 10
4
votes
2 answers
Strategy game, how do I calculate the parallel actions?
I am building a strategy game where multiple units(5 - 20) fighting each other.
I have a game logic that calculate all the actions that been done on each turn, and send it to the game engine to animate.
Those are the possible actions:
perform…

Ilya Gazman
- 285
- 5
- 14
3
votes
1 answer
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 monitoring solution which should alert when a…

scorpp
- 141
- 2
3
votes
1 answer
Why sequences are recommended as conventional interfaces?
From the reference of berkeley's version of sicp text, It is mentioned that:
Expressing programs as sequence operations helps us design programs that are modular. That is, our designs are constructed by combining relatively independent pieces,…

overexchange
- 2,245
- 2
- 17
- 47
2
votes
3 answers
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 Databases. This algorithm basically uses the words as…

Lance
- 2,537
- 15
- 34
2
votes
1 answer
Figuring out the mean of a stream of data, disregarding values that are way off bounds
I have a stream of integer data and want to perform some statistical analysis on it. I want to calculate the mean and the standard deviation of it. So far it isn't hard, but keep in mind that I am talking about streams of data, I'd prefer not to…

WorldSEnder
- 288
- 1
- 11
2
votes
2 answers
Shuffle/Randomize a collection without knowing the number of items?
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?
Example:
I have 10 items in my sequence: A B C D…

myermian
- 191
- 4
2
votes
1 answer
how could I draw the database transaction commit in the sequence diagram
How could I draw the database transaction commit in the sequence diagram?
EDIT
I want to draw in sequence diagram database transaction commit/rollback process

Roshan
- 123
- 1
- 6
1
vote
1 answer
What is a combined fragment in a UML Sequence Diagram?
Everything is in the question. I've just discovered this new feature and I don't really understand what it stands for. All I know is that it can represent loops and alternatives in sequence diagrams.
Can someone explain me what it is?

Dimitri
- 143
- 8
1
vote
1 answer
How do I create a comparable checksum of a number sequence?
Sorry if the title is confusing, but here's an example to illustrate what I'm trying to accomplish.
I would like to create a 'checksum' or ID grouping of similar number sequences, so that when you compare one sequence to another, it can see if they…

green sammich
- 29
- 1
0
votes
2 answers
How to do this in Standard UML?
In the below Sequence diagram, when the user have entered the Username and Password, I have to do the authentication. Now you can see two details valid details and invalid detail in the diagram , which i will return when the user password match and…

Ant's
- 732
- 6
- 17
0
votes
2 answers
Which is the best data structure to use when you want to randomly pick elements & use them, but also delete them after use
I have 1000 lines in a text file. I want to read them into some data structure[DS].
After reading them, I will be randomly picking 50 lines from the DS (using a Random Number Generator). Next time 50 more & 50 more the time after that. Each time I…

user93353
- 441
- 3
- 7
- 18