Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: On the longest k-alternating subsequence   We show that the longest k-alternating substring of a random permutation has
length asymptotic to 2 (n-k) / 3.

31
The categories of this paper are: ao-sci
27
The categories of this paper are: comp-gas
0
The categories of this paper are: hep-ph
26
The categories of this paper are: bayes-an
36
The categories of this paper are: cmp-lg
12
The categories of this paper are: nucl-th
25
The categories of this paper are: patt-sol
11
The categories of this paper are: hep-lat
20
The categories of this paper are: acc-phys
16
The categories of this paper are: stat
3
The categories of this paper are: physics
18
The categories of this paper are: econ
29
The categories of this paper are: funct-an
23
The categories of this paper are: solv-int
6
The categories of this paper are: astro-ph
7
The categories of this paper are: hep-th