-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Milestone
Description
Before
sage: set_random_seed(0)
sage: P = Permutations(30)
sage: L = [P.random_element() for _ in range(1000)]
sage: %timeit [e.longest_increasing_subsequence_length() for e in L]
24.9 ms ± 953 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
After
sage: %timeit [e.longest_increasing_subsequence_length(e) for e in L]
5.94 ms ± 133 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
Component: combinatorics
Keywords: permutation, subsequences
Author: David Coudert
Branch/Commit: 15aa550
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/34214