Questions tagged [sequence]

A sequence is an ordered list of objects (or events). Like a set, it contains members (also called elements or terms), and the number of terms (possibly infinite) is called the length of the sequence. Unlike a set, order matters, and exactly the same elements can appear multiple times at different positions in the sequence. In a relational database, a sequence is an object that is used to generate unique numbers for a primary key.

A sequence is an ordered list of objects (or events). Like a set, it contains members (also called elements or terms), and the number of terms (possibly infinite) is called the length of the sequence. Unlike a set, order matters, and exactly the same elements can appear multiple times at different positions in the sequence.

Sometimes, sequence is used as a generic name for both list, array and set for convenience.

In a , a sequence is an object that is used to generate unique numbers for a .

5959 questions
2
votes
1 answer

Hibernate/Oracle seqhilo generator

I'm trying to configure a seqhilo generator for a Hibernate application on Oracle.
user405458
  • 1,107
  • 3
  • 24
  • 38
2
votes
3 answers

Is Sequence faster than Identity in Entity Framework?

I heard that Sequence is faster than Identity in Sql Server. But, I dont think it is a good idea to use it in Entity Framework. Becuase, to use Sequence in Entity Framework, you should make an extra call to get the next sequence. int sequence =…
Arif YILMAZ
  • 5,754
  • 26
  • 104
  • 189
2
votes
0 answers

detecting the step size of a sequence

Is there a function in base R, or a more elegant way to detect the step size in a vector increases? At the moment I am using a combination of diff and unique. xx <- seq(from = 0, to = 100, by = 5) unique(diff(xx)) # 5
guyabel
  • 8,014
  • 6
  • 57
  • 86
2
votes
3 answers

Handling sequences through C++ class interfaces

Let's say I'm writing an interface for a class A that keeps a list of objects of type B, and I want to be able to manipulate that list through class A's interface. I could put add_B, remove_B, etc. methods to A's interface, but that's a lot of code…
Yaron Tausky
  • 803
  • 2
  • 8
  • 12
2
votes
1 answer

Scala catch thrown errors by a sequence of futures

Is it possible to asynchronously catch all errors given a list of futures? I was thinking of something like: Future { throw Exception } zip Future { throw Exception } recover ... But I only receive a Throwable in the recover part. Any idea?
vicaba
  • 2,836
  • 1
  • 27
  • 45
2
votes
3 answers

How to generate rows and columns in Python 3

I need to know how to generate a sequence of numbers that are right-justified in rows (of 6) and columns (of 7) with a set field width (of 2) and space (of 1). First I have to ask the user for an input number "n" (with requirements -6 < n < 2) and…
Josh Alexandre
  • 127
  • 3
  • 3
  • 11
2
votes
3 answers

Enumerating binary sequences

Suppose I wanted to enumerate all 4-bit patterns i.e. from 0 (0000) to 15 (1111). One way is the "truth table" approach: 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, ... 1111 This approach is the equivalent of counting up from 0 to 15 in…
AUD_FOR_IUV
  • 473
  • 1
  • 3
  • 16
2
votes
1 answer

UML Sequence Diagram Message Branching

Has anyone used message branching in sequence diagrams? Does anyone know what this is specifically used for? To the best of my understanding it is used to show a single message being received by multiple recipients I have just seen it used to show…
2
votes
1 answer

Inference rules for subsequence order

I am doing some exercises with the subsequence order, record _⊑₀_ {X : Set} (xs ys : List X) : Set where field indices : Fin (length xs) → Fin (length ys) embed : ∀ {a b : Fin (length xs)} → a < b → indices a < indices b eq : ∀ {i :…
Musa Al-hassy
  • 982
  • 1
  • 7
  • 12
2
votes
2 answers

Mysql query get data if certain column is on sequence

What I want here is to retrieve pid's that have these criteria: pid count is atleast 3 and sid should atleast contain two numbers that are in sequence. For example sid should 1 & 2, 2 & 3, 3 & 4, and so on. Table sem_attendance attendance_id sid …
fmpsagara
  • 485
  • 5
  • 17
2
votes
1 answer

Incremental continuous timeseries using TensorFlow RNN

I want to feed timeseries data as it comes - one step at a time, to incrementally build the rnn ( after few initial steps ). currently the rnn() takes encoder_input and decoder_input as complete sequence. def rnn_seq2seq(encoder_inputs,…
2
votes
1 answer

How to identify entities which have repeated values in sequence using MySQL?

I have a table: UNIT_ID | YEAR | MONTH | VAR ---------+------+-------+------ 1 | 2015 | 1 | 0 1 | 2015 | 2 | 0 1 | 2015 | 3 | 0 2 | 2015 | 1 | 10 2 | 2015 | 2 | 10 2 | 2015 | …
Felipe Costa
  • 128
  • 9
2
votes
1 answer

How to generate and display a sequence (loan exercise)

I would like to create a sequence, where: a0 = 1100000 a1 = 1100000 * 1.012 - 25000 a2 = (1100000 * 1.012 - 25000) * 1.012 - 25000 a3 = (1100000 * 1.012 - 25000) * 1.012 - 25000) * 1.012 - 25000 ... Problem is, it only calculates/displays a1…
2
votes
5 answers

How do I run multiple node streams in sequence?

Given two streams, stream1, stream2, how can I run them in sequence, throwing if any fails? I'm looking for something simpler than this: stream1.on('end',function(){ …
Francisc
  • 77,430
  • 63
  • 180
  • 276
2
votes
1 answer

Interdependent NSURLSession tasks with NSOperation and NSOperationQueue (Swift)

Problem: I would like to develop an iOS app in Swift which is perfoming an initial load right after the login. The sequence (of REST based calls via NSURLSession) would look like this: Login with user account -> asynchronous response returns…
Hans M.
  • 21
  • 4
1 2 3
99
100