TimeEfficientImplementation
in package
implements
LongestCommonSubsequence
Time-efficient implementation of longest common subsequence calculation.
Interfaces, Classes and Traits
- LongestCommonSubsequence
- Interface for implementations of longest common subsequence calculation.
Table of Contents
- calculate() : array<string|int, mixed>
- Calculates the longest common subsequence of two arrays.
Methods
calculate()
Calculates the longest common subsequence of two arrays.
public
calculate(array<string|int, mixed> $from, array<string|int, mixed> $to) : array<string|int, mixed>
Parameters
- $from : array<string|int, mixed>
- $to : array<string|int, mixed>